Browse Source

Remove unnecessary Memory<T>.Span access

pull/1314/head
Sergio Pedri 6 years ago
parent
commit
567f3a6a5f
  1. 2
      src/ImageSharp/Processing/Processors/Dithering/OrderedDither.cs

2
src/ImageSharp/Processing/Processors/Dithering/OrderedDither.cs

@ -262,7 +262,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Dithering
this.source = source;
this.bounds = bounds;
this.scale = processor.DitherScale;
this.bitDepth = ImageMaths.GetBitsNeededForColorDepth(processor.Palette.Span.Length);
this.bitDepth = ImageMaths.GetBitsNeededForColorDepth(processor.Palette.Length);
}
[MethodImpl(InliningOptions.ShortMethod)]

Loading…
Cancel
Save