Vcl.Direct2D.TDirect2DCanvas.Polygon

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Polygon(const Points: array of TPoint); override;

C++

virtual void __fastcall Polygon(const System::Types::TPoint *Points, const int 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 connecting the points passed in and closing the shape by drawing a line from the last point to the first point.

Use Polygon to draw a closed, many-sided shape on the canvas, using the value of Pen. After drawing the complete shape, Polygon fills it using the value of Brush.

The Points parameter is an array of points that gives the vertices of the polygon.

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

See Also