Class FillPathExtensions
Adds extensions that allow the filling of polygon outlines.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillPathExtensions
Methods
| Edit this page View SourceFill(IImageProcessingContext, Color, IPath)
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, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Color | color | The color. |
IPath | path | The logic path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, Brush, IPath)
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, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
IPath | path | The logic path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, DrawingOptions, Color, IPath)
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, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The drawing options. |
Color | color | The color. |
IPath | path | The logic path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Fill(IImageProcessingContext, DrawingOptions, Brush, IPath)
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, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The drawing options. |
Brush | brush | The brush. |
IPath | path | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |