jessiemmichael
16th June 2011, 10:45
I used the following code to rotate and flip. I find huge data loss in .tiff and .jpeg images of larger size.
Is there any approach in QT or any other external QT/ C++ library to over come the issue.
////////rotate/////////
QImage myImage(currentFile);
QTransform myTransform;
myTransform.rotate(90);
myImage = myImage.transformed(myTransform);
bool ret = myImage.save(currentFile);
////////////////flip////////////
QImage myImage(currentFile);
myImage = myImage.mirrored();
bool ret = myImage.save(currentFile);
thank you
Is there any approach in QT or any other external QT/ C++ library to over come the issue.
////////rotate/////////
QImage myImage(currentFile);
QTransform myTransform;
myTransform.rotate(90);
myImage = myImage.transformed(myTransform);
bool ret = myImage.save(currentFile);
////////////////flip////////////
QImage myImage(currentFile);
myImage = myImage.mirrored();
bool ret = myImage.save(currentFile);
thank you