Skip to content
GR32>TBitmap32>ClearMethod

TBitmap32.Clear

Fills all pixels in the bitmap buffer with a specified 32-bit ARGB color.

Declarations

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

Overloads

Overload 1

pascal
procedure Clear; overload;

Fills the pixel buffer (or clipped rectangle, if clipping is enabled) with transparent black ($00000000).

Overload 2

pascal
procedure Clear(FillColor: TColor32); overload;

Fills the pixel buffer (or clipped rectangle, if clipping is enabled) with the specified 32-bit ARGB color.

ParameterTypeDescription
FillColorTColor32The 32-bit ARGB color to fill the bitmap with.

Example ​

pascal
// Clear bitmap to opaque white
Bmp.Clear(clWhite32);

// Clear bitmap to fully transparent
Bmp.Clear(clTrColor32);