🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to code a bitmap?

Started by
2 comments, last by Gandalf 24 years, 6 months ago
I have some code that can read a 24bit bitmap into a buffer, and then save it in a 32 bit per fixel file format, then read it again from there. when i get home I'll mail it to you.
NOTE: has no compression watsoever, did it just so I could store alpha channel info, then realised DDraw doesn't support alpha channel... bummer!
Advertisement
Thanks for your code example! It seems really helpful.

But what datatype is Cor? A struct?

Gandalf the Black
I don´t want that anybody can look at my terrific pictures, so can anyone tell me how to save the pictures in a diffrent format, and then open them.

------------------
Gandalf the White

Gandalf the Black
Sorry, forgot I dindn't send you my typedefs.
Cor in Portuguese means colour, it's just a _int32 (dword).

This topic is closed to new replies.

Advertisement