Class SolidPen
- Namespace
- SixLabors.ImageSharp.Drawing.Processing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Defines a pen that can apply a pattern to a line with a set brush and thickness.
public class SolidPen : Pen, IEquatable<Pen>
- Inheritance
-
SolidPen
- Implements
- Inherited Members
Constructors
SolidPen(Color)
Initializes a new instance of the SolidPen class.
public SolidPen(Color color)
Parameters
colorColorThe color.
SolidPen(Color, float)
Initializes a new instance of the SolidPen class.
public SolidPen(Color color, float width)
Parameters
SolidPen(Brush)
Initializes a new instance of the SolidPen class.
public SolidPen(Brush strokeFill)
Parameters
strokeFillBrushThe brush used to fill the stroke outline.
SolidPen(Brush, float)
Initializes a new instance of the SolidPen class.
public SolidPen(Brush strokeFill, float strokeWidth)
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.
SolidPen(PenOptions)
Initializes a new instance of the SolidPen class.
public SolidPen(PenOptions options)
Parameters
optionsPenOptionsThe pen options.
Methods
Equals(Pen?)
Indicates whether the current object is equal to another object of the same type.
public override bool Equals(Pen? other)
Parameters
otherPenAn object to compare with this object.
Returns
GeneratePath(IPath, float)
Applies the styling from the pen to a path and generate a new path with the final vector.
public override IPath GeneratePath(IPath path, float strokeWidth)
Parameters
pathIPathThe source path
strokeWidthfloatThe stroke width in the path's local coordinate space before any drawing transform is applied.