Class FillPathCollectionExtensions
Adds extensions that allow the filling of collections of polygon outlines.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillPathCollectionExtensions
Methods
| Edit this page 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 IImageProcessingContext to allow chaining of operations. |
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 IImageProcessingContext to allow chaining of operations. |
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 IImageProcessingContext to allow chaining of operations. |
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 IImageProcessingContext to allow chaining of operations. |