diff --git a/src/ImageSharp/Drawing/Paths/BezierLineSegment.cs b/src/ImageSharp/Drawing/Paths/BezierLineSegment.cs index 4771a3ed98..8452efd5ca 100644 --- a/src/ImageSharp/Drawing/Paths/BezierLineSegment.cs +++ b/src/ImageSharp/Drawing/Paths/BezierLineSegment.cs @@ -68,7 +68,7 @@ namespace ImageSharp.Drawing.Paths /// /// Returns the current as simple linear path. /// - public IEnumerable AsSimpleLinearPath() + public Vector2[] AsSimpleLinearPath() { return this.linePoints; } diff --git a/src/ImageSharp/Drawing/Paths/ILineSegment.cs b/src/ImageSharp/Drawing/Paths/ILineSegment.cs index db348fc1a4..24794442f3 100644 --- a/src/ImageSharp/Drawing/Paths/ILineSegment.cs +++ b/src/ImageSharp/Drawing/Paths/ILineSegment.cs @@ -20,6 +20,6 @@ namespace ImageSharp.Drawing.Paths /// Converts the into a simple linear path.. /// /// Returns the current as simple linear path. - IEnumerable AsSimpleLinearPath(); + Vector2[] AsSimpleLinearPath(); // TODO move this over to ReadonlySpan once availible } } diff --git a/src/ImageSharp/Drawing/Paths/LinearLineSegment.cs b/src/ImageSharp/Drawing/Paths/LinearLineSegment.cs index 6813098251..59e344d282 100644 --- a/src/ImageSharp/Drawing/Paths/LinearLineSegment.cs +++ b/src/ImageSharp/Drawing/Paths/LinearLineSegment.cs @@ -75,7 +75,7 @@ namespace ImageSharp.Drawing.Paths /// /// Returns the current as simple linear path. /// - public IEnumerable AsSimpleLinearPath() + public Vector2[] AsSimpleLinearPath() { return this.points; } diff --git a/src/ImageSharp/Drawing/Paths/Path.cs b/src/ImageSharp/Drawing/Paths/Path.cs index 90ecf5846e..b94275d579 100644 --- a/src/ImageSharp/Drawing/Paths/Path.cs +++ b/src/ImageSharp/Drawing/Paths/Path.cs @@ -60,7 +60,7 @@ namespace ImageSharp.Drawing.Paths /// /// Returns the current as simple linear path. /// - public IEnumerable AsSimpleLinearPath() + public Vector2[] AsSimpleLinearPath() { return this.innerPath.Points; } diff --git a/src/ImageSharp/Drawing/Shapes/Polygon.cs b/src/ImageSharp/Drawing/Shapes/Polygon.cs index 8091300b20..9de1220fb4 100644 --- a/src/ImageSharp/Drawing/Shapes/Polygon.cs +++ b/src/ImageSharp/Drawing/Shapes/Polygon.cs @@ -126,7 +126,7 @@ namespace ImageSharp.Drawing.Shapes /// /// Returns the current as simple linear path. /// - public IEnumerable AsSimpleLinearPath() + public Vector2[] AsSimpleLinearPath() { return this.innerPath.Points; }