1bit raw images
hi all,
i am trying to convert a 1bit raw image(256*256 sized one bit per pixel) to a 256*256*24bit image. how can i do this... i suppose that i have to check every bit of a byte...anybody can help? maybe some example source? thanx
best regards
trigger
http://trigger.xenyon.net/
IF it is anything like a 1bpp windows BMP you have to check every bit. Im going to assume that a '0' bit is equal to RGB(0,0,0) and a '1' bit is equal to RGB(255,255,255).
I didnt test that code soi cant guarentee it works. It is also probally not the most optimized way to do it. You could replace either of the colors with whatever you like, green or orange or yellow or whatever. Good luck
Edited by - terminate on August 4, 2001 1:43:40 PM
Edited by - terminate on August 4, 2001 1:45:45 PM
|
I didnt test that code soi cant guarentee it works. It is also probally not the most optimized way to do it. You could replace either of the colors with whatever you like, green or orange or yellow or whatever. Good luck
Edited by - terminate on August 4, 2001 1:43:40 PM
Edited by - terminate on August 4, 2001 1:45:45 PM
Those who dance are considered insane by those who cannot hear the music.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement