Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TCustomBitmap32🞂ClearMethodPublic

TCustomBitmap32.Clear

Clears the entire pixel buffer to transparent black (clNone32) or a specified TColor32 value.

Declarations ​

pascal
procedure Clear; overload; override;
procedure Clear(FillColor: TColor32); reintroduce; overload;
Overload Details

Overload 1 ​

pascal
procedure Clear; overload; override;

Clears all pixels in the bitmap to clNone32 ($00000000).

Overload 2 ​

pascal
procedure Clear(FillColor: TColor32); reintroduce; overload;

Clears all pixels in the bitmap to the specified TColor32 fill color.

ParameterTypeDescription
FillColorTColor3232-bit ARGB fill color.

Description ​

Clear fills the entire pixel buffer with a uniform color value.

Example ​

pascal
Bitmap.Clear(clRed32);