Flood rastport like areafill.
Source position: agraphics.pas line 2035
function Flood( |
Rp: PRastPort; |
Mode: LongWord; |
X: LongInt; |
Y: LongInt |
):LongBool; |
Rp |
|
A pointer to RastPort |
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). |
X |
|
X coordinate in BitMap to start the flood fill at. |
Y |
|
Y coordinate in BitMap to start the flood fill at. |
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.
In order to use Flood, the destination RastPort must have a valid TmpRas raster whose size is as large as that of the RastPort.
|
Process table of vectors and ellipses and produce areafill. |
|
|
Initialize area of local memory for usage by areafill, floodfill, gfxtext. |