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
| Edit this page 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 source image processing context. |
Color | color | The color. |
Action<PathBuilder> | region | The PathBuilder method defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, Brush, 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, Brush brush, Action<PathBuilder> region)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
Action<PathBuilder> | region | The PathBuilder method defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 source 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 IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, DrawingOptions, Brush, 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, Brush brush, Action<PathBuilder> region)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The graphics options. |
Brush | brush | The brush. |
Action<PathBuilder> | region | The PathBuilder method defining the region to fill. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |