Declaration
procedure Fill(Value: double); overload;
procedure Fill(Value: TRGBA); overload;
Description
Fill the image with a specified color.
Pixel Format | Value |
ie1g | Specify either 0 or 1 |
ie8g, ie8p | Specify value between 0 and 255 |
ie16g | Specify value between 0 and 65535 |
ie24RGB, ie32RGB, ie48RGB, ieCMYK, ieCIELab | Specify TColor |
Note: For ie32RGB, the value is expected in the format, $AABBGGRR, so a TColor value will be fully transparent. You should convert using
TColor2TRGBA instead
// Fill an image with white
IEBitmap.Fill( clWhite );
// Fill a monochrome image with white
IEBitmap.Fill( 1.0 );
// Compare the following:
IEBitmap.PixelFormat := ie32RGB;
IEBitmap.Fill( clRed ); // Image will be filled with red, but is fully transparent
IEBitmap.Fill( TColor2TRGBA( clRed, 255 )); // Image is filled with red (and is opaque)
See Also
◼FillRect
◼GradientFill
◼GradientFillRect
◼AlphaFill
◼AlphaFillRect