Repository navigation
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? |
Answered by
JimBobSquarePants
Jul 18, 2020
Replies: 2 comments 8 replies
|
It’s a struct now. Use |
8 replies
Answer selected by
feliwir
|
Okay, fixed this myself already. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It’s a struct now. Use
KnownResamplershttps://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.Processing.KnownResamplers.html