[Previous] [Contents] [Next]

my_drawline()

draw a line

Synopsis:

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

Description:

This function draws a line between the two points, given in source coordinates (which you'll need to convert 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 line couldn't be drawn; let the render library break it up into smaller pieces.

Classification:

Photon

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

[Previous] [Contents] [Next]