Is there a way to convert an image to grayscale 16 bits per pixel format, rather than setting each of the r,g and b components to luminance. I currently have a bmp from file.
Bitmap c = new Bitmap("filename");
I want a Bitmap d, that is grayscale version of c. I do see a constructor that includes System.Drawing.Imaging.PixelFormat, but I don't understand how to use that. I'm new to Image Processing and the relevant C# libraries, but have a moderate experience with C# itself.
Any help, reference to an online source, hint or suggestion will be appreciated.
EDIT: d is the grayscale version of c.
Best Answer
Here is how to do this
EDIT: To convert to grayscale
Faster Version from switchonthecode follow link for full analysis: