Show: Delphi C++
Display Preferences

FMX.Graphics.TCanvas.Clear

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Clear(const Color: TAlphaColor); virtual; abstract;

C++

virtual void __fastcall Clear(const System::Uitypes::TAlphaColor Color) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TCanvas


Description

Clears the surface of a TCanvas object.

Clear is implemented by TCanvas descendants to clear the surface of a TCanvas object, and fill it with a specified color.

The AColor parameter specifies the color to fill the TCanvas surface with.

To clear the TCanvas without filling it, call Clear like in the following code:

MyCanvas.Clear(0);

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance