Class DrawPathExtensions
Adds extensions that allow the drawing of polygon outlines.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class DrawPathExtensions
Methods
| Edit this page View SourceDraw(IImageProcessingContext, Color, float, IPath)
Draws the outline of the polygon with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, Color color, float thickness, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Color | color | The color. |
float | thickness | The thickness. |
IPath | path | The path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, Brush, float, IPath)
Draws the outline of the polygon with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, Brush brush, float thickness, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
float | thickness | The thickness. |
IPath | path | The path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, DrawingOptions, Color, float, IPath)
Draws the outline of the polygon with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, DrawingOptions options, Color color, float thickness, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Color | color | The color. |
float | thickness | The thickness. |
IPath | path | The path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, DrawingOptions, Brush, float, IPath)
Draws the outline of the polygon with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, DrawingOptions options, Brush brush, float thickness, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Brush | brush | The brush. |
float | thickness | The thickness. |
IPath | path | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, DrawingOptions, Pen, IPath)
Draws the outline of the polygon with the provided pen.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, DrawingOptions options, Pen pen, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Pen | pen | The pen. |
IPath | path | The path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, Pen, IPath)
Draws the outline of the polygon with the provided pen.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, Pen pen, IPath path)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Pen | pen | The pen. |
IPath | path | The path. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |