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

QImage scale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.6.2
    • GUI: Painting
    • None
    • Windows vista

      QImage.scale(with, height) automaticaly convert Format_ARGB32 images to Format_ARGB32_Premultiplied

      when using scale on image with alpha value, this has a strange impact :

      i have an image with transparent border :
      image1 : 0 = rgba(255,255,255,0), 1 = rgba(255,255,255,255)
      01110
      01110

      when i scale the image1 with a shorter width i get border with gray
      I assumed that the scale is performed on premultiplied values so 0 and 1 are merged.

      The problem may be that with premultiplied values all 0 is considered as black, then black + white becomes gray, but this is not the correct behavior!

      transparent + white should produce (255,255,255,126)

      I hope i have been enough clear.

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

            rodal Samuel Rødal
            tbuffry Thomas Buffry
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes