GraLine |
ยท GraLine( [<aStartPoint>], <aEndPoint> ) => The function GraLine() is a graphic primitive which draws a line in a presentation space. In order to draw a line, two points must be specified. If the first point <aStartPoint> is not specified, the line begins at the current pen position. Various line types are available (solid, dashed, dotted, etc.). Line types must be selected before output of the line by calling the function GraSetAttrLine(). After GraLine() returns, the pen is positioned at <aEndPoint> .
Parameters Are
<aStartPoint> := { <nXStart>, <nYStart> }
<aStartPoint> is an array of two elements which determines the coordinates for the origin of the line. The first element <nXStart> specifies the x coordinate and the second element <nYStart> specifies the y coordinate. The unit for the coordinates depends on the coordinate system defined for the presentation space. If no presentation space is defined, the values for the coordinates are given in pixels, which is the unit for a window. The origin for the coordinates (the point {0,0}) is at the lower left. If <aStartPoint> is not specified, the line begins at the current pen position.
<aEndPoint> := { <nXEnd>, <nYEnd> }
<aEndPoint> is an array of two elements which contains the coordinates for the end point of the line.