Struct PenOptions
Provides a set of configurations options for pens.
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public struct PenOptions
Constructors
| Improve this Doc View SourcePenOptions(Color, Single)
Initializes a new instance of the PenOptions struct.
Declaration
public PenOptions(Color color, float strokeWidth)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Single | strokeWidth | The stroke width in px units. |
PenOptions(Color, Single, Single[])
Initializes a new instance of the PenOptions struct.
Declaration
public PenOptions(Color color, float strokeWidth, float[] strokePattern)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
Single | strokeWidth | The stroke width in px units. |
Single[] | strokePattern | The stroke pattern. |
PenOptions(Brush, Single, Single[])
Initializes a new instance of the PenOptions struct.
Declaration
public PenOptions(Brush strokeFill, float strokeWidth, float[] strokePattern)
Parameters
Type | Name | Description |
---|---|---|
Brush | strokeFill | The brush used to fill the stroke outline. |
Single | strokeWidth | The stroke width in px units. |
Single[] | strokePattern | The stroke pattern. |
PenOptions(Single)
Initializes a new instance of the PenOptions struct.
Declaration
public PenOptions(float strokeWidth)
Parameters
Type | Name | Description |
---|---|---|
Single | strokeWidth | The stroke width in px units. |
Properties
| Improve this Doc View SourceEndCapStyle
Gets or sets the end cap style.
Declaration
public EndCapStyle EndCapStyle { readonly get; set; }
Property Value
Type | Description |
---|---|
EndCapStyle |
JointStyle
Gets or sets the joint style.
Declaration
public JointStyle JointStyle { readonly get; set; }
Property Value
Type | Description |
---|---|
JointStyle |
StrokeFill
Gets the brush used to fill the stroke outline. Defaults to SolidBrush.
Declaration
public readonly Brush StrokeFill { get; }
Property Value
Type | Description |
---|---|
Brush |
StrokePattern
Gets the stroke pattern.
Declaration
public readonly float[] StrokePattern { get; }
Property Value
Type | Description |
---|---|
Single[] |
StrokeWidth
Gets the stroke width in px units. Defaults to 1px.
Declaration
public readonly float StrokeWidth { get; }
Property Value
Type | Description |
---|---|
Single |