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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|
|