日期:2014-05-18  浏览次数:20815 次

如何将影像的RGB值读到内存中
就是比如一幅200*200的影像先读到一个数组color[200][200]并读到内存中?谢谢各位大侠了!!!

------解决方案--------------------

Bitmap img = XXX;
int[,] color = new int[200,200]
for(int x = 0; x < 200; x++)
{
for(int y = 0; y < 200; y++)
{
color[x,y] = img.GetPixel(x,y);
}
}