Click here to Skip to main content
15,908,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all,

im new in VC++. I want to know how to store the Raw image data to BMP File format. and how to display in the Monitor? Is any Sample code or attachment plz fwd me.


gopal
Posted

1 solution

The easiest way is probably to build a DIBSECTION, which gives you a pointer to store the data, and push it into there, so the system will generate the BITMAP header for you, etc. Then you use a CDC and GDI to show the image on the monitor. There's tons of info on the web. Windows Graphics Programming by Feng Yuan is a great resource, but for this, just the Petzold C++ book is all you would need.
 
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