FMX.Graphics.TCanvas.FillPath
Delphi
procedure FillPath(const APath: TPathData; const AOpacity: Single); overload;
procedure FillPath(const APath: TPathData; const AOpacity: Single; const ABrush: TBrush); overload;
C++
void __fastcall FillPath(TPathData* const APath, const float AOpacity)/* overload */;
void __fastcall FillPath(TPathData* const APath, const float AOpacity, TBrush* const ABrush)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TCanvas |
Description
Fills a path and displays it on the current TCanvas.
FillPath is implemented by the TCanvas descendants to fill a TPathData, with the current brush specified by the Fill property.
The APath
parameter specifies the TPathData to be drawn.
The AOpacity
parameter specifies the transparency of the Fill color.
If APath
is empty, FillPath does nothing. In this case, it does not raise any errors.
Note: Before calling FillPath, make sure that
APath
is created. See Also
- FMX.Graphics.TCanvas.FillArc
- FMX.Graphics.TCanvas.FillEllipse
- FMX.Graphics.TCanvas.FillPolygon
- FMX.Graphics.TCanvas.FillRect
- FMX.Graphics.TCanvas.FillText
- FMX.Graphics.TCanvas.DrawPath
- FMX.Graphics.TCanvas.Fill
- FMX.Graphics.TPathData