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

Converting a QImage to an opaque format does not always reset the alpha

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.9
    • GUI: Painting
    • None
    • 0ace5ba03 (dev), 4d009678c (6.9), 933128d26 (6.8)

    Description

      When converting a QImage from a format with alpha channel to one of the RGBX formats, the value in the "X" field is normally reset to 0xff or equivalent, corresponding to the fully opaque alpha value. However, in a few combinations of from- and to formats, this does not happen. Attached is a patch to the qimage autotest that adds a test function for this, it can be used to reproduce this issue: convertAlphaToOpaque.diff

      Note particularly the 3 cases of conversion to RGB32 where the issue only appears in in-place conversion(!?)

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            vgt Eirik Aavitsland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes