alphaboy
22nd November 2007, 10:33
:confused:hello,
I use a object of QPixmap to save a picture which is getted from opencv.In my computer the program is running well.
But when I setup the program in another computer,the picture cann't be written in the file "1.jpg",but the Object of OPixmap can be shown in the window. What's the wrong I did?
here is the part code:
m_qImage.save(".\\1.jpg","JPG",-1);
Here, m_qImage is a object of QPixmap.
I don't know how to solve the program,It's a so easy code,I can't find some errors in this code.Can you help me?
I use a object of QPixmap to save a picture which is getted from opencv.In my computer the program is running well.
But when I setup the program in another computer,the picture cann't be written in the file "1.jpg",but the Object of OPixmap can be shown in the window. What's the wrong I did?
here is the part code:
m_qImage.save(".\\1.jpg","JPG",-1);
Here, m_qImage is a object of QPixmap.
I don't know how to solve the program,It's a so easy code,I can't find some errors in this code.Can you help me?