Flood rastport like areafill.
Source position: agraphics.pas line 2306
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. |