How about

If not BitmapA.GetPixel(x, y) = BitmapB.GetPixel(x, y) then

instead? equals is in the list of operators for type color in the help files..

Bill