stereomatchingkiss

Untitled

Jun 23rd, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iomanip>
  2. #include <iostream>
  3.  
  4. #include <QtGui/QImage>
  5.  
  6. int main(int argc, char *argv[])
  7. {        
  8.     QImage src("../GIL_with_Qt/images_00/lena/lena.jpg");
  9.     src = src.convertToFormat(QImage::Format_Indexed8);
  10.     QImage dst(src.size(), src.format());
  11.    
  12.     dst.save("E:/lena/lena_Format_Indexed8.jpg"); //this line will cause the program crash
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment