ImageEn, unit iexBitmaps

TIEBitmap.FillRect

TIEBitmap.FillRect


Declaration


procedure FillRect(x1, y1, x2, y2: integer; Value: double);


Description


Fills the rectangle 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


For ie1g images, values can be 0 or 1. For ie8g and ie8p, values can be from 0 to 255.
For ie16g images, values can be from 0 to 65535.
For ie24RGB, ie32RGB, ieCMYK and ieCIELab values are a TColor value.


Example


// Fill image rect with white
IEBitmap.FillRect( 100, 100, 200, 200, clWhite );

// Fill monochrome image rect with white
IEBitmap.FillRect( 100, 100, 200, 200, 1 );


See Also


- Fill
- GradientFill
- GradientFillRect
- AlphaFill
- AlphaFillRect