
Decoding Images - Is that better?
Hi, Ive got a problem. I need to make a program which can tell which pixles
in an image have changed. So for this to work I need the image to be in an
easy to use format:
e.g. Below is what it would look like in paint. (# = 1 Black Pixle)
(_, |, - is equal to border, not visible in paint)
_________________
| |
| ## ## |
| ## ## |
| ## ## |
| ########### |
| ########### |
| ## ## |
| ## ## |
| ## ## |
| |
----------------------------
And my program would decode that image into
00000000000000000
00011000000011000
00011000000011000
00011000000011000
00011111111111000
00011111111111000
00011000000011000
00011000000011000
00011000000011000
00000000000000000
where 0=white, 1=black.
So, I thought I could try just opening the image in paint, but all that was
there was giberish, in no particular order:
I have drawn a basic drawing of what the image looked like in Paint. (# = 1
Black Pixle)
1) This one has no black pixles on it, it is blank. In notepad it looks like
this:
BMN > ( t t ??? e e e
Basic Drawing: ____
| |
| |
| |
| |
--------
2) This one has 1 black pixle in the top-left corner, the rest is blank. In
notepad it looks like this:
BMN > ( t t ??? e e e e
Basic Drawing: ____
|# |
| |
| |
| |
--------
3) This one has 1 black pixle in the top-second pixle, the rest is blank. In
notepad it looks like this:
BMN > ( t t ??? e e e p
Basic Drawing: ____
| # |
| |
| |
| |
--------
4) This one has 2 black pixles in the top-left pixles, the rest is blank. In
notepad it looks like this:
BMN > ( t t ??? e e e 0
Basic Drawing: ____
|## |
| |
| |
| |
--------
If these images come out rubbish on your email client, tell me and I will
send you the origional Bitmaps. Can anyone help?
Thanks in Advance,
Paul Lakin