FMX.Graphics.TCanvas.DrawPath

From RAD Studio API Documentation
Jump to: navigation, search

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 APath is created.

To customize the drawing pen, use the Stroke property.

See Also

Code Examples