Tool FLOODFILL

From RealWorld Wiki

Jump to: navigation, search

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");
Personal tools