Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving a bitmap to file

Status
Not open for further replies.

nanzp

Programmer
Feb 24, 2000
10
IE
Hello,<br>
I am &quot;trying&quot; to do my college project in Visual C++ but am getting stuck, with Bitmaps. I have found code to load a Bitmap from file, but now I need to save a Bitmap back to file. Do I have to write bit, palette info etc.<br>
If anyone knows of where I might find sample code that implements this I would be very grateful.<br>
Thanks in advance,<br>
Ann
 
Hi Nanzp<br>
This is Simple. What U have to do is fill the Bitmap Header Information and the Values of the Pixels are to be stored as a double dimensional array.<br>
Just have a look at the BITMAP Structure, U have to fill the Height, Width, .....<br>
<br>
I guess U can do it.<br>
- Kiran<br>
Trainee<br>
GE Development Center <br>
Bangalore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top