// Compare two bitmap objects
private bool PicsIdentical(Bitmap bmp1, Bitmap bmp2)
{
bool retVal = true;
if (bmp1.Size != bmp2.Size)
retVal = false;
else
{
for (int x = 0; x < bmp1.Width; x++)
{
for (int y = 0; y < bmp1.Height; y++)
{
if (bmp1.GetPixel(x, y) != bmp2.GetPixel(x, y))
{
retVal = false;
break;
}
}
}
}
return retVal;
}
Saturday, May 30, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment