Skip to content

Commit bf57cfe

Browse files
Update ISimplePath.cs
1 parent 5b2179b commit bf57cfe

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using System.Runtime.CompilerServices;
5-
using System.Runtime.InteropServices.ComTypes;
6-
using SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper;
7-
using SixLabors.PolygonClipper;
8-
94
namespace SixLabors.ImageSharp.Drawing;
105

116
/// <summary>
@@ -16,26 +11,10 @@ public interface ISimplePath
1611
/// <summary>
1712
/// Gets a value indicating whether this instance is a closed path.
1813
/// </summary>
19-
bool IsClosed { get; }
14+
public bool IsClosed { get; }
2015

2116
/// <summary>
2217
/// Gets the points that make this up as a simple linear path.
2318
/// </summary>
24-
ReadOnlyMemory<PointF> Points { get; }
25-
26-
/// <summary>
27-
/// Converts to <see cref="SixLabors.PolygonClipper.Polygon"/>
28-
/// </summary>
29-
/// <returns>The converted polygon.</returns>
30-
internal SixLabors.PolygonClipper.Contour ToContour()
31-
{
32-
Contour contour = new();
33-
34-
foreach (PointF point in this.Points.Span)
35-
{
36-
contour.AddVertex(new Vertex(point.X, point.Y));
37-
}
38-
39-
return contour;
40-
}
19+
public ReadOnlyMemory<PointF> Points { get; }
4120
}

0 commit comments

Comments
 (0)