Create a 8 bit image from scratch
Posted: 2009-09-13T09:02:00-07:00
Hi all,
can anyone tell me how can i create a 8 bit image from scratch, or to convert an existing 24 bit image to 8 bit and 1 bit?
I use follow code, but the image created is always 24 bit:
Any help will be appreciated.
Best regards.
can anyone tell me how can i create a 8 bit image from scratch, or to convert an existing 24 bit image to 8 bit and 1 bit?
I use follow code, but the image created is always 24 bit:
Code: Select all
::Magick::Image *img = new Magick::Image("2550x3300","white");
img->depth(8);
img->write("c:/image_magick.bmp");
Best regards.