VgaGames4 - image man-pages

[.. upper level ..]

vg4->image->draw_rect()

Draw a rectangle onto an image.

SYNTAX
void vg4->image->draw_rect(struct VG_Image *imgp, const struct VG_Rect *rect, int color, VG_BOOL fill)

FUNCTION PARAMETERS
imgp Image
rect Rectangle, or NULL = whole image
color Rectangle color: one of VG_COLORS or from VG_COLOR_RGB()
fill Whether to fill rectangle

DESCRIPTION
Draw a rectangle onto an image.

SEE ALSO
vg4->image->draw_point() vg4->image->draw_points() vg4->image->draw_line() vg4->image->draw_circle()