Turbot,
What is wrong with looping through an array, how do you do that it is done
when there is a method, I think that it will be in a lot of cases even
faster.
See this all written in this message not tested and watch typos
\\\\
dim ImageIsUnequal as boolean
if arbyteA.length <> arbyteB.length then
ImageIsUnequal = true
Else
for i as integer = 0 to arrbyte.length -1
if arAbyte(i) <> arBbyte(i) then
ImageIsUnequal = true
exit for
Next
end if
///
I don't think that can much faster mostly it will be in the first comparing
already an unequal and when not than probably in the beginning of the for
loop.
I hope this helps?
Cor
"Turbot" <ia*@tutorpro.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.
Thanks in advance.
IAN