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

Flood

Flood rastport like areafill.

Declaration

Source position: agraphics.pas line 2097

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