Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a bitmap with some other information and I want to save all in a file. How can I do that?
Thanks
Posted
Updated 26-May-10 0:22am
v2

1 solution

If you don't want to write the bitmap using your own format, get a look to the CImage class, declared in atlimage.h (see http://msdn.microsoft.com/en-us/library/bwea7by5(VS.80).aspx[^]).

Otherwise you can save the image size (rows and columns) followed by the RGB values of each pixel.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900