Line- Draws a line
Draws a line in the graph.
- Line(X1,Y1,X2,Y2[,R])
Parameters:
- (int) X1: horizontal starting coordinate;
- (int) Y1: vertical starting coordinate;
- (int) X2: horizontal ending coordinate;
- (int) Y2: vertical ending coordinate;
- (int) R: degrees of line rotation (optional).
Description:
Use Line to draw a line. The line is defined by X1 Y1 (start point) and X2 Y2 (end point) coordinates.
The line is drawn using the current pen and color (Pen, ColorPen).
The optional parameter R defines the rotation of the line around its hypothetical center or around a point of origin defined with the GraphicOrigin instruction. The value is expressed in degrees. If omitted the rotation is 0 degrees.
Drawing with the mouse:
From the drawing context menu choose Line. Move the pointer to the position on the graph where you want to start drawing the line and press the left mouse button. Then move the pointer to the end point - a line connects the start point to the mouse pointer - and press the left button to fix it.
Once you have defined the coordinates of the line, you use the mouse wheel to rotate it around its hypothetical center or around a point of origin defined with the GraphicOrigin instruction. When using the mouse wheel with the Ctrl key, the line is zoomed in or out. To insert the Line instruction into the graph, confirm with the left mouse button.