please help me to process it more faster..
here's my code..
int height = pictureBox1.Image.Height;
int width = pictureBox1.Image.Width;
for (int i = 0; i < height; i++)
{
for (int j = 0; j < width; j++)
{
if ((bmp.GetPixel(j, i) == bmp1.GetPixel(22, 16))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(50, 17))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(89, 16))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(116, 18))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(157, 21))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(185, 17))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(216, 17))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(258, 16))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(289, 19))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(23, 54))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(51, 52))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(85, 51))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(126, 48))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(159, 51))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(191, 52))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(223, 50))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(259, 50))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(288, 49))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(26, 82))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(56, 82))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(89, 85))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(125, 85))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(154, 82))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(186, 85))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(214, 83))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(248, 83))
|| (bmp.GetPixel(j, i) == bmp1.GetPixel(285, 81)))
{
MessageBox.Show("color found");
break;
}
}
if (IsColorFound == true)
{
break;
}
}
if (IsColorFound == false)
{
listBox1.Items.Add("None");
}
}
else
{
MessageBox.Show("Image is not loaded");
}