IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcFillRect ( GcImage targetImage,
unsigned short  x,
unsigned short  y,
unsigned short  width,
unsigned short  height 
)

This function can be used to draw a filled rectangle onto an image or the frame buffer. The properties of the current brush influence the rectangle's appearance.

Parameters:
targetImage Pointer to the GcImage object to operate on; NULL for the frame buffer
x Designated x coordinate of the upper left corner of the rectangle
y Designated y coordinate of the upper left corner of the rectangle
width Designated width of the rectangle in pixels
height Designated height of the rectangle in pixels
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcDrawRect, gcSetBrush
Examples:
example01.c.





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Jun 27 14:21:34 2017 by Doxygen 1.6.1