i'm trying to store pixel values of an image into 2-d array using getpixel method when the for loop reach [0,240] i get outofrange exception any one can help me ?
// Loop through the images pixels to store in array.
for (x = 0; x < image1.Height; x++)
{
for (y = 0; y < image1.Width; y++)
{
Color p = ((Bitmap)image1).GetPixel(x, y);
pic[x,y] = p.ToString();
}
}