将彩色图片转换为灰度图片程序(C#源代码编写)if(this.openFileDialog1.ShowDialog()==DialogResult.OK) { bmp=new Bitmap(this.openFileDialog1.FileName); for (int i=0;i