Windows Forms:在C#中将图像转换成灰度图
本文翻译自Windows Forms: Convert an image into grayscale in C#
这篇文章向你展示在C# Windows...#中将图像转换成灰度图如下:
// convert an image into grayscale in c#
public Bitmap MakeGrayscale(Bitmap original..., .3f, .3f, 0, 0},
new float[] {.59f, .59f, .59f, 0, 0},
new float...,然后创建一个颜色矩阵,并在C#中将彩色图转换成灰度图。..., .3f, .3f, 0, 0},
new float[] {.59f, .59f, .59f, 0, 0},
new float