procedure Clear(color: TColor32 = clNone32); overload;

procedure Clear(const rec: TRect; color: TColor32 = clNone32); overload;

Fills either the entire image or the specified region with the specified color.

Note: This method should not be confused with the Img32.Extra.Erase function that erases portions of an image based on specified polygon regions.

See Also