Class FillPolygonExtensions
Adds extensions that allow the filling of closed linear polygons.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class FillPolygonExtensions
Methods
| Edit this page View SourceFillPolygon(IImageProcessingContext, Color, params PointF[])
Flood fills the image in the shape of a linear polygon described by the points
Declaration
public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, Color color, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Color | color | The color. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
FillPolygon(IImageProcessingContext, Brush, params PointF[])
Flood fills the image in the shape of a linear polygon described by the points
Declaration
public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, Brush brush, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
FillPolygon(IImageProcessingContext, DrawingOptions, Color, params PointF[])
Flood fills the image in the shape of a linear polygon described by the points
Declaration
public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, DrawingOptions options, Color color, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Color | color | The color. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
FillPolygon(IImageProcessingContext, DrawingOptions, Brush, params PointF[])
Flood fills the image in the shape of a linear polygon described by the points
Declaration
public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, DrawingOptions options, Brush brush, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Brush | brush | The brush. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |