array to bitmap

Hi users

My program got a pointer which points on an byte array. The stored information in that array are the pixel values of a gray picture (8 bit color depth)

Now I want to create a bitmap file out of this array. Does anybody know some simple functions for this problem.

System used: VC++ 2005 / Win32 application (no mfc)

Greets
VCDD
I don´t know wether there is a simple function for this., or not... i think it should be possible using the sdl, opengl or DirectX...

Or you may read about the bmp-file-format on wikipedia and write the headers yourself...

[EDIT]: google´s first hit is this http://www.cplusplus.com/forum/beginner/4307/ ...
Last edited on
Topic archived. No new replies allowed.