Decoding Images - Is that better? 
Author Message
 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



Wed, 19 Sep 2001 03:00:00 GMT  
 Decoding Images - Is that better?
Bitmaps have a standard file format.  They begin with data describing
the image followed by the image data.  What you would need do is to
decode the bitmap file so that you can load in the image data to do
your tests.

Here is some information that may help you understand the file format:
http://www.mvps.org/vbnet/code/bitmap/bitmapinfo.htm

LFS

Quote:

> 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:



Tue, 02 Oct 2001 03:00:00 GMT  
 Decoding Images - Is that better?
Thanks, I'll have a look.
Paul Lakin

Quote:
> Bitmaps have a standard file format.  They begin with data describing
> the image followed by the image data.  What you would need do is to
> decode the bitmap file so that you can load in the image data to do
> your tests.

> Here is some information that may help you understand the file format:
> http://www.mvps.org/vbnet/code/bitmap/bitmapinfo.htm

> LFS


> > 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:



Wed, 03 Oct 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Good QBASIC sites, and Graphic Decoding

2. I can't decode MIME Format Message, Is there Automatic Decode Dll,or OCX

3. I am looking for a good place to buy dev software online

4. I am a VB newbie, looking for good manual

5. Timer Question - I have explained better what I am looking for

6. I am looking for the best book for learning VB.

7. Am I better off without MTS (more...)?

8. I am Looking for certain ico. type images

9. I am trying to update a record, i am not using data control

10. I am learning VB.NET and am wondering....

11. I am trying to update a record, i am not using data control

12. Best image format for WinHelp files?

 

 
Powered by phpBB® Forum Software