Creates and initializes new FloodFill class instance. You can set main flood fill parameters here.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub New ( _ point As PointF, _ fillColor As Color, _ targetColor As Color, _ mode As FloodFillMode, _ tolerance As Single _ )
public FloodFill( PointF point, Color fillColor, Color targetColor, FloodFillMode mode, float tolerance )
Type: System.Drawing.PointF
PointF 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.