Flood-fill drawing tool

Log-in or register.

Flood-fill drawing tool

rsrc/floodfill-tool.png image FLOODFILL is a drawing tool capable of filling areas consisting of similar pixels. Th similarity is determined by selected method and by specifying maximum difference (called tolerance on the GUI).

Scripting parameters

FLOODFILL tool can be used from scripts. The command in script may have 2 to 4 parameters:

  • pointX, pointY - coordinates of the initial pixel for flood filling. The pixel must lay inside the picture.
  • tolerance (optional) - maximum pixel difference in %. The default is 8%.
  • matching_method (optional) - one of the pixel matching methods "RGBA", "HLSA", "BRIGHTNESS", "ALPHA".

Example

DrawTool.FLOODFILL(Document, 100, 100, 10, "HLSA");

See also: DrawTool object, Document object

Recent comments

user icon Anonymous
Select background









Vista & Win 7 icons