The gflDrawRectangleColor function allows to draw a rectangle on a picture.
GFL_ERROR gflDrawRectangleColor( GFL_BITMAP * src,
GFL_INT32 x,
GFL_INT32 y,
GFL_INT32 width,
GFL_INT32 height,
const GFL_COLOR * fill_color,
GFL_UINT32 line_width,
const GFL_COLOR * line_color,
GFL_LINE_STYLE line_style,
GFL_BITMAP ** dst, );
Parameters
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 |
The function returns GFL_NO_ERROR if it is successful or a value of GFL_ERROR.
See also