We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4561a3c commit 52c5312Copy full SHA for 52c5312
1 file changed
src/ImageSharp.Drawing/Shapes/PolygonClipper/PolygonStroker.cs
@@ -62,12 +62,13 @@ public double MiterLimitTheta
62
63
public Polygon ProcessPath(ReadOnlySpan<PointF> pathPoints)
64
{
65
- for (int i = 0; i < pathPoints.Length - 2; i++)
+ for (int i = 0; i < pathPoints.Length - 1; i++)
66
67
PointF point = pathPoints[i];
68
this.AddVertex(point.X, point.Y, PathCommand.LineTo);
69
}
70
71
+ // This doesn't actually add the point. It triggers a close.
72
this.AddVertex(pathPoints[^1].X, pathPoints[^1].Y, PathCommand.EndPoly);
73
74
double x = 0;
0 commit comments