FMX.Graphics.TCanvas.DrawPath
Delphi
procedure DrawPath(const APath: TPathData; const AOpacity: Single); overload;
procedure DrawPath(const APath: TPathData; const AOpacity: Single; const ABrush: TStrokeBrush); overload;
C++
void __fastcall DrawPath(TPathData* const APath, const float AOpacity)/* overload */;
void __fastcall DrawPath(TPathData* const APath, const float AOpacity, TStrokeBrush* const ABrush)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TCanvas |
Description
Draws a path on the current TCanvas.
DrawPath is implemented by the TCanvas descendants to draw a TPathData, with the current Stroke.
The APath parameter specifies the TPathData to be drawn.
The AOpacity parameter specifies the transparency of the Stroke color.
If APath is empty, DrawPath does nothing. In this case, DrawPath does not raise any errors.
Note: Before calling DrawPath, make sure that
APathis created.
To customize the drawing pen, use the Strocke, StrokeThickness, StrokeCap, StrokeDash, and StrokeJoin properties.
See Also
- FMX.Graphics.TCanvas.DrawBitmap
- FMX.Graphics.TCanvas.DrawArc
- FMX.Graphics.TCanvas.DrawEllipse
- FMX.Graphics.TCanvas.DrawLine
- FMX.Graphics.TCanvas.DrawPolygon
- FMX.Graphics.TCanvas.DrawRect
- FMX.Graphics.TCanvas.DrawRectSides
- FMX.Graphics.TCanvas.FillPath
- FMX.Graphics.TCanvas.Stroke
- FMX.Graphics.TCanvas.StrokeThickness
- FMX.Graphics.TCanvas.StrokeCap
- FMX.Graphics.TCanvas.StrokeDash
- FMX.Graphics.TCanvas.StrokeJoin
- FMX.Graphics.TPathData
- FMX.Graphics.TPathData.Create