Home  /  Autodocs  /  graphics.library

NAME

Flood
Flood rastport like areafill.

SYNOPSIS

error = Flood( rp, mode, x, y)
d0 a1 d2 d0 d1

BOOL Flood(struct RastPort *, ULONG, SHORT, SHORT);

FUNCTION

Search the BitMap starting at (x,y). Fill all adjacent pixels if they are:

When actually doing the fill use the modes that apply to standard areafill routine such as drawmodes and patterns.

INPUTS

rp
pointer to RastPort

x
see next

y
coordinates in BitMap to start the flood fill at.

mode
0 fill all adjacent pixels searching for border. 1 fill all adjacent pixels that have same pen number as the one at (x,y).

NOTES

In order to use Flood, the destination RastPort must have a valid TmpRas raster whose size is as large as that of the RastPort.

BUGS

Could not fill rastports wider or taller than 1024 pixels prior to release V45. This was fixed in V45.

SEE ALSO

AreaEnd() InitTmpRas() graphics/rastport.h