FMX.Graphics.TCanvas.ClearRect
Delphi
procedure ClearRect(const ARect: TRectF; const AColor: TAlphaColor = 0); virtual; abstract;
C++
virtual void __fastcall ClearRect(const System::Types::TRectF &ARect, const System::Uitypes::TAlphaColor AColor = (System::Uitypes::TAlphaColor)(0x0)) = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TCanvas |
Description
Clears a rectangular area from a TCanvas object.
ClearRect is implemented by TCanvas descendants to clear a rectangular area from a TCanvas object, and fill it with a specified color.
The ARect parameter specifies the rectangular area to be cleared.
The AColor parameter specifies the color to fill the ARect area with. This parameter is optional and, if it is not specified, the ARect area is made transparent. By default, AColor is 0.