FillRect

Draws a filled rectangle.

Synopsis

Err FillRect (Item bitmapItem,GrafCon *gc,Rect *r)

Description

FillRect() draws a rectangle to the display.

The right and bottom edges of the rectangle are not drawn, to allow multiple rectangles to be rendered without unnecessary overstriking of the boundary pixels (cel engine emulation).

Arguments

bitmapItem
The item number of the bitmap.
gc
Pointer to a GrafCon structure.
r
Pointer to a Rect structure that describes the rectangle to be rendered.

Return Value

The call returns 0 if successful or an error code (a negative value) if an error occurs.

Notes

This call will be changed to draw the entire rectangle, including the specified right and bottom edges.

Implementation

Folio call implemented in Graphics folio V20.

Associated Files

graphics.h, graphics.lib

See Also

WritePixel()