Browse Source
Update src/ImageSharp/Processing/Processors/Transforms/Resize/ResizeProcessor{TPixel}.cs
pull/1773/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/Transforms/Resize/ResizeProcessor{TPixel}.cs
|
|
|
@ -188,7 +188,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms |
|
|
|
bool compand, |
|
|
|
bool premultiplyAlpha) |
|
|
|
{ |
|
|
|
PixelAlphaRepresentation? alphaRepresentation = PixelOperations<TPixel>.Instance.GetPixelTypeInfo()?.PixelAlphaRepresentation; |
|
|
|
PixelAlphaRepresentation? alphaRepresentation = PixelOperations<TPixel>.Instance.GetPixelTypeInfo()?.AlphaRepresentation; |
|
|
|
|
|
|
|
// Premultiply only if alpha representation is unknown or Unassociated:
|
|
|
|
bool needsPremultiplication = alphaRepresentation == null || alphaRepresentation.Value == PixelAlphaRepresentation.Unassociated; |
|
|
|
|