This project has moved. For the latest updates, please go here.

Convert bmp/jpg file into grayscale 8bit

Apr 17, 2015 at 10:34 AM
I need to convert 24bit bmp/image picture into 8 bit grayscle image.
Can any body help me out.

Regards

Munir
Coordinator
Apr 22, 2015 at 11:42 AM
You can do this by setting the color type to GrayScale:
using (MagickImage logo = new MagickImage("logo:"))
{
  logo.ColorType = ColorType.Grayscale;
  logo.Write(@"C:\logo.png");
}
Apr 24, 2015 at 6:26 AM
Thanks. Its works.