Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

Flood

Flood rastport like areafill.

Declaration

Source position: agraphics.pas line 2306

function Flood(

  rp: pRastPort;

  mode: LongWord;

  x: LongInt;

  y: LongInt

):LongBool;

Arguments

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.

Description

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.

See also

AreaEnd

  

Process table of vectors and ellipses and produce areafill.

InitTmpRas

  

Initialize area of local memory for usage by areafill, floodfill, gfxtext.


Documentation generated on: 2021-07-30