Lucas,
Sorry I break in an answer of you today again, however when I don't I think
it is not right as well.
Is compares if the addres of an object is the same as another object (and
than is the content as well the same).
Try this by instance
\\\
Public Class main
Public Shared Sub main()
Dim a As Image = Image.FromFile("c:\my.jpg")
Dim b As Image = a
Dim c As Image = Image.FromFile("c:\my.jpg")
If a Is b Then MessageBox.Show("we are equal")
If Not c Is a Then MessageBox.Show("We are not equal while we are")
End Sub
End Class
///
Sorry I felt I had to show you this,
Cor
"Lucas Tam" <(E-Mail Removed)>
> "Turbot" <(E-Mail Removed)> wrote in news:1101135297.012615.66100
> @z14g2000cwz.googlegroups.com:
>
>> Hello,
>>
>> Anyone know how to compare two byte arrays without going through each
>> item in the array. I actually want to compare two bitmap objects to see
>> if they both contain the same picture bit have been unable to do this.
>> I figured if I converted them to byte arrays there would be a simple
>> way of comparing them but I have had no luck.
>
>
> For your image objects, can you just do:
>
> If ImageA is ImageB then
> Msgbox("Image Objects Identical")
> End If
>
> Maybe the IS clause may work for your byte arrays too?
>
>
> --
> Lucas Tam ((E-Mail Removed))
> Please delete "REMOVE" from the e-mail address when replying.
> http://members.ebay.com/aboutme/coolspot18/