Avalonia
Avalonia copied to clipboard
Bitmap with AlphaFormat.Opaque
When using bitmaps with AlphaFormat.Opaque with EglInitializationAllowEglInitialization = false, the result looks like this -
You can see that the transparent pixels show what's behind the Window and not the white background that should be behind it.
This isn't happening when using EglInitializationAllowEglInitialization = true -
To repro this - Create a bitmap from PNG with transparent background using AlphaFormat.Opaque, bind it to an Image in a window that has TransparencyLevelHint >= Transparent and use EglInitializationAllowEglInitialization = false. (Everything tested in 0.10 preview 4)
Thanks