Vcl.Direct2D.TDirect2DCanvas.Polyline
Delphi
procedure Polyline(const Points: array of TPoint); override;
C++
virtual void __fastcall Polyline(const System::Types::TPoint *Points, const System::NativeInt Points_High);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Direct2D.pas Vcl.Direct2D.hpp |
Vcl.Direct2D | TDirect2DCanvas |
Description
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.
Calling the MoveTo function with the value of the first point, and then repeatedly calling LineTo with all subsequent points draws the same image on the canvas. However, unlike LineTo, Polyline does not change the value of PenPos.