• 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 Pens

    Contains a collection of common pen styles.

    Inheritance
    object
    Pens
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Drawing.Processing
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public static class Pens

    Methods

    | Edit this page View Source

    Dash(Color, float)

    Create a pen with a 'Dash' drawing patterns

    Declaration
    public static PatternPen Dash(Color color, float width)
    Parameters
    Type Name Description
    Color color

    The color.

    float width

    The width.

    Returns
    Type Description
    PatternPen

    The Pen.

    | Edit this page View Source

    Dash(Brush, float)

    Create a pen with a 'Dash' drawing patterns

    Declaration
    public static PatternPen Dash(Brush brush, float width)
    Parameters
    Type Name Description
    Brush brush

    The brush.

    float width

    The width.

    Returns
    Type Description
    PatternPen

    The Pen.

    | Edit this page View Source

    DashDot(Color, float)

    Create a pen with a 'Dash Dot' drawing patterns

    Declaration
    public static PatternPen DashDot(Color color, float width)
    Parameters
    Type Name Description
    Color color

    The color.

    float width

    The width.

    Returns
    Type Description
    PatternPen

    The Pen.

    | Edit this page View Source

    DashDot(Brush, float)

    Create a pen with a 'Dash Dot' drawing patterns

    Declaration
    public static PatternPen DashDot(Brush brush, float width)
    Parameters
    Type Name Description
    Brush brush

    The brush.

    float width

    The width.

    Returns
    Type Description
    PatternPen

    The Pen.

    | Edit this page View Source

    DashDotDot(Color, float)

    Create a pen with a 'Dash Dot Dot' drawing patterns

    Declaration
    public static PatternPen DashDotDot(Color color, float width)
    Parameters
    Type Name Description
    Color color

    The color.

    float width

    The width.

    Returns
    Type Description
    PatternPen

    The Pen.

    | Edit this page View Source

    DashDotDot(Brush, float)

    Create a pen with a 'Dash Dot Dot' drawing patterns

    Declaration
    public static PatternPen DashDotDot(Brush brush, float width)
    Parameters
    Type Name Description
    Brush brush

    The brush.

    float width

    The width.

    Returns
    Type Description
    PatternPen

    The Pen.

    | Edit this page View Source

    Dot(Color, float)

    Create a pen with a 'Dot' drawing patterns

    Declaration
    public static PatternPen Dot(Color color, float width)
    Parameters
    Type Name Description
    Color color

    The color.

    float width

    The width.

    Returns
    Type Description
    PatternPen

    The Pen.

    | Edit this page View Source

    Dot(Brush, float)

    Create a pen with a 'Dot' drawing patterns

    Declaration
    public static PatternPen Dot(Brush brush, float width)
    Parameters
    Type Name Description
    Brush brush

    The brush.

    float width

    The width.

    Returns
    Type Description
    PatternPen

    The Pen.

    | Edit this page View Source

    Solid(Color)

    Create a solid pen without any drawing patterns

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

    The color.

    Returns
    Type Description
    SolidPen

    The Pen.

    | Edit this page View Source

    Solid(Color, float)

    Create a solid pen without any drawing patterns

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

    The color.

    float width

    The width.

    Returns
    Type Description
    SolidPen

    The Pen.

    | Edit this page View Source

    Solid(Brush)

    Create a solid pen without any drawing patterns

    Declaration
    public static SolidPen Solid(Brush brush)
    Parameters
    Type Name Description
    Brush brush

    The brush.

    Returns
    Type Description
    SolidPen

    The Pen.

    | Edit this page View Source

    Solid(Brush, float)

    Create a solid pen without any drawing patterns

    Declaration
    public static SolidPen Solid(Brush brush, float width)
    Parameters
    Type Name Description
    Brush brush

    The brush.

    float width

    The width.

    Returns
    Type Description
    SolidPen

    The Pen.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX