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

CreateScaledBitmap fails on some android devices and emulators #17923

Open
vpenades opened this issue Jan 8, 2025 · 1 comment
Open

CreateScaledBitmap fails on some android devices and emulators #17923

vpenades opened this issue Jan 8, 2025 · 1 comment
Labels

Comments

@vpenades
Copy link

vpenades commented Jan 8, 2025

Describe the bug

When creating a bitmap using CreateScaledBitmap, the bitmap displays correctly on windows, but on some (not all) android devices and emulators it produces an empty bitmap that does not display. No exception is thrown either.

Upon inspecting the code, CreateScaledBitmap ends up calling methods that seem to be declared as obsolete, but CreateScaledBitmap itself has not been declared obsolete, which is somewhat misleading.

To Reproduce

load a bitmap, scale it with CreateScaledBitmap and set it as source of Image and run on Android device and emulator.... and it may happen.

Expected behavior

the bitmap should be displayed correctly.

Avalonia version

11.2.3

OS

Android

Additional context

If CreateScaledBitmap is not going to be supported anymore I would be tempted to suggest to mark it as obsolete too.

But the method is so critically important that not supporting some way of scaling bitmaps is unthinkable to me... so I would ask to provide a temporary solution, even if it involves a slow by-software scaling... at least until the backend APIs is stable again.

@vpenades vpenades added the bug label Jan 8, 2025
@timunie
Copy link
Contributor

timunie commented Jan 8, 2025

First of all if it only seem to happen for specific configuration. So we need to know which config exactly. Also would be good to see a minimum sample to see how you use it.

However, community support in OSS is done when it's done. If you need priority support, we offer that as well but it's not free.

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

No branches or pull requests

2 participants