Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVML > RSGdiPlusGraphics > Classes > TRSGPCanvas > Methods

TRSGPCanvas.Polyline(TPoint[]) Method

Scroll Prev Top Next More

Draws a series of lines on the canvas with the current pen, connecting each of the points passed to it in Points.

Implements connecting a set of points on the canvas. If you specify only two points, Polyline draws a single line.

The Points parameter is an array of points to be connected.

Calling the    MoveTo function with the value of the first point, and then repeatedly calling    LineTo with all subsequent points will draw the same image on the canvas. However, unlike LineTo, Polyline does not change the value of PenPos.

noteNote

In Delphi, you can use the Slice function to pass a portion of an array of points to the Polyline method. For example, to form a polygon using the first ten points from an array of 100 points, use the Slice function as follows: Canvas.Polyline(Slice(PointArray, 10));

Namespace: RSGdiPlusGraphics

Parameters

Points

Type: array of TPoint

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb