PDA

View Full Version : Read pixels from a bitmap image to a array



03-07-2004, 08:05 AM
could you please teach me how to use visual c++ read the pixels from a bitmap image into program array(or some parameter)??

mikael_aronsson
03-07-2004, 11:09 PM
Hi !

What do you mean with bitmap ? if you mean a windows bitmap image (bmp/dib) then you can find tons of this on google, this is not related to opengl so don't expect to find anything about it here.

If you want to read data from the opengl framebuffer you can use glReadPixels.

Mikael