[Previous] [Contents] [Next]

my_fillrect()

draw a filled rectangle

Synopsis:

int my_fillrect( int x1, int y1, 
                 int x2, int y2 );

Description:

This function draws a filled rectangle using the current color specified in the _doc_ctrl structure. ( x1, y1) is the upper-left corner; ( x2, y2) the lower-right. These points are in source coordinates, and will need to be converted to printer coordinates. If printing is done in landscape mode, you'll need to swap the x and y coordinates.


Note: You should optimize this function.

Returns:

1
Success.
0
The operation couldn't be done.

Classification:

Photon

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

[Previous] [Contents] [Next]