Class DrawPathCollectionExtensions
Adds extensions that allow the drawing of collections of polygon outlines.
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class DrawPathCollectionExtensions : object
Methods
| Improve this Doc View SourceDraw(IImageProcessingContext, Color, Single, IPathCollection)
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, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Color | color | The color. |
Single | thickness | The thickness. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, Brush, Single, IPathCollection)
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, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
Single | thickness | The thickness. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, DrawingOptions, Color, Single, IPathCollection)
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, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Color | color | The color. |
Single | thickness | The thickness. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, DrawingOptions, Brush, Single, IPathCollection)
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, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Brush | brush | The brush. |
Single | thickness | The thickness. |
IPathCollection | paths | The shapes. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, DrawingOptions, Pen, IPathCollection)
Draws the outline of the polygon with the provided pen.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, DrawingOptions options, Pen pen, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Pen | pen | The pen. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, Pen, IPathCollection)
Draws the outline of the polygon with the provided pen.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, Pen pen, IPathCollection paths)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Pen | pen | The pen. |
IPathCollection | paths | The paths. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |