Here are the examples of the csharp api class System.Drawing.Bitmap.ToGrayscale() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: Tibialyzer
Source File: HelperFunctions.cs
Source File: HelperFunctions.cs
public static Bitmap ToGrayscale(this Image original) { if (original is Bitmap) { return (original as Bitmap).ToGrayscale(); } Bitmap bitmap = new Bitmap(original); Bitmap grayscale = bitmap.ToGrayscale(); bitmap.Dispose(); return grayscale; }