error = Flood( rp, mode, x, y)
BOOL Flood(
struct RastPort *, ULONG, SHORT, SHORT);
Search the BitMap starting at (x,y). Fill all adjacent pixels if they are:
-
Mode 0: not the same color as AOLPen
-
Mode 1: the same color as the pixel at (x,y)
When actually doing the fill use the modes that apply to standard areafill routine such as drawmodes and patterns.
In order to use Flood, the destination RastPort must have a valid TmpRas raster whose size is as large as that of the RastPort.
Could not fill rastports wider or taller than 1024 pixels prior to release V45. This was fixed in V45.