diff --git a/src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs b/src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs index 65ec9eabf6..37cfff9e93 100644 --- a/src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs +++ b/src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs @@ -27,8 +27,8 @@ namespace ImageSharp.Drawing.Pens public class Pen : IPen where TPixel : struct, IPixel { - private static readonly ReadOnlySpan EmptyPattern = new float[0]; - private readonly ReadOnlySpan pattern; + private static readonly float[] EmptyPattern = new float[0]; + private readonly float[] pattern; /// /// Initializes a new instance of the class. @@ -36,7 +36,7 @@ namespace ImageSharp.Drawing.Pens /// The color. /// The width. /// The pattern. - public Pen(TPixel color, float width, ReadOnlySpan pattern) + public Pen(TPixel color, float width, float[] pattern) : this(new SolidBrush(color), width, pattern) { } @@ -47,7 +47,7 @@ namespace ImageSharp.Drawing.Pens /// The brush. /// The width. /// The pattern. - public Pen(IBrush brush, float width, ReadOnlySpan pattern) + public Pen(IBrush brush, float width, float[] pattern) { this.StrokeFill = brush; this.StrokeWidth = width;