Browse Source

Update src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

Co-authored-by: Anton Firszov <antonfir@gmail.com>
pull/1654/head
James Jackson-South 5 years ago
committed by GitHub
parent
commit
a9114b3efe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

2
src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

@ -189,7 +189,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Quantization
=> (r << ((IndexBits << 1) + IndexAlphaBits))
+ (r << (IndexBits + IndexAlphaBits + 1))
+ (g << (IndexBits + IndexAlphaBits))
+ (r << (IndexBits * 2))
+ (r << (IndexBits << 1))
+ (r << (IndexBits + 1))
+ (g << IndexBits)
+ ((r + g + b) << IndexAlphaBits)

Loading…
Cancel
Save