Browse Source

Remove unnecessary Memory<T>.Span access

js/color-alpha-handling
Sergio Pedri 6 years ago
parent
commit
88a93fafe2
  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