Save tiff as RGB and not ARGB
Hi,
i must convert pictures into tiff with no compression and 24 Bit RGB-palette, but Qt 4.5 saves it as ARGB tiff file! :mad:
destImage.depth returned 24 and destImage.hasAlphaChannel says false !!
Is there any parameter writing tiff files as 24 Bit files ???
Sample code:
Code:
sourceImage.load("test.jpg");
destImage
= sourceImage.
convertToFormat(QImage::Format_RGB888);
writeImage.setFormat("TIFF");
writeImage.setCompression(0);
writeImage.setFileName("test.tif");
writeImage.write(destImage);