Struct PenOptions
Provides a set of configurations options for pens.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public struct PenOptions
Constructors
| Edit this page View SourcePenOptions(Color, float)
Initializes a new instance of the PenOptions struct.
Declaration
public PenOptions(Color color, float strokeWidth)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color. |
float | strokeWidth | The stroke width in px units. |
PenOptions(Color, float, float[]?)
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. |
float | strokeWidth | The stroke width in px units. |
float[] | strokePattern | The stroke pattern. |
PenOptions(Brush, float, float[]?)
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. |
float | strokeWidth | The stroke width in px units. |
float[] | strokePattern | The stroke pattern. |
PenOptions(float)
Initializes a new instance of the PenOptions struct.
Declaration
public PenOptions(float strokeWidth)
Parameters
Type | Name | Description |
---|---|---|
float | strokeWidth | The stroke width in px units. |
Properties
| Edit this page 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 |
---|---|
float[] |
StrokeWidth
Gets the stroke width in px units. Defaults to 1px.
Declaration
public readonly float StrokeWidth { get; }
Property Value
Type | Description |
---|---|
float |