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
Returns
GenerateOutline(IPath, float, StrokeOptions)
Generates an outline of the path.
public static IPath GenerateOutline(this IPath path, float width, StrokeOptions strokeOptions)
Parameters
pathIPathThe path to outline.
widthfloatThe outline width.
strokeOptionsStrokeOptionsThe stroke geometry options.
Returns
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
pathIPathThe path to outline.
widthfloatThe outline width.
patternReadOnlySpan<float>The pattern made of multiples of the width.
Returns
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
pathIPathThe path to outline.
widthfloatThe outline width.
patternReadOnlySpan<float>The pattern made of multiples of the width.
strokeOptionsStrokeOptionsThe stroke geometry options.
Returns
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
pathIPathThe path to outline.
widthfloatThe outline width.
patternReadOnlySpan<float>The pattern made of multiples of the width.
startOffboolWhether the first item in the pattern is on or off.
Returns
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
pathIPathThe path to outline.
widthfloatThe outline width.
patternReadOnlySpan<float>The pattern made of multiples of the width.
startOffboolWhether the first item in the pattern is on or off.
strokeOptionsStrokeOptionsThe stroke geometry options.
Returns
GenerateOutline(IPath, float, ReadOnlySpan<float>, bool, 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, bool startOff, float offset)
Parameters
pathIPathThe path to outline.
widthfloatThe outline width.
patternReadOnlySpan<float>The pattern made of multiples of the width.
startOffboolWhether the first item in the pattern is on or off.
offsetfloatThe distance into the dash pattern, expressed as a multiple of
width.
Returns
GenerateOutline(IPath, float, ReadOnlySpan<float>, bool, 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, bool startOff, float offset, StrokeOptions strokeOptions)
Parameters
pathIPathThe path to outline.
widthfloatThe outline width.
patternReadOnlySpan<float>The pattern made of multiples of the width.
startOffboolWhether the first item in the pattern is on or off.
offsetfloatThe distance into the dash pattern, expressed as a multiple of
width.strokeOptionsStrokeOptionsThe stroke geometry options.
Returns
GenerateOutline(IPath, float, ReadOnlySpan<float>, 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, float offset)
Parameters
pathIPathThe path to outline.
widthfloatThe outline width.
patternReadOnlySpan<float>The pattern made of multiples of the width.
offsetfloatThe distance into the dash pattern, expressed as a multiple of
width.
Returns
GenerateOutline(IPath, float, ReadOnlySpan<float>, 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, float offset, StrokeOptions strokeOptions)
Parameters
pathIPathThe path to outline.
widthfloatThe outline width.
patternReadOnlySpan<float>The pattern made of multiples of the width.
offsetfloatThe distance into the dash pattern, expressed as a multiple of
width.strokeOptionsStrokeOptionsThe stroke geometry options.