[Qt-interest] Saving image rendered in openGL widget in different resolutions
anjani gupta
anjanigupta_dce at yahoo.com
Fri Feb 13 15:47:00 CET 2009
Hi,
I want to save openGL image rendered on main window in different file formats with different resolutions.
To save image in different format, I am using the following code:
<code>
QGLWidget* main_window;
//Assign value to main_window
...
main_window->raise();
main_window->repaint();
QPixmap image = QPixmap::grabWindow(main_window->winId());
image.save("filename","TIF"));
</code>
I want to save image in different resolutions.Is there some efficient way to save image in different resolutions?
Thanks in advance!
Regards,
Anjani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090213/1a0ef5bf/attachment.html
More information about the Qt-interest-old
mailing list