🎉 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!

Bitmaps..

Started by
0 comments, last by GameDev.net 24 years, 6 months ago
I am making an editor for my game that will convert bmp's to my own custom image files. the Custom image file are gonnq be in acii format. What i want to know is how would i read the color of each byte in the bitmap then convert it to a number?? Example-
i wanna read the byte FF (white..or black i cant remember) then make it number 120 in acii.
Advertisement
The question about loading bitmap has been answered so many times. Actually you do the same for what you are doing, but you just save the values from the bitmap into another file. Look in the archives or something. I'm not going to answer the question how to load again.

Oh....and you don't get a value like FF out of it, but you get the RGB value out of it (or an index of a palette for 1, 4 and 8 bit).

use this value to calculate a nice ascii value or whatever you want. Suit yourself!!!!

------------------
Dance with me......

http://members.xoom.com/CJdeVos/index.htm

This topic is closed to new replies.

Advertisement