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

    Adds extensions that allow the drawing of lines.

    Inheritance
    object
    DrawLineExtensions
    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 DrawLineExtensions

    Methods

    | Edit this page View Source

    DrawLine(IImageProcessingContext, Color, float, params PointF[])

    Draws the provided points as an open linear path at the provided thickness with the supplied brush.

    Declaration
    public static IImageProcessingContext DrawLine(this IImageProcessingContext source, Color color, float thickness, params PointF[] points)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The source image processing context.

    Color color

    The color.

    float thickness

    The line thickness.

    PointF[] points

    The points.

    Returns
    Type Description
    IImageProcessingContext

    The IImageProcessingContext to allow chaining of operations.

    | Edit this page View Source

    DrawLine(IImageProcessingContext, Brush, float, params PointF[])

    Draws the provided points as an open linear path at the provided thickness with the supplied brush.

    Declaration
    public static IImageProcessingContext DrawLine(this IImageProcessingContext source, Brush brush, float thickness, params PointF[] points)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The source image processing context.

    Brush brush

    The brush.

    float thickness

    The line thickness.

    PointF[] points

    The points.

    Returns
    Type Description
    IImageProcessingContext

    The IImageProcessingContext to allow chaining of operations.

    | Edit this page View Source

    DrawLine(IImageProcessingContext, DrawingOptions, Color, float, params PointF[])

    Draws the provided points as an open linear path at the provided thickness with the supplied brush.

    Declaration
    public static IImageProcessingContext DrawLine(this IImageProcessingContext source, DrawingOptions options, Color color, float thickness, params PointF[] points)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The source image processing context.

    DrawingOptions options

    The options.

    Color color

    The color.

    float thickness

    The line thickness.

    PointF[] points

    The points.

    Returns
    Type Description
    IImageProcessingContext

    The IImageProcessingContext to allow chaining of operations.

    | Edit this page View Source

    DrawLine(IImageProcessingContext, DrawingOptions, Brush, float, params PointF[])

    Draws the provided points as an open linear path at the provided thickness with the supplied brush.

    Declaration
    public static IImageProcessingContext DrawLine(this IImageProcessingContext source, DrawingOptions options, Brush brush, float thickness, params PointF[] points)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The source image processing context.

    DrawingOptions options

    The options.

    Brush brush

    The brush.

    float thickness

    The line thickness.

    PointF[] points

    The points.

    Returns
    Type Description
    IImageProcessingContext

    The IImageProcessingContext to allow chaining of operations.

    | Edit this page View Source

    DrawLine(IImageProcessingContext, DrawingOptions, Pen, params PointF[])

    Draws the provided points as an open linear path with the supplied pen.

    Declaration
    public static IImageProcessingContext DrawLine(this IImageProcessingContext source, DrawingOptions options, Pen pen, params PointF[] points)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The source image processing context.

    DrawingOptions options

    The options.

    Pen pen

    The pen.

    PointF[] points

    The points.

    Returns
    Type Description
    IImageProcessingContext

    The IImageProcessingContext to allow chaining of operations.

    | Edit this page View Source

    DrawLine(IImageProcessingContext, Pen, params PointF[])

    Draws the provided points as an open linear path with the supplied pen.

    Declaration
    public static IImageProcessingContext DrawLine(this IImageProcessingContext source, Pen pen, params PointF[] points)
    Parameters
    Type Name Description
    IImageProcessingContext source

    The source image processing context.

    Pen pen

    The pen.

    PointF[] points

    The points.

    Returns
    Type Description
    IImageProcessingContext

    The IImageProcessingContext to allow chaining of operations.

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