Class FillPathBuilderExtensions
Adds extensions that allow the flood filling of polygon outlines.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillPathBuilderExtensions
Methods
| Improve this Doc View SourceFill(IImageProcessingContext, Color, Action<PathBuilder>)
Flood fills the image within the provided region defined by an PathBuilder method using the specified color.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, Color color, Action<PathBuilder> region)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
Color | color | The color. |
Action<PathBuilder> | region | The PathBuilder method defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, Color, Action<PathBuilder>)
Flood fills the image within the provided region defined by an PathBuilder method using the specified color.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, Color color, Action<PathBuilder> region)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
DrawingOptions | options | The drawing options. |
Color | color | The color. |
Action<PathBuilder> | region | The PathBuilder method defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, IBrush, Action<PathBuilder>)
Flood fills the image within the provided region defined by an PathBuilder method using the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, IBrush brush, Action<PathBuilder> region)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
DrawingOptions | options | The graphics options. |
IBrush | brush | The brush. |
Action<PathBuilder> | region | The PathBuilder method defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, IBrush, Action<PathBuilder>)
Flood fills the image within the provided region defined by an PathBuilder method using the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, IBrush brush, Action<PathBuilder> region)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
IBrush | brush | The brush. |
Action<PathBuilder> | region | The PathBuilder method defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |