Magick++ bitdepth for monochrome BMP
Posted: 2014-01-24T10:07:45-07:00
Hello folks,
I cannot manage to transform a monochrome tiff loaded from disk in an Image object into a bitmap with 1 bit per pixel.
I'm using Magick++, not the command line tool.
I tried with also with
when getting the depth it was correct, but after writing the image on disk the image had 24 bits per pixel.
Is there any restriction that I'm missing? Because from command line it worked...
Thank you
Daiana
I cannot manage to transform a monochrome tiff loaded from disk in an Image object into a bitmap with 1 bit per pixel.
I'm using Magick++, not the command line tool.
I tried with
Code: Select all
image.depth(1)
Code: Select all
image.type(BilevelType)
when getting the depth it was correct, but after writing the image on disk
Code: Select all
image.write("bla.bmp")
Is there any restriction that I'm missing? Because from command line it worked...
Thank you
Daiana