ImageSharp LanczosResampler not working anymore #1282
-
Hello everyone, after updating to rc0003 (from beta0006) the overload of the Resize function that takes a custom IResampler crashes with an LanczosResampler. The line of code is as follows: ...
tgaImage.Mutate(x => x.Resize(384, 384, new LanczosResampler()));
... Exception:
Inner exception:
Callstack:
The exact code used to work before, so i guess that LanczosResampler got some changes maybe? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
It’s a struct now. Use |
Beta Was this translation helpful? Give feedback.
-
Okay, fixed this myself already. |
Beta Was this translation helpful? Give feedback.
It’s a struct now. Use
KnownResamplers
https://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.Processing.KnownResamplers.html