Class SolidPen
Defines a pen that can apply a pattern to a line with a set brush and thickness.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public class SolidPen : Pen
Constructors
| Improve this Doc View SourceSolidPen(Color)
Initializes a new instance of the SolidPen class.
Declaration
public SolidPen(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
SolidPen(Color, Single)
Initializes a new instance of the SolidPen class.
Declaration
public SolidPen(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Single | width | The width. |
SolidPen(Brush)
Initializes a new instance of the SolidPen class.
Declaration
public SolidPen(Brush strokeFill)
Parameters
Type | Name | Description |
---|---|---|
Brush | strokeFill | The brush used to fill the stroke outline. |
SolidPen(Brush, Single)
Initializes a new instance of the SolidPen class.
Declaration
public SolidPen(Brush strokeFill, float strokeWidth)
Parameters
Type | Name | Description |
---|---|---|
Brush | strokeFill | The brush used to fill the stroke outline. |
Single | strokeWidth | The stroke width in px units. |
SolidPen(PenOptions)
Initializes a new instance of the SolidPen class.
Declaration
public SolidPen(PenOptions options)
Parameters
Type | Name | Description |
---|---|---|
PenOptions | options | The pen options. |
Methods
| Improve this Doc View SourceEquals(Pen)
Declaration
public override bool Equals(Pen other)
Parameters
Type | Name | Description |
---|---|---|
Pen | other |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGeneratePath(IPath, Single)
Applies the styling from the pen to a path and generate a new path with the final vector.
Declaration
public override IPath GeneratePath(IPath path, float strokeWidth)
Parameters
Type | Name | Description |
---|---|---|
IPath | path | The source path |
Single | strokeWidth | The stroke width in px units. |
Returns
Type | Description |
---|---|
IPath | The IPath with the pen styling applied. |