Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66590

QPainter::CompositionMode_Source blend alpha pixels without copying

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important 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

      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

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sletta Gunnar Sletta
            bugfounder Qt piss me Off
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes