44using System ;
55using System . Collections . Generic ;
66using System . Numerics ;
7- using SixLabors . ImageSharp . Drawing . Shapes . PolygonClipper ;
7+ using SixLabors . ImageSharp . Drawing . PolygonClipper ;
88
99namespace SixLabors . ImageSharp . Drawing
1010{
@@ -22,6 +22,7 @@ public static class OutlinePathExtensions
2222 /// <param name="width">The final width outline</param>
2323 /// <param name="pattern">The pattern made of multiples of the width.</param>
2424 /// <returns>A new path representing the outline.</returns>
25+ /// <exception cref="ClipperException">Execute: Couldn't caculate Offset</exception>
2526 public static IPath GenerateOutline ( this IPath path , float width , float [ ] pattern )
2627 => path . GenerateOutline ( width , new ReadOnlySpan < float > ( pattern ) ) ;
2728
@@ -32,6 +33,7 @@ public static IPath GenerateOutline(this IPath path, float width, float[] patter
3233 /// <param name="width">The final width outline</param>
3334 /// <param name="pattern">The pattern made of multiples of the width.</param>
3435 /// <returns>A new path representing the outline.</returns>
36+ /// <exception cref="ClipperException">Execute: Couldn't caculate Offset</exception>
3537 public static IPath GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern )
3638 => path . GenerateOutline ( width , pattern , false ) ;
3739
@@ -43,6 +45,7 @@ public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<f
4345 /// <param name="pattern">The pattern made of multiples of the width.</param>
4446 /// <param name="startOff">Weather the first item in the pattern is on or off.</param>
4547 /// <returns>A new path representing the outline.</returns>
48+ /// <exception cref="ClipperException">Execute: Couldn't caculate Offset</exception>
4649 public static IPath GenerateOutline ( this IPath path , float width , float [ ] pattern , bool startOff )
4750 => path . GenerateOutline ( width , new ReadOnlySpan < float > ( pattern ) , startOff ) ;
4851
@@ -54,6 +57,7 @@ public static IPath GenerateOutline(this IPath path, float width, float[] patter
5457 /// <param name="pattern">The pattern made of multiples of the width.</param>
5558 /// <param name="startOff">Weather the first item in the pattern is on or off.</param>
5659 /// <returns>A new path representing the outline.</returns>
60+ /// <exception cref="ClipperException">Execute: Couldn't caculate Offset</exception>
5761 public static IPath GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern , bool startOff )
5862 => GenerateOutline ( path , width , pattern , startOff , JointStyle . Square , EndCapStyle . Butt ) ;
5963
@@ -67,6 +71,7 @@ public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<f
6771 /// <param name="jointStyle">The style to render the joints.</param>
6872 /// <param name="patternSectionCapStyle">The style to render between sections of the specified pattern.</param>
6973 /// <returns>A new path representing the outline.</returns>
74+ /// <exception cref="ClipperException">Execute: Couldn't caculate Offset</exception>
7075 public static IPath GenerateOutline ( this IPath path , float width , ReadOnlySpan < float > pattern , bool startOff , JointStyle jointStyle = JointStyle . Square , EndCapStyle patternSectionCapStyle = EndCapStyle . Butt )
7176 {
7277 if ( pattern . Length < 2 )
@@ -167,6 +172,7 @@ public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<f
167172 /// <param name="path">the path to outline</param>
168173 /// <param name="width">The final width outline</param>
169174 /// <returns>A new path representing the outline.</returns>
175+ /// <exception cref="ClipperException">Execute: Couldn't caculate Offset</exception>
170176 public static IPath GenerateOutline ( this IPath path , float width ) => GenerateOutline ( path , width , JointStyle . Square , EndCapStyle . Butt ) ;
171177
172178 /// <summary>
@@ -177,6 +183,7 @@ public static IPath GenerateOutline(this IPath path, float width, ReadOnlySpan<f
177183 /// <param name="jointStyle">The style to render the joints.</param>
178184 /// <param name="endCapStyle">The style to render the end caps of open paths (ignored on closed paths).</param>
179185 /// <returns>A new path representing the outline.</returns>
186+ /// <exception cref="ClipperException">Execute: Couldn't caculate Offset</exception>
180187 public static IPath GenerateOutline ( this IPath path , float width , JointStyle jointStyle = JointStyle . Square , EndCapStyle endCapStyle = EndCapStyle . Square )
181188 {
182189 var offset = new ClipperOffset ( MiterOffsetDelta ) ;
0 commit comments