Does BilevelType or monochrome work?
Posted: 2007-01-16T14:08:00-07:00
Hi,
I tried to convert an image to grayscale using C++API. For instance, the original image aaa.bmp is grayscale.
image.segment(size,1.5);
image.type(Magick::BilevelType);
I expect this will give me a binary image, but instead, it generated a pure black image. I also tried to use image.monochrome(); but it didn't work either.
Please advise.
Thanks.
I tried to convert an image to grayscale using C++API. For instance, the original image aaa.bmp is grayscale.
image.segment(size,1.5);
image.type(Magick::BilevelType);
I expect this will give me a binary image, but instead, it generated a pure black image. I also tried to use image.monochrome(); but it didn't work either.
Please advise.
Thanks.