Fix BitmapInterpolationMode.HighQuality when downscaling by MrJul · Pull Request #19513 · AvaloniaUI/Avalonia (original) (raw)
What does the pull request do?
This PR fixes BitmapInterpolationMode.HighQuality producing aliased results when downscaling a bitmap with SkiaSharp 3 (the default in master).
Render tests have been added.
What is the current behavior?
What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
A linear filter is now used when downscaling.
Please read mono/SkiaSharp#3159 (comment) which describes the solution used in this PR.

