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 FillExtensions
Methods
| Edit this page 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 source image processing context. |
Color | color | The color. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, Brush)
Flood fills the image with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, Brush brush)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 source image processing context. |
DrawingOptions | options | The drawing options. |
Color | color | The color. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, DrawingOptions, Brush)
Flood fills the image with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, Brush brush)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The drawing options. |
Brush | brush | The brush. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |