Class OutlinePathExtensions
Path extensions to generate outlines of paths.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class OutlinePathExtensions
Methods
| Improve this Doc View SourceGenerateOutline(IPath, Single)
Generates a solid outline of the path.
Declaration
public static IPath GenerateOutline(this IPath path, float width)
Parameters
Type | Name | Description |
---|---|---|
IPath | path | the path to outline |
Single | width | The final width outline |
Returns
Type | Description |
---|---|
IPath | A new path representing the outline. |
GenerateOutline(IPath, Single, JointStyle, EndCapStyle)
Generates a solid outline of the path.
Declaration
public static IPath GenerateOutline(this IPath path, float width, JointStyle jointStyle = JointStyle.Square, EndCapStyle endCapStyle = EndCapStyle.Square)
Parameters
Type | Name | Description |
---|---|---|
IPath | path | the path to outline |
Single | width | The final width outline |
JointStyle | jointStyle | The style to render the joints. |
EndCapStyle | endCapStyle | The style to render the end caps of open paths (ignored on closed paths). |
Returns
Type | Description |
---|---|
IPath | A new path representing the outline. |
GenerateOutline(IPath, Single, ReadOnlySpan<Single>)
Generates a 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 |
Single | width | The final width outline |
ReadOnlySpan<Single> | pattern | The pattern made of multiples of the width. |
Returns
Type | Description |
---|---|
IPath | A new path representing the outline. |
GenerateOutline(IPath, Single, ReadOnlySpan<Single>, Boolean)
Generates a 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 |
Single | width | The final width outline |
ReadOnlySpan<Single> | pattern | The pattern made of multiples of the width. |
Boolean | startOff | Weather the first item in the pattern is on or off. |
Returns
Type | Description |
---|---|
IPath | A new path representing the outline. |
GenerateOutline(IPath, Single, ReadOnlySpan<Single>, Boolean, JointStyle, EndCapStyle)
Generates a 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 = JointStyle.Square, EndCapStyle patternSectionCapStyle = EndCapStyle.Butt)
Parameters
Type | Name | Description |
---|---|---|
IPath | path | the path to outline |
Single | width | The final width outline |
ReadOnlySpan<Single> | pattern | The pattern made of multiples of the width. |
Boolean | startOff | Weather the first item in the pattern is on or off. |
JointStyle | jointStyle | The style to render the joints. |
EndCapStyle | patternSectionCapStyle | The style to render between sections of the specified pattern. |
Returns
Type | Description |
---|---|
IPath | A new path representing the outline. |
GenerateOutline(IPath, Single, Single[])
Generates a outline of the path with alternating on and off segments based on the pattern.
Declaration
public static IPath GenerateOutline(this IPath path, float width, float[] pattern)
Parameters
Type | Name | Description |
---|---|---|
IPath | path | the path to outline |
Single | width | The final width outline |
Single[] | pattern | The pattern made of multiples of the width. |
Returns
Type | Description |
---|---|
IPath | A new path representing the outline. |
GenerateOutline(IPath, Single, Single[], Boolean)
Generates a outline of the path with alternating on and off segments based on the pattern.
Declaration
public static IPath GenerateOutline(this IPath path, float width, float[] pattern, bool startOff)
Parameters
Type | Name | Description |
---|---|---|
IPath | path | the path to outline |
Single | width | The final width outline |
Single[] | pattern | The pattern made of multiples of the width. |
Boolean | startOff | Weather the first item in the pattern is on or off. |
Returns
Type | Description |
---|---|
IPath | A new path representing the outline. |