[Previous] [Contents] [Next]

my_setclip()

set the clipping rectangle

Synopsis:

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

Description:

This function sets the current clipping rectangle. The arguments are:

x1, y1
The coordinates of the upper-left corner of the rectangle.
x2, y2
The coordinates of the lower-right corner of the rectangle.

The points are given in source coordinates and need to be converted to printer coordinates. If printing is done in landscape mode, you'll need to swap the x and y coordinates.

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]