gflDrawLineColor

GFL SDK

gflDrawLineColor

The gflDrawLineColor function allows to draw a line on a picture.

GFL_ERROR gflDrawLineColor(
  GFL_BITMAP * src,  

GFL_INT32 x0,
GFL_INT32 y0,
GFL_INT32 x1,
GFL_INT32 y1,
GFL_UINT32 line_width,
const GFL_COLOR * line_color,
GFL_LINE_STYLE line_style,
GFL_BITMAP ** dst, );

Parameters

    src
    Pointer to a GFL_BITMAP structure.
    x0
    X start position.
    y0
    Y start position.
    x1
    X end position.
    y1
    Y end position.
    line_width
    Width of the line (1 to 13).
    line_color
    Pointer to a GFL_COLOR structure. Color of the line.
    line_style
    Works only with a line width of 1.
    GFL_LINE_STYLE_SOLIDSolid
    GFL_LINE_STYLE_DASHDashes
    GFL_LINE_STYLE_DOTDots
    GFL_LINE_STYLE_DASHDOTAlternating dashes and dots
    GFL_LINE_STYLE_DASHDOTDOTAlternating dashes and double dots
    dst
    Address of a pointer to a GFL_BITMAP structure.
    NULL if on the same instance.

Return value

    The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.

See also