---
title: "FloodFill Constructor (Int32, Int32, Color, Color, FloodFillMode, Single, Boolean, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Transforms_FloodFill_ctor_8_593ef8fa.htm
product: "Graphics Mill"
---

# FloodFill Constructor (Int32, Int32, Color, Color, FloodFillMode, Single, Boolean, Boolean)
 
Initializes a new instance of the [FloodFill](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_FloodFill.htm.md) class using the specified settings.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
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](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_FloodFill_Point.htm.md) property.

 - y
     - Type: System.Int32
The y-coordinate of the point to start filling from. You can change it later using the [Point](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_FloodFill_Point.htm.md) property.

 - fillColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md)
A [Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md) to fill with. You can change it later using the [FillColor](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_FloodFill_FillColor.htm.md) property.

 - targetColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md)
A [Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md) used to determine the filling area boundaries. You can change it later using the [TargetColor](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_FloodFill_TargetColor.htm.md) property.

 - mode
     - Type: [Aurigma.GraphicsMill.Transforms.FloodFillMode](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_FloodFillMode.htm.md)
A [FloodFillMode](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_FloodFillMode.htm.md) value specifying how to determine the filling area boundary. You can change it later using the [Mode](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_FloodFill_Mode.htm.md) property.

 - tolerance
     - Type: System.Single
The tolerance for the target color in range [0, 1]. You can change it later using the [Tolerance](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_FloodFill_Tolerance.htm.md) property.

 - preserveAlpha
     - Type: System.Boolean
 `true` if to preserve alpha channel; otherwise, `false`. You can change it later using the [PreserveAlpha](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_FloodFill_PreserveAlpha.htm.md) property.

 - processHalftones
     - Type: System.Boolean
 `true` if tolerant colors are alpha-blended; otherwise, `false`. You can change it later using the [ProcessHalftones](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_FloodFill_ProcessHalftones.htm.md) property.
   
## See Also

### Reference

- [FloodFill Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_FloodFill.htm.md)
- [FloodFill Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Transforms_FloodFill_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
