Show: Delphi C++
Display Preferences

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 Strocke, StrokeThickness, StrokeCap, StrokeDash, and StrokeJoin properties.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance