Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderOptions.BitmapInterpolationMode results change when SkiaSharp3 is referenced in the project #17735

Open
YoshihiroIto opened this issue Dec 9, 2024 · 2 comments

Comments

@YoshihiroIto
Copy link

YoshihiroIto commented Dec 9, 2024

Describe the bug

Result when referring to SkiaSharp3
image

Result when SkiaSharp3 is not referenced
image

The image shown.
image

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
Copy link
Member

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
Copy link
Author

@maxkatz6

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants