Class FillPathBuilderExtensions
Adds extensions that allow the filling of polygons with various brushes to the
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 in the shape of the provided polygon with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, Color color, Action<PathBuilder> path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | color | The color. |
Action<PathBuilder> | path | The path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, Color, Action<PathBuilder>)
Flood fills the image in the shape of the provided polygon with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, Color color, Action<PathBuilder> path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
Color | color | The color. |
Action<PathBuilder> | path | The path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, IBrush, Action<PathBuilder>)
Flood fills the image in the shape of the provided polygon with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, DrawingOptions options, IBrush brush, Action<PathBuilder> path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The graphics options. |
IBrush | brush | The brush. |
Action<PathBuilder> | path | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, IBrush, Action<PathBuilder>)
Flood fills the image in the shape of the provided polygon with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, IBrush brush, Action<PathBuilder> path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
IBrush | brush | The brush. |
Action<PathBuilder> | path | The path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |