Class DrawLineExtensions
Adds extensions that allow the drawing of lines.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class DrawLineExtensions
Methods
| Improve this Doc View SourceDrawLines(IImageProcessingContext, Color, Single, PointF[])
Draws the provided points as an open linear path at the provided thickness with the supplied brush.
Declaration
public static IImageProcessingContext DrawLines(this IImageProcessingContext source, Color color, float thickness, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
Color | color | The color. |
Single | thickness | The line thickness. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawLines(IImageProcessingContext, DrawingOptions, Color, Single, PointF[])
Draws the provided points as an open linear path at the provided thickness with the supplied brush.
Declaration
public static IImageProcessingContext DrawLines(this IImageProcessingContext source, DrawingOptions options, Color color, float thickness, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
DrawingOptions | options | The options. |
Color | color | The color. |
Single | thickness | The line thickness. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawLines(IImageProcessingContext, DrawingOptions, IBrush, Single, PointF[])
Draws the provided points as an open linear path at the provided thickness with the supplied brush.
Declaration
public static IImageProcessingContext DrawLines(this IImageProcessingContext source, DrawingOptions options, IBrush brush, float thickness, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
DrawingOptions | options | The options. |
IBrush | brush | The brush. |
Single | thickness | The line thickness. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawLines(IImageProcessingContext, DrawingOptions, IPen, PointF[])
Draws the provided points as an open linear path with the supplied pen.
Declaration
public static IImageProcessingContext DrawLines(this IImageProcessingContext source, DrawingOptions options, IPen pen, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
DrawingOptions | options | The options. |
IPen | pen | The pen. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawLines(IImageProcessingContext, IBrush, Single, PointF[])
Draws the provided points as an open linear path at the provided thickness with the supplied brush.
Declaration
public static IImageProcessingContext DrawLines(this IImageProcessingContext source, IBrush brush, float thickness, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
IBrush | brush | The brush. |
Single | thickness | The line thickness. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
DrawLines(IImageProcessingContext, IPen, PointF[])
Draws the provided points as an open linear path with the supplied pen.
Declaration
public static IImageProcessingContext DrawLines(this IImageProcessingContext source, IPen pen, params PointF[] points)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image processing context. |
IPen | pen | The pen. |
PointF[] | points | The points. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |