draw a filled rectangle
int my_fillrect( int x1, int y1,
int x2, int y2 );
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.
 |
You should optimize this function. |
- 1
- Success.
- 0
- The operation couldn't be done.
Photon
Safety: | |
Interrupt handler |
Not applicable |
Signal handler |
Not applicable |
Thread |
Not applicable |