FMX.Graphics.TCanvas.FillPolygon

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FillPolygon(const Points: TPolygon; const AOpacity: Single); virtual;

C++

virtual void __fastcall FillPolygon(const System::Math::Vectors::TPolygon Points, const float AOpacity);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TCanvas

Description

Fills a polygon and displays it on the current TCanvas.

FillPolygon fills a polygon as a TPathData between the TPolygon corner points, with the current brush specified by the Fill property.

The Points parameter specifies the corner points of the TPolygon to be filled.

The AOpacity parameter specifies the transparency of the Fill color.

If the first point and the last point of the Points array do not coincide, the polygon surface is closed by a line between the first point and the last point in the Points array.

If the Points array is empty, FillPolygon does nothing. In this case, it does not raise any errors.

See Also

Code Examples