TypeLib Xojo support Plugin

RawBitmap.FloodFill Method

Advanced flood fill method that takes fill color, location, tolerance and do normal straight fill or straight and diagonal.

FloodFill(
   x as Integer,
   y as Integer,
   tolerance as Single,
   colorValue as EinhugurColors.RGBColor,
   diagonal as Boolean)

Parameters

x
X coordinate to start the fill at.
y
Y coordinate to start the fill at.
tolerance
Percentage tolerance where its value is from 0.0 to 1.0.
colorValue
Color value to fill with.
diagonal
If set to true then straight and diagonal matching is done instead of the normal straight only.

Diagonal matching will for example let the method fill where pixel only touches other pixel by its corner.

Remarks

This method is not supported in CMYK color space, or 32bit floating point RGB color space. When used in unsupported color space the method will silently fail.

This method can throw the following exceptions:
InvalildArgumentException
RawBitmapException

See Also

RawBitmap Class