Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QtGui/QImage>
- int main(int argc, char *argv[])
- {
- QImage src("../GIL_with_Qt/images_00/lena/lena.jpg");
- src = src.convertToFormat(QImage::Format_Indexed8);
- QImage dst(src.size(), src.format());
- dst.save("E:/lena/lena_Format_Indexed8.jpg"); //this line will cause the program crash
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment