
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
124/226
DRAW.NO.
3.9.9
Draw Straight Lines
[Name]
pl_grpline
[Syntax]
#include <pmclib.h>
short pl_grpline(short * cntl, unsigned short size);
[Arguments]
Input
*cntl: Drawing information
Set the start point and end of a straight line to be drawn. On a
VGA type display unit, the valid X coordinate ranges from -320
to 319, and the valid Y coordinate ranges from -240 to 239.
cntl[0] X Start point
cntl[1] Y
cntl[2] X End point 1
cntl[3] Y
cntl[4] X End point 2
cntl[5] Y
to
cntl[2n] X End point n
cntl[2n+1] Y
size: Number of bytes of drawing information ("*cntl")
Set the number of bytes of the "*cntl" array above. The minimum
size is 8 bytes for "cntl[0]"-"cntl[3]". The size can be
incremented in steps of 4 bytes.
Output
---
[Return]
0: Normal completion.
2: The "size" is invalid.
[Description]
This function draws a straight line on the graphic screen.
[Related Function]
_moveto(), _lineto()