• 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

    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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 Source

    EndCapStyle

    Gets or sets the end cap style.

    Declaration
    public EndCapStyle EndCapStyle { readonly get; set; }
    Property Value
    Type Description
    EndCapStyle
    | Edit this page View Source

    JointStyle

    Gets or sets the joint style.

    Declaration
    public JointStyle JointStyle { readonly get; set; }
    Property Value
    Type Description
    JointStyle
    | Edit this page View Source

    StrokeFill

    Gets the brush used to fill the stroke outline. Defaults to SolidBrush.

    Declaration
    public readonly Brush StrokeFill { get; }
    Property Value
    Type Description
    Brush
    | Edit this page View Source

    StrokePattern

    Gets the stroke pattern.

    Declaration
    public readonly float[] StrokePattern { get; }
    Property Value
    Type Description
    float[]
    | Edit this page View Source

    StrokeWidth

    Gets the stroke width in px units. Defaults to 1px.

    Declaration
    public readonly float StrokeWidth { get; }
    Property Value
    Type Description
    float
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX