for 루프가 도달 할 때 getpixel 메서드를 사용하여 이미지의 픽셀 값을 2 차원 배열에 저장하려고합니다. 아무 것도 알아볼 수없는 예외가 발생합니다.getfixel 메서드의 outofrange 예외
// 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();
}
}
'pic'의 크기는 무엇입니까? – Reti43