This code may help you
try like this...
Bitmap img1 = new Bitmap("c:\\rajesh.jpg");
Bitmap img2 = new Bitmap("c:\\rajesh.jpg");
Color Myc1; Color Myc2;
for (int i = 0; i < img1.Height; i++)
for (int j = 0; j < img2.Width; j++)
{
Myc1 = img1.GetPixel(i, j);
Myc2 = img2.GetPixel(i, j);
if ((Myc1.R != Myc2.R) || (Myc1.G != Myc2.G) || (Myc1.B != Myc2.B))
MessageBox.Show ("Found Mismatch");
}