stereomatchingkiss

Untitled

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