如何从图像中提取灰度Color currentColor; int r; Bitmap currentBitmap = new Bitmap(picBox.Image); Graphics g = Graphics.FromImage(currentBitmap); for (int w = 0; w < currentBitmap.Width; w++) { for (int h = 0; h < currentBitmap.Height; h++) { current