Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2
-
None
-
-
ade24763c74ce506276218ec1ce0e307301717fe (qt/qtbase/dev) 978131ba7106df99e010f5ea5559204424f29ab7 (qt/qtbase/6.0) 625a0d57aff2c0f42c832eabcc123778e0374922 (qt/tqtc-qtbase/tqtc/lts-5.15)
Description
If you try to scale a QImage::Format_Grayscale16 image the generated image is wrong. I attach a 16 bit image to test.
QImage roi; roi.load("roiImg.png"); auto scaledRoi = roi.scaled(roi.width()/2, roi.height()/2, Qt::KeepAspectRatio); scaledRoi.save("roiImgScaled.png");
This bug also affects QPainter::drawImage().
Attachments
For Gerrit Dashboard: QTBUG-90246 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
330060,2 | Fix convertToRGBA64PM for Grayscale16 | dev | qt/qtbase | Status: MERGED | +2 | 0 |
330264,2 | Fix convertToRGBA64PM for Grayscale16 | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
330348,3 | Fix convertToRGBA64PM for Grayscale16 | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |