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

QPainter::CompositionMode_Source blend alpha pixels without copying

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.1.0 , 5.2.0, 5.3.0, 5.4.0, 5.6, 5.7, 5.8, 5.9.0, 5.10.0
    • Fix Version/s: None
    • Labels:
      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

       

       

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes