Browse Source

Fix usage of static method in ResizeProcessor

pull/2601/head
Stefan Nikolei 2 years ago
parent
commit
6cbbb19a86
  1. 2
      src/ImageSharp/Processing/Processors/Transforms/Resize/ResizeProcessor{TPixel}.cs

2
src/ImageSharp/Processing/Processors/Transforms/Resize/ResizeProcessor{TPixel}.cs

@ -197,7 +197,7 @@ internal class ResizeProcessor<TPixel> : TransformProcessor<TPixel>, IResampling
bool compand,
bool premultiplyAlpha)
{
PixelAlphaRepresentation? alphaRepresentation = PixelOperations<TPixel>.GetPixelTypeInfo().AlphaRepresentation;
PixelAlphaRepresentation? alphaRepresentation = PixelOperations<TPixel>.Instance.GetPixelTypeInfo().AlphaRepresentation;
// Premultiply only if alpha representation is unknown or Unassociated:
bool needsPremultiplication = alphaRepresentation == null || alphaRepresentation.Value == PixelAlphaRepresentation.Unassociated;

Loading…
Cancel
Save