Advertisement

Bitmaps..

Started by December 22, 1999 04:50 AM
0 comments, last by GameDev.net 25 years, 2 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.
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