Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclCommon > RSGraphics > Classes > TVclCanvasHelper > Methods

TVclCanvasHelper.Polyline(TRSPoints) Method

Scroll Prev Top Next More

Draws a series of lines on the canvas connecting the points passed in and closing the shape by drawing a line from the last point to the first point.

Use Polyline to draw a closed, many-sided shape on the canvas, using the value of the Pen.

The Points parameter is an array of points that give the vertices of the polygon. The first point is always connected to the last point.

noteNote

In Delphi, you can use the Slice function to pass a portion of an array of points to the Polygon method. For example, to form a polygon using the first ten points from an array of 100 points, use the Slice function as follows:

Delphi

Canvas.Polyline(Slice(PointArray, 10));

To draw a polygon on the canvas and fill it, use the RSGraphics.TVclCanvasHelper.Polygon(TRSPoints)method, specifying the first point a second time at the end.

Namespace: RSGraphics

Parameters

Points

Type: TRSPoints

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb