Show: Delphi C++
Display Preferences

FMX.Graphics.TCanvas.FillPath

From RAD Studio API Documentation
Jump to: navigation, search

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

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance