Drawing one or more straight linesΒΆ

PolyLineTo()

Draw one or more straight lines


SYNTAX

PolyLineTo(window_id, point_array, count)

Draw one or more straight lines.

window_id

The identifier of the window in which the line is to be drawn. To print it in the current report, specify NULL instead of a window_id.

point_array

The point_array is a numeric array, the contents of which define the end point of each line. A line is drawn from the current position to the first point specified in the array, using the current pen. Each subsequent line is drawn from the end of the previous line to the next point specified in the array. See Arrays of points.

count

The count parameter specifies the number of points defined in the array.

The PolyLineTo function changes the current position to the ending point of the last line.

If the lines drawn by the function form a closed figure, it is not filled.


RELATED TOPICS

Drawing operations

Draw functions