qt5base-lts/tests/auto/gui/image/qimage
Allan Sandfeld Jensen d8dc664b94 Ensure valid data after QImage::invertPixels
QImage::invertPixels may produce invalid data after inversions of
images with premultiplied alpha, because the inverted colors will be
larger than the alpha.

This patch converts any image with a premultiplied alpha channel to
ARGB32 before inverting the pixels, and then back to the original
format after the inversion.

Support is added for correct inversion of RGBA8888 and RGB30 formats.

Task-number: QTBUG-39901
Change-Id: Ief24c55f495e67ef2ad6429b5b418d02963a64dd
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
2014-07-31 20:16:09 +02:00
..
images Moving tiff image format support and libtiff out of qtbase 2012-01-31 14:31:04 +01:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qimage.pro Inplace versions of QImage rgbSwapped() and mirrored() for rvalue refs 2014-01-08 18:08:47 +01:00
tst_qimage.cpp Ensure valid data after QImage::invertPixels 2014-07-31 20:16:09 +02:00