Show: Delphi C++
Display Preferences

FMX.Graphics.TCanvas.DrawPolygon

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

virtual void __fastcall DrawPolygon(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

Draws a polygon on the current TCanvas.

DrawPolygon draws a polygon as a TPathData between the TPolygon corner points, with the current Stroke.

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

Note: If the first point and the last point of the Points array do not coincide, DrawPolygon automatically connects the first and the last point and closes the polygon.

The AOpacity parameter specifies the transparency of the Stroke color.

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

To customize the drawing pen, use the Strocke, StrokeThickness, StrokeCap, StrokeDash, and StrokeJoin properties.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance