Skip to content

Commit 8e7164e

Browse files
Merge branch 'sn/integrate-polygonclipper' of https://github.com/stefannikolei/ImageSharp.Drawing into sn/integrate-polygonclipper
2 parents 087f480 + 8f9696f commit 8e7164e

File tree

4 files changed

+2
-70
lines changed

4 files changed

+2
-70
lines changed

src/ImageSharp.Drawing/Shapes/ISimplePath.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@ public interface ISimplePath
2727
/// Converts to <see cref="SixLabors.PolygonClipper.Polygon"/>
2828
/// </summary>
2929
/// <returns>The converted polygon.</returns>
30-
internal SixLabors.PolygonClipper.Polygon ToPolygon()
30+
internal SixLabors.PolygonClipper.Contour ToContour()
3131
{
32-
SixLabors.PolygonClipper.Polygon polygon = [];
3332
Contour contour = new();
34-
polygon.Add(contour);
3533

3634
foreach (PointF point in this.Points.Span)
3735
{
3836
contour.AddVertex(new Vertex(point.X, point.Y));
3937
}
4038

41-
return polygon;
39+
return contour;
4240
}
4341
}

src/ImageSharp.Drawing/Shapes/PolygonClipper/FillRule.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/ImageSharp.Drawing/Shapes/PolygonClipper/JoinWith.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/ImageSharp.Drawing/Shapes/PolygonClipper/VertexFlags.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)