Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.1.0 , 5.2.0, 5.3.0, 5.4.0, 5.6, 5.7, 5.8, 5.9.0, 5.10.0
-
None
Description
Currently QPainter always paint fully transparent pixels as transparent black (0x00000000). QPainter with compositon mode CompositionMode_Source should just copy source pixels to destination without any blending. But currently, when source is drawing to transparent destination, pixels with zero alpha are multiplies to zero.
While color channel for transparent pixels is usually not important, there are some valid cases (e.g. scaling/antialiasing when using the resulting image as a OpenGL\Direct3D texture) when saving transparent background with a specific color is critical.
More info:
https://forum.qt.io/topic/88000/qpainter-loosing-color-of-transparent-pixels-critical