re_fillimage()

extern XXX_ERROR XXX_API re_fillimage(ReImage *image, long color);
    

Parameter:

image
Address of the image.
color
Color for the rectangle. The color format depends on the image type used.
Binary images:
0 = Black and 1 = White
Gray images:
The color format consists of leading 0x followed by 2 characters of 0 bis F, z.B.
0x00 = Black to 0xFF = White
RGB images:
The color format consists of leading 0x followed by 6 characters of 0 to F, e.g.
0x000000 = Black, 0xFFFFFF = White,
0xFF0000 = Red, 0x00FF00 = Green, 0x0000FF = Blue, 0xFFFF00 = Yellow

Return value:

RE_SUCCESS or XXX error type.

Comment:

This function fills the rectangle image->subimage with the given color. If image->subimage is not set (={0,0,0,0}), then the full image will be set to the given color.

Reference: