1-bit image conversion

Joined
Feb 20, 2007
Messages
1
Reaction score
0
My question is actually directed to Bob Powell since i read his article that i found on the net. However, any help is always welcomed!

What I need to do is to convert the 1-bpp image to its ASCII format representative.

Basically each pixel is represented by 1/0 only and, of course 8 pixels combined to represent 1 byte; Furthermore, each byte is split into 2 HEX so "b11110000" is "0xF0". Therefore, if there are 320 pixels in one row that means there are 40 bytes which means 80 HEX bytes.

Thanks in advanced,
koko
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top