Page 1 of 1

8 Bit BMP Image

Posted: 2019-01-10T08:51:15-07:00
by Coder

Is some one aware about Magick++ API for creating 8 bitmap (1 byte per pixel).
I am using Imagemagick version 7

Thanks in advance

Re: 8 Bit BMP Image

Posted: 2019-01-10T15:55:15-07:00
by rodlie

Code: Select all

Magick::Image image(Magick::Geometry(512, 512), Magick::ColorRGB(1, 1, 1));

Re: 8 Bit BMP Image

Posted: 2019-01-10T23:35:19-07:00
by Coder
Hi Rodlie,
Thanks for your reply. I just used the api as you suggested.
Is the per pixel will take 4 bits here? Is the one bit for alpha ?