This documentation is for the old version. Go to the latest Graphics Mill docs

FloodFill Constructor (Point, Color, Color, FloodFillMode, Single, Boolean, Boolean)

Creates and initializes new FloodFill class instance. You can set all flood fill parameters here.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Public Sub New ( _
	point As Point, _
	fillColor As Color, _
	targetColor As Color, _
	mode As FloodFillMode, _
	tolerance As Single, _
	preserveAlpha As Boolean, _
	processHalftones As Boolean _
public FloodFill(
	Point point,
	Color fillColor,
	Color targetColor,
	FloodFillMode mode,
	float tolerance,
	bool preserveAlpha,
	bool processHalftones



Type: System.Drawing.Point

Point structure that specifies a point to start filling from. You can change it later using Point property.

Type: Aurigma.GraphicsMill.Color

Color value that specifies a color to fill with. You can change it later using FillColor property.

Type: Aurigma.GraphicsMill.Color

The Color which is used to determine the filling area boundaries. The method behaviour depends on mode argument value. If mode is UntilColor, this is a boundary color (when algorithm meets this color, it stops filling). If mode is TillColor, this is a surface color (algorithm continue filling till current color is the same as target color). You can change it later using TargetColor property.

Type: Aurigma.GraphicsMill.Transforms.FloodFillMode

FloodFillMode value specifying how to determine the filling area boundary (see comments for targetColor). You can change it later using Mode property.

Type: System.Single

Value in range [0, 1] specifying admissible tolerance (distance between colors in color space) when comparing current color and target color (see comments for targetColor). Minimum value (0) means exact match of the colors, maximum value (1) means that any color matches. You can change it later using Tolerance property.

Type: System.Boolean

Value specifying if to preserve alpha channel. If true, alpha channel will not be overwritten by filling color. You can change it later using PreserveAlpha property.

Type: System.Boolean

Value specifying how to handle situations when current color does not exactly match target color, but tolerant to it (with specified tolerance). If false, this pixel is replaced with brush color, if true, it is alpha-blended (alpha is calculated as 1 - T, where T is actual tolerance between these colors). You can change it later using ProcessHalftones property.

See Also