View Full Version : Opengl save image
How can i save the drawings on a GLCanvas as a image file.
10-28-2004, 11:00 PM
You can't with OpenGL.
You can get image with glReadPixels into a buffer, then you will need to use other code or an existing library to save the code in some format.
There are lots of libraries available for reading/writing images, have a look at www.sourceforge.net (http://www.sourceforge.net) and www.freshmeat.net (http://www.freshmeat.net)
If you want to do it yourself, most image file formats can be found at www.wotsit.org (http://www.wotsit.org)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.