From 86279d7c3aa76fd387924627bc6bc4f491784481 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Wed, 31 May 2017 06:23:54 +0100 Subject: [PATCH] switch constructor and field back to array --- src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;