摘要:
Image img = Image.FromFile(openFileDialog1.FileName);
Bitmap image = new Bitmap(img);
for (int h = 0; h {
for (int w = 0; w {
Color pixelColor = image.GetPixel(w, h);
//用均值法算出灰度值
int red = (pixelColor.R + pixelColor.G + pixelColor.B) / 3;
int green = (pixelColor.R + pixelCol 阅读全文
posted @ 2008-05-14 22:36 新人~ 阅读(0) 评论(0) 推荐(0) 编辑