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;

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