Hi all,
I have an image and convert 32 bit to 8 bit. I convert this image from photoshop and photoshop is success convert but i convert to image so change color. For example;

Code is;
{
img
= img.
convertToFormat(QImage::Format_Indexed8,Qt
::ThresholdDither|Qt
::AutoColor);
img.save("D:\\image\\out\\"+ imageName, "png", 100);
}
void image::convertimage(QString pathAddress,QString imageName)
{
QImage img = QImage(pathAddress + imageName);
img = img.convertToFormat(QImage::Format_Indexed8,Qt::ThresholdDither|Qt::AutoColor);
img.save("D:\\image\\out\\"+ imageName, "png", 100);
}
To copy to clipboard, switch view to plain text mode
Bookmarks