Class DrawPolygonExtensions
Adds extensions that allow the drawing of closed linear polygons to the
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class DrawPolygonExtensions
Methods
| Improve this Doc View SourceDrawPolygon(IImageProcessingContext, Color, Single, PointF[])
Draws the provided Points as a closed Linear Polygon with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, Color color, float thickness, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | color | The color. |
Single | thickness | The thickness. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawPolygon(IImageProcessingContext, DrawingOptions, Color, Single, PointF[])
Draws the provided Points as a closed Linear Polygon with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, DrawingOptions options, Color color, float thickness, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
Color | color | The color. |
Single | thickness | The thickness. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawPolygon(IImageProcessingContext, DrawingOptions, IBrush, Single, PointF[])
Draws the provided Points as a closed Linear Polygon with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, DrawingOptions options, IBrush brush, float thickness, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
IBrush | brush | The brush. |
Single | thickness | The thickness. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawPolygon(IImageProcessingContext, DrawingOptions, IPen, PointF[])
Draws the provided Points as a closed Linear Polygon with the provided Pen.
Declaration
public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, DrawingOptions options, IPen pen, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
IPen | pen | The pen. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawPolygon(IImageProcessingContext, IBrush, Single, PointF[])
Draws the provided Points as a closed Linear Polygon with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IBrush brush, float thickness, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
IBrush | brush | The brush. |
Single | thickness | The thickness. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawPolygon(IImageProcessingContext, IPen, PointF[])
Draws the provided Points as a closed Linear Polygon with the provided Pen.
Declaration
public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IPen pen, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
IPen | pen | The pen. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |