Table of Contents

Class OutlinePathExtensions

Namespace
SixLabors.ImageSharp.Drawing
Assembly
SixLabors.ImageSharp.Drawing.dll

Extensions to IPath that allow the generation of outlines.

public static class OutlinePathExtensions
Inheritance
OutlinePathExtensions
Inherited Members

Methods

GenerateOutline(IPath, float)

Generates an outline of the path.

public static IPath GenerateOutline(this IPath path, float width)

Parameters

path IPath

The path to outline

width float

The outline width.

Returns

IPath

A new IPath representing the outline.

GenerateOutline(IPath, float, StrokeOptions)

Generates an outline of the path.

public static IPath GenerateOutline(this IPath path, float width, StrokeOptions strokeOptions)

Parameters

path IPath

The path to outline

width float

The outline width.

strokeOptions StrokeOptions

The stroke geometry options.

Returns

IPath

A new IPath representing the outline.

GenerateOutline(IPath, float, ReadOnlySpan<float>)

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

public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<float> pattern)

Parameters

path IPath

The path to outline

width float

The outline width.

pattern ReadOnlySpan<float>

The pattern made of multiples of the width.

Returns

IPath

A new IPath representing the outline.

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

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

public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<float> pattern, StrokeOptions strokeOptions)

Parameters

path IPath

The path to outline

width float

The outline width.

pattern ReadOnlySpan<float>

The pattern made of multiples of the width.

strokeOptions StrokeOptions

The stroke geometry options.

Returns

IPath

A new IPath representing the outline.

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

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

public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<float> pattern, bool startOff)

Parameters

path IPath

The path to outline

width float

The outline width.

pattern ReadOnlySpan<float>

The pattern made of multiples of the width.

startOff bool

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

Returns

IPath

A new IPath representing the outline.

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

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

public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<float> pattern, bool startOff, StrokeOptions strokeOptions)

Parameters

path IPath

The path to outline

width float

The outline width.

pattern ReadOnlySpan<float>

The pattern made of multiples of the width.

startOff bool

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

strokeOptions StrokeOptions

The stroke geometry options.

Returns

IPath

A new IPath representing the outline.