
9. GRAPHICS DISPLAY
B–61863E–1/06
PMC LIBRARY
244
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
pl_grpline
[Description]
Draws a straight line in graphics format.
[Format]
ret = pl_grpline(P1, P2) ;
short ret ;
short *P1 ;
unsigned short P2 ;
[Input]
*P1 Display information
X
Y
X
Y
X
Y
X
Y
P2 Size of buffer P1
The minimum size is four bytes. The buffer can be expanded
in increments of four bytes. The maximum allowable size is the
same as maximum size allowed for the user buffer area.
[Output]
______
[Returns]
ret Complete code (–11, –1, 0, 2)
[Remarks]
For the return values, see the section on completion code types.
9.7
DRAWING A
STRAIGHT LINE ON
THE CRT GRAPHICS
DISPLAY
0
2
4
6
8
10
12
N–4
N–2
N
P1
Starting point (X, Y)
End point 1
End point 2
End point m
NOTE
On the 9′′, 14′′, and 10′′ CRTs,
graphic dots can be specified
in the following range:
X coordinate : –320 to 319
Y coordinate : –200 to 199