Class FillPathCollectionExtensions
Adds extensions that allow the filling of collections of polygon outlines.
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillPathCollectionExtensions : object
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 source image processing context. |
Color | color | The color. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, Brush, IPathCollection)
Flood fills the image in the shape of the provided polygon with the specified brush.
Declaration
public static IImageProcessingContext Fill(this IImageProcessingContext source, Brush brush, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
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 source image processing context. |
DrawingOptions | options | The options. |
Color | color | The color. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Fill(IImageProcessingContext, DrawingOptions, Brush, 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, Brush brush, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The graphics options. |
Brush | brush | The brush. |
IPathCollection | paths | The shapes. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |