Open adirh3 opened 4 years ago
So, Skia just ignores the AlphaFormat and treats the image as semi-transparent, right?
So, Skia just ignores the AlphaFormat and treats the image as semi-transparent, right?
I think Skia does as expected (I might be wrong), the differences occur when changing Avalonia to use/not use GPU. It seems like the Border with white background behind the Image is ignored when not using GPU. (and Window Transparency >= Transparent, even with 100% opacity)
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