You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: