Hi,
How can i save the drawings on a GLCanvas as a image file.
mikael_aronsson
10-28-2004, 11:00 PM
Hi !
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)
Mikael
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.