Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

Bitmap with AlphaFormat.Opaque

Open adirh3 opened this issue 3 years ago • 2 comments

When using bitmaps with AlphaFormat.Opaque with EglInitializationAllowEglInitialization = false, the result looks like this - image 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 - image

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

adirh3 avatar Sep 03 '20 16:09 adirh3