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

Initializes a new instance of the FloodFill class using the specified settings.

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

Syntax

C#
public FloodFill(
	int x,
	int y,
	Color fillColor,
	Color targetColor,
	FloodFillMode mode,
	float tolerance,
	bool preserveAlpha,
	bool processHalftones
)

Parameters

x

Type: System.Int32

The x-coordinate of the point to start filling from. You can change it later using the Point property.
y

Type: System.Int32

The y-coordinate of the point to start filling from. You can change it later using the Point property.
fillColor

Type: Aurigma.GraphicsMill.Color

A Color to fill with. You can change it later using the FillColor property.
targetColor

Type: Aurigma.GraphicsMill.Color

A Color used to determine the filling area boundaries. You can change it later using the TargetColor property.
mode

Type: Aurigma.GraphicsMill.Transforms.FloodFillMode

A FloodFillMode value specifying how to determine the filling area boundary. You can change it later using the Mode property.
tolerance

Type: System.Single

The tolerance for the target color in range [0, 1]. You can change it later using the Tolerance property.
preserveAlpha

Type: System.Boolean

true if to preserve alpha channel; otherwise, false. You can change it later using the PreserveAlpha property.
processHalftones

Type: System.Boolean

true if tolerant colors are alpha-blended; otherwise, false. You can change it later using the ProcessHalftones property.

See Also

Reference