Replies: 1 comment
-
After some digging I found this: #1142 I'm closing this one as a duplicate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to combine multiple RGBA tiles into one image however due to the alpha channel RGB data seems to be discarded where the alpha is 0 (fully transparent).
Both the target and tile bitmaps have alpha types set to unpremultiplied. The individual tile bitmaps contain the RGB and A data.
Could this be an optimization done on Skia's side under the hood, or maybe a SkiaSharp limitation?
If so, can this be turned off/bypassed without an unsafe context and accessing/modifying the pixel data directly?
Snippet:
Also tried by setting each pixel of the tiles via
SetPixel()
/DrawPoint()
but where the image is fully transparent RGB data still gets discarded and replaced with black.Externally opened issue with image example: (as I'm unsure whether it's an issue/bug with Skia(Sharp) or this is the expected behavior)
FabianFG/CUE4Parse#147
Full code: https://github.com/FabianFG/CUE4Parse/blob/500670ad0afa308441aca03587e18b437ca6c385/CUE4Parse-Conversion/Textures/TextureDecoder.cs#L99
Beta Was this translation helpful? Give feedback.
All reactions