标签:
Bgr color = img[y, x];
img[y,x] = color;
The Image pixels values are stored in the Data property, a 3D array. Use this property if you need to iterate through the pixel values of the image.
For example, in an grayscale image (Image<Gray, Byte>), instead of doing this:
Gray byCurrent = imageGray[x, y];
You would do this:
Byte byCurrent = imageGray.Data[x, y, 0];
标签:
原文地址:http://www.cnblogs.com/visionfeng/p/5479663.html