Struct PenOptions
- Namespace
- SixLabors.ImageSharp.Drawing.Processing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Provides a set of configurations options for pens.
public struct PenOptions
- Inherited Members
Constructors
PenOptions(Color, float)
Initializes a new instance of the PenOptions struct.
public PenOptions(Color color, float strokeWidth)
Parameters
colorColorThe color.
strokeWidthfloatThe stroke width in the path's local coordinate space before any drawing transform is applied.
PenOptions(Color, float, float[]?)
Initializes a new instance of the PenOptions struct.
public PenOptions(Color color, float strokeWidth, float[]? strokePattern)
Parameters
colorColorThe color.
strokeWidthfloatThe stroke width in the path's local coordinate space before any drawing transform is applied.
strokePatternfloat[]The stroke pattern.
PenOptions(Brush, float, float[]?)
Initializes a new instance of the PenOptions struct.
public PenOptions(Brush strokeFill, float strokeWidth, float[]? strokePattern)
Parameters
strokeFillBrushThe brush used to fill the stroke outline.
strokeWidthfloatThe stroke width in the path's local coordinate space before any drawing transform is applied.
strokePatternfloat[]The stroke pattern.
PenOptions(float)
Initializes a new instance of the PenOptions struct.
public PenOptions(float strokeWidth)
Parameters
strokeWidthfloatThe stroke width in the path's local coordinate space before any drawing transform is applied.
Properties
StrokeFill
Gets the brush used to fill the stroke outline. Defaults to SolidBrush.
public readonly Brush StrokeFill { get; }
Property Value
StrokeOptions
Gets or sets the stroke geometry options used to stroke paths drawn with this pen.
public StrokeOptions? StrokeOptions { readonly get; set; }
Property Value
StrokePattern
Gets the stroke pattern.
public readonly float[] StrokePattern { get; }
Property Value
- float[]
StrokeWidth
Gets the stroke width in the path's local coordinate space before any drawing transform is applied. Defaults to 1.
public readonly float StrokeWidth { get; }