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

    Extensions to IPath that allow the generation of outlines.

    Inheritance
    object
    OutlinePathExtensions
    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
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public static class OutlinePathExtensions

    Methods

    | Edit this page View Source

    GenerateOutline(IPath, float)

    Generates an outline of the path.

    Declaration
    public static IPath GenerateOutline(this IPath path, float width)
    Parameters
    Type Name Description
    IPath path

    The path to outline

    float width

    The outline width.

    Returns
    Type Description
    IPath

    A new IPath representing the outline.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an offset cannot be calculated.

    | Edit this page View Source

    GenerateOutline(IPath, float, JointStyle, EndCapStyle)

    Generates an outline of the path.

    Declaration
    public static IPath GenerateOutline(this IPath path, float width, JointStyle jointStyle, EndCapStyle endCapStyle)
    Parameters
    Type Name Description
    IPath path

    The path to outline

    float width

    The outline width.

    JointStyle jointStyle

    The style to apply to the joints.

    EndCapStyle endCapStyle

    The style to apply to the end caps.

    Returns
    Type Description
    IPath

    A new IPath representing the outline.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an offset cannot be calculated.

    | Edit this page View Source

    GenerateOutline(IPath, float, ReadOnlySpan<float>)

    Generates an outline of the path with alternating on and off segments based on the pattern.

    Declaration
    public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<float> pattern)
    Parameters
    Type Name Description
    IPath path

    The path to outline

    float width

    The outline width.

    ReadOnlySpan<float> pattern

    The pattern made of multiples of the width.

    Returns
    Type Description
    IPath

    A new IPath representing the outline.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an offset cannot be calculated.

    | Edit this page View Source

    GenerateOutline(IPath, float, ReadOnlySpan<float>, JointStyle, EndCapStyle)

    Generates an outline of the path with alternating on and off segments based on the pattern.

    Declaration
    public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<float> pattern, JointStyle jointStyle, EndCapStyle endCapStyle)
    Parameters
    Type Name Description
    IPath path

    The path to outline

    float width

    The outline width.

    ReadOnlySpan<float> pattern

    The pattern made of multiples of the width.

    JointStyle jointStyle

    The style to apply to the joints.

    EndCapStyle endCapStyle

    The style to apply to the end caps.

    Returns
    Type Description
    IPath

    A new IPath representing the outline.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an offset cannot be calculated.

    | Edit this page View Source

    GenerateOutline(IPath, float, ReadOnlySpan<float>, bool)

    Generates an outline of the path with alternating on and off segments based on the pattern.

    Declaration
    public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<float> pattern, bool startOff)
    Parameters
    Type Name Description
    IPath path

    The path to outline

    float width

    The outline width.

    ReadOnlySpan<float> pattern

    The pattern made of multiples of the width.

    bool startOff

    Whether the first item in the pattern is on or off.

    Returns
    Type Description
    IPath

    A new IPath representing the outline.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an offset cannot be calculated.

    | Edit this page View Source

    GenerateOutline(IPath, float, ReadOnlySpan<float>, bool, JointStyle, EndCapStyle)

    Generates an outline of the path with alternating on and off segments based on the pattern.

    Declaration
    public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<float> pattern, bool startOff, JointStyle jointStyle, EndCapStyle endCapStyle)
    Parameters
    Type Name Description
    IPath path

    The path to outline

    float width

    The outline width.

    ReadOnlySpan<float> pattern

    The pattern made of multiples of the width.

    bool startOff

    Whether the first item in the pattern is on or off.

    JointStyle jointStyle

    The style to apply to the joints.

    EndCapStyle endCapStyle

    The style to apply to the end caps.

    Returns
    Type Description
    IPath

    A new IPath representing the outline.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an offset cannot be calculated.

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