PDA

View Full Version : Createa a file (BMP, JPG) from a OpenGL view



05-10-2001, 11:46 PM
How I can create a file like a bitmap or jpg using the information of OpenglView

Gavin
05-11-2001, 01:09 AM
could try using quicktime libraries

chennes
05-11-2001, 04:01 AM
or OpenIL, or whatever it's called now...
www.openil.org (http://www.openil.org)

05-11-2001, 05:00 AM
I suggest you to read a documentation about the BMP file format. And then read the chapter about the framebuffer in the red book.

Normally you can copy from the COLOR framebuffer the image and then write it in the correct file format.

rts
05-11-2001, 08:05 AM
http://www.opengl.org/discussion_boards/ubb/Forum4/HTML/000182.html

pleopard
05-11-2001, 02:33 PM
Hey Jesus, nice to talk w/ya again today http://www.opengl.org/discussion_boards/ubb/smile.gif

I use Intel's ILJ Jpeg library and I learned to adapt it and use it from the following link :
http://www.codeguru.com/opengl/snaptojpeg.shtml

Good luck!

BTW: Tell God I love him http://www.opengl.org/discussion_boards/ubb/smile.gif