Class FillExtensions
Adds extensions that allow the flood filling of images.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillExtensionsMethods
| Improve this Doc View SourceFill(IImageProcessingContext, Color)
Flood fills the image with the specified color.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, Color color)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image processing context. | 
| Color | color | The color. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The  | 
Fill(IImageProcessingContext, DrawingOptions, Color)
Flood fills the image with the specified color.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, Color color)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image processing context. | 
| DrawingOptions | options | The drawing options. | 
| Color | color | The color. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The  | 
Fill(IImageProcessingContext, DrawingOptions, IBrush)
Flood fills the image with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, IBrush brush)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image processing context. | 
| DrawingOptions | options | The drawing options. | 
| IBrush | brush | The brush. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The  | 
Fill(IImageProcessingContext, IBrush)
Flood fills the image with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, IBrush brush)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image processing context. | 
| IBrush | brush | The brush. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The  |