TypeLib Xojo support Plugin

RawBitmap.GenerateFloodFillMask Method

Generates magic wand mask by using flood fill algorithm.

GenerateFloodFillMask(
   x as Integer,
   y as Integer,
   tolerance as Single,
   diagonal as Boolean,
   expandMask as RawBitmapMask) as RawBitmapMask

Parameters

x
X coordinate to start the mask generation at.
y
Y coordinate to start the mask generation at.
tolerance
Percentage tolerance where its value is from 0.0 to 1.0.
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 add to the mask where pixel only touches other pixel by its corner.
expandMask
Optional parameter to pass in existing mask. If existing mask is passed in then you will be extending the existing mask. Similar as when you shift click with magic wand tool to add more to the selection.

Returns

RawBitmapMask
A bitmap based RawBitmapMask object.

Remarks

This method can throw the following exceptions:
RawBitmapException

See Also

RawBitmap Class