- Aurigma Graphics Mill 5.5 for .NET
- Introduction
- What's New?
- Overview of Features
- Getting Started
- Programming with Graphics Mill for .NET
- File Formats
- Graphics Mill for .NET Add-ons
- Class Library Reference
- Aurigma.GraphicsMill Namespace
- Aurigma.GraphicsMill.AjaxControls Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace
- Aurigma.GraphicsMill.Codecs Namespace
- Aurigma.GraphicsMill.Drawing Namespace
- Brush Class
- BrushType Enumeration
- Charset Enumeration
- Font Class
- GdiGraphics Class
- GdiGraphics Members
- GdiGraphics Constructor
- GdiGraphics Methods
- {dtor} Method
- Clear Method
- Dispose Method
- DrawArc Method
- DrawBezier Method
- DrawBeziers Method
- DrawEllipse Method
- DrawFormattedText Method
- DrawImage Method
- DrawLine Method
- DrawLines Method
- DrawPie Method
- DrawPolygon Method
- DrawRectangle Method
- DrawString Method
- DrawText Method
- ExcludeClip Method
- FillEllipse Method
- FillPie Method
- FillPolygon Method
- FillRectangle Method
- FloodFill Method
- FloodFill Method (Point, Brush, Color, FloodFillMode, Single)
- FloodFill Method (PointF, Brush, Color, FloodFillMode, Single)
- FloodFill Method (Int32, Int32, Brush, Color, FloodFillMode, Single)
- FloodFill Method (Single, Single, Brush, Color, FloodFillMode, Single)
- FloodFill Method (Point, Brush, Color, FloodFillMode, Single, Boolean, Boolean)
- FloodFill Method (PointF, Brush, Color, FloodFillMode, Single, Boolean, Boolean)
- FloodFill Method (Int32, Int32, Brush, Color, FloodFillMode, Single, Boolean, Boolean)
- FloodFill Method (Single, Single, Brush, Color, FloodFillMode, Single, Boolean, Boolean)
- FromHdc Method
- FromHwnd Method
- GetHdc Method
- GetPixel Method
- IntersectClip Method
- Lock Method
- ResetClip Method
- SetClip Method
- SetPixel Method
- TranslateClip Method
- Unlock Method
- GdiGraphics Properties
- GdiGraphicsMode Enumeration
- HatchBrush Class
- HatchStyle Enumeration
- HorizontalAlignment Enumeration
- LineCap Enumeration
- Pen Class
- SolidBrush Class
- TextTrimmingMode Enumeration
- VerticalAlignment Enumeration
- Aurigma.GraphicsMill.Licensing Namespace
- Aurigma.GraphicsMill.Transforms Namespace
- Aurigma.GraphicsMill.WebControls Namespace
- Aurigma.GraphicsMill.WinControls Namespace
- GraphicsMill Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math Namespace (Client Class Library)
- Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace (Client Class Library)
- Samples
- Licensing
- Copyright Notices
This documentation is for the old version. Go to the latest Graphics Mill docs
GdiGraphics.FloodFill Method (PointF, Brush, Color, FloodFillMode, Single)
Fills an area of the display surface with the specified brush starting from specified point.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Sub FloodFill ( _
point As PointF, _
brush As Brush, _
targetColor As Color, _
mode As FloodFillMode, _
tolerance As Single _
)
C#
public void FloodFill(
PointF point,
Brush brush,
Color targetColor,
FloodFillMode mode,
float tolerance
)
Parameters
- point
-
Type: System.Drawing.PointF
PointF structure specifying the point to start filling from.
- brush
-
Type: Aurigma.GraphicsMill.Drawing.Brush
Brush class instance used to fill the surface. Currently only SolidBrush is supported.
- targetColor
-
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).
- mode
-
Type: Aurigma.GraphicsMill.Transforms.FloodFillMode
FloodFillMode value specifying how to determine the filling area boundary (see comments for targetColor).
- tolerance
-
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.
Remarks
Note
Flood fill can be applied only at GdiGraphics which is associated with Bitmap. If you try to apply it at GdiGraphics associated with device context, method will throw an exception.