FMX.Graphics.TCanvas.DrawPolygon
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 Stroke, Thickness, Cap, Dash, and Join properties.
See Also
- FMX.Graphics.TCanvas.DrawBitmap
- FMX.Graphics.TCanvas.DrawArc
- FMX.Graphics.TCanvas.DrawEllipse
- FMX.Graphics.TCanvas.DrawLine
- FMX.Graphics.TCanvas.DrawPath
- FMX.Graphics.TCanvas.DrawRect
- FMX.Graphics.TCanvas.DrawRectSides
- FMX.Graphics.TCanvas.FillPolygon
- FMX.Graphics.TCanvas.Stroke
- FMX.Graphics.TStrokeBrush.Cap
- FMX.Graphics.TStrokeBrush.Dash
- FMX.Graphics.TStrokeBrush.Join
- FMX.Graphics.TStrokeBrush.Thickness
- FMX.Graphics.TPathData
- System.Math.Vectors.TPolygon