TypeLib Xojo support Plugin |
|
RawBitmap.FloodFillTask Method
Advanced flood fill method that takes fill color, location, tolerance and do normal straight fill or straight and diagonal. This variant of the method does not perform the task but rather returns a EinhugurRuntime.Task object to execute the routine in a native thread.
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.
Returns
- EinhugurRuntime.Task
- The task instance to be executed in native thread.
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