RenderOptions.BitmapInterpolationMode results change when SkiaSharp3 is referenced in the project
YoshihiroIto opened this issue · 2 comments
YoshihiroIto commented
Describe the bug
Result when referring to SkiaSharp3
Result when SkiaSharp3 is not referenced
To Reproduce
Reproduction Project
https://github.com/YoshihiroIto/BitmapInterpolationModeProblem
<Window
x:Class="AvaloniaWithSkiaSharp3.MainWindow"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Avalonia"
Width="300"
Height="300"
Background="DimGray"
RenderOptions.BitmapInterpolationMode="HighQuality"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Image
Width="200"
Height="200"
Margin="20"
Source="image.png"
Stretch="UniformToFill" />
</Window>
Expected behavior
I have
expect a clean interpolation result even when referring to SkiaSharp3.
Avalonia version
11.2.1
OS
Windows
Additional context
No response
maxkatz6 commented
BitmapInterpolationMode is ignored on bitmaps with SkiaSharp 3 used.
See #15503
This issue won't be solved, until we completely migrate from 2.88 to 3.0, which is a big breaking change for Avalonia ecosystem. Likely won't happen until Avalonia 12.0 released.
YoshihiroIto commented
I understand.
I will look for other means until Avalonia 12.0 is released.
I will also check to see if the problem has been resolved when Avalonia 12.0 is released.
Thank you very much.