• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Drawing
      • ArcLineSegment
      • ClipPathExtensions
      • ClippingOperation
      • ComplexPolygon
      • CubicBezierLineSegment
      • EllipsePolygon
      • EmptyPath
      • EndCapStyle
      • ILineSegment
      • IPath
      • IPathCollection
      • ISimplePath
      • IntersectionRule
      • JointStyle
      • LinearLineSegment
      • OutlinePathExtensions
      • Path
      • PathBuilder
      • PathCollection
      • PathExtensions
      • PathTypes
      • Polygon
      • RectangularPolygon
      • RegularPolygon
      • SegmentInfo
      • Star
      • TextBuilder
    • SixLabors.ImageSharp.Drawing.Processing
      • Brush
      • BrushApplicator<TPixel>
      • Brushes
      • ClearExtensions
      • ClearPathExtensions
      • ClearRectangleExtensions
      • ClipPathExtensions
      • ColorStop
      • DrawBezierExtensions
      • DrawLineExtensions
      • DrawPathCollectionExtensions
      • DrawPathExtensions
      • DrawPolygonExtensions
      • DrawRectangleExtensions
      • DrawTextExtensions
      • DrawingOptions
      • DrawingOptionsDefaultsExtensions
      • EllipticGradientBrush
      • FillExtensions
      • FillPathBuilderExtensions
      • FillPathCollectionExtensions
      • FillPathExtensions
      • FillPolygonExtensions
      • FillRectangleExtensions
      • GradientBrush
      • GradientRepetitionMode
      • ImageBrush
      • LinearGradientBrush
      • PathGradientBrush
      • PatternBrush
      • PatternPen
      • Pen
      • PenOptions
      • Pens
      • RadialGradientBrush
      • RecolorBrush
      • RichTextOptions
      • RichTextRun
      • ShapeGraphicOptionsDefaultsExtensions
      • ShapeOptions
      • SolidBrush
      • SolidPen
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Drawing
      • ClipPathProcessor
      • DrawPathProcessor
      • FillPathProcessor
      • FillProcessor
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Text
      • DrawTextProcessor
    • SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper
      • ClipperException
      • ClippingType

    Class SolidPen

    Defines a pen that can apply a pattern to a line with a set brush and thickness.

    Inheritance
    object
    Pen
    SolidPen
    Implements
    IEquatable<Pen>
    Inherited Members
    Pen.StrokeFill
    Pen.StrokeWidth
    Pen.StrokePattern
    Pen.JointStyle
    Pen.EndCapStyle
    Pen.GeneratePath(IPath)
    Pen.Equals(object)
    Pen.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Drawing.Processing
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public class SolidPen : Pen, IEquatable<Pen>

    Constructors

    | Edit this page View Source

    SolidPen(Color)

    Initializes a new instance of the SolidPen class.

    Declaration
    public SolidPen(Color color)
    Parameters
    Type Name Description
    Color color

    The color.

    | Edit this page View Source

    SolidPen(Color, float)

    Initializes a new instance of the SolidPen class.

    Declaration
    public SolidPen(Color color, float width)
    Parameters
    Type Name Description
    Color color

    The color.

    float width

    The width.

    | Edit this page View Source

    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.

    | Edit this page View Source

    SolidPen(Brush, float)

    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.

    float strokeWidth

    The stroke width in px units.

    | Edit this page View Source

    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

    | Edit this page View Source

    Equals(Pen?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public override bool Equals(Pen? other)
    Parameters
    Type Name Description
    Pen other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    Overrides
    Pen.Equals(Pen?)
    | Edit this page View Source

    GeneratePath(IPath, float)

    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

    float strokeWidth

    The stroke width in px units.

    Returns
    Type Description
    IPath

    The IPath with the pen styling applied.

    Overrides
    Pen.GeneratePath(IPath, float)

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX