C
WORD Line( SHORT x1, SHORT y1, SHORT x2, SHORT y2 );
Overview
This function draws a line with the current line type from the start point to the end point.
Input Parameters
Input Parameters |
Description |
SHORT x1 |
x coordinate of the start point. |
SHORT y1 |
y coordinate of the start point. |
SHORT x2 |
x coordinate of the end point. |
SHORT y2 |
y coordinate of the end point. |
Returns
For NON-Blocking configuration:
- Returns 0 when device is busy and the shape is not yet completely drawn.
- Returns 1 when the shape is completely drawn.
- Always return 1.
Side Effects
The graphic cursor position is moved to the end point of the line.