gflDrawPolygonColor
The gflDrawPolygonColor function allows to draw a poylgone on the picture.
GFL_ERROR gflDrawPolygonColor( GFL_BITMAP * src,
const GFL_POINT points[],
GFL_INT32 num_points,
const GFL_COLOR * fill_color,
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.
- points
-
Address to an array of GFL_POINT structure.
Closing the polygone is not necessary. - num_points
- Number of points.
- fill_color
-
Pointer to a GFL_COLOR structure.
If NULL, no fill. - line_width
- Width of the line (1 to 13).
- line_color
-
Pointer to a GFL_COLOR structure.
If NULL, no outline. - line_style
-
Works only with a line width of 1.
GFL_LINE_STYLE_SOLID Solid GFL_LINE_STYLE_DASH Dashes GFL_LINE_STYLE_DOT Dots GFL_LINE_STYLE_DASHDOT Alternating dashes and dots GFL_LINE_STYLE_DASHDOTDOT Alternating 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