DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

Polyline- Draws a series of lines

Draws a series of continuous lines following the points passed as parameters.

- Polyline(X1,Y1,X2,Y2,... Xn,Yn[,R])

Parameters:

- (int) X1: horizontal coordinate of the first point;

- (int) Y1: Vertical coordinate of the first point;

- (int) X2: horizontal coordinate of the second point;

- (int) Y2: Vertical coordinate of the second point;

- (int) Xn: horizontal coordinate of the point N;

- (int) Yn: Vertical coordinate of the point N;

- (int) R: rotation expressed in degrees (optional).

Description:

Use Polyline to draw a polyline. The polyline is defined by all its X and Y points connected in sequence with a line. A polyline must have at least 2 points and a maximum of 100 points.

Lines are drawn using the current pen and color (Pen, ColorPen).

The optional parameter R defines the rotation of the polyline 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 Polyline. Move your pointer to the first point where you want to start the line and press the left button to fix it. Move the pointer to another point - the polyline of all the segments to the mouse pointer is drawn - and press the left button to add another segment. To end the polyline fix the last point by holding down the Ctrl key.

Once you have defined the coordinates of the polyline, 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 polyline is zoomed in or out. To insert the Polyline instruction in the graph, confirm with the left mouse button.