Important: The information in this document is obsolete and should not be used for new development.
Line
To draw a line a specified distance from the graphics pen's current location in the current graphics port, use theLine
procedure.
PROCEDURE Line (dh,dv: Integer);
dh
- The horizontal distance of the graphics pen's movement.
dv
- The vertical distance of the graphics pen's movement.
DESCRIPTION
Starting at the current location of the graphics pen, theLine
procedure draws a line the horizontal distance that you specify in thedh
parameter and the vertical distance that you specify in thedv
parameter. TheLine
procedure calls
LineTo(h+dh,v+dv)where(h,v)
is the current location in local coordinates. The pen location becomes the coordinates of the end of the line after the line is drawn. If you are usingLine
to draw a region or polygon, its outline is infinitely thin and is not affected by the values of thepnSize
,pnMode
, andpnPat
fields of the graphics port.SPECIAL CONSIDERATIONS
TheLine
procedure may move or purge memory blocks in the application heap. Your application should not call this procedure at interrupt time.SEE ALSO
Listing 3-1 on page 3-15 illustrates how to use this procedure.