Class FillPathCollectionExtensions
Adds extensions that allow the filling of collections of polygon outlines to the
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillPathCollectionExtensions
Methods
| Improve this Doc View SourceFill(IImageProcessingContext, Color, IPathCollection)
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, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | color | The color. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, Color, IPathCollection)
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, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
Color | color | The color. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, IBrush, IPathCollection)
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, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The graphics options. |
IBrush | brush | The brush. |
IPathCollection | paths | The shapes. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, IBrush, IPathCollection)
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, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
IBrush | brush | The brush. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |