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

Support non-black transparency in QPixmap and QPainter

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.1.1
    • GUI: Painting
    • None

    Description

      Currently QPixmap and QPainter always paint fully transparent pixels as transparent black (0x00000000). Also, QPixmap::fromImage() converts existing non-black transparency into black, if Qt::NoFormatConversion is not specified (and even after specifying it, any transparent drawing in the pixmap still results in zero RGB channels).

      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 Direct3D texture) when saving transparent background with a specific color is critical. So, it would be great if Qt supported this at least with an optional flag.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            kirinyale Andrey Antsut
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes