• 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

    Struct PenOptions

    Provides a set of configurations options for pens.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: SixLabors.ImageSharp.Drawing.Processing
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public struct PenOptions

    Constructors

    PenOptions(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

    EndCapStyle

    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
    In this article
    Back to top Generated by DocFX