Array to bitmap image

how to convert a 40x40 unsigned integer array to a 8 bit per pixel bitmap image [40x40]
in c++ i require the whole code please...
thanks
Last edited on
i need to create a new bitmap by writing the image buffer array that i have and save it to a specific location eg: "c:\user\desktop\image1.bmp" and i need the whole code please....
I think no one will give full code example, for _your_ problem.
Because it is a place where you can get advice, not ready solution.
You can try ask solution on different resources (irc, etc.).
Advice to use external library like easyBMP.
Topic archived. No new replies allowed.