Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSFMXCommon > FMX.RS.CanvasHelper > Classes > TFMXCanvasHelper > Methods

TFMXCanvasHelper.Polyline(TPointF[],Single) 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.

Use Polyline to connect 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.
 

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:

Delphi

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

To draw a polygon on the canvas, without filling it, use the    Polyline method, specifying the first point a second time at the end.

alert_noteTip

This FMX version of the method adds a default Opacity parameter at the end of the parameters. This allows you to take advantage of the FMX ability to draw transparently to the canvas. Alternatively, don't set this parameter and it works exactly like the VCL TCanvas method.

Namespace: FMX.RS.CanvasHelper

Parameters

Points

Type: array of TPointF

Opacity

Type: Single

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb