8 Bit BMP Image

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Coder
Posts: 15
Joined: 2019-01-05T11:15:30-07:00
Authentication code: 1152

8 Bit BMP Image

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

Hi,

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

Thanks in advance

rodlie
Posts: 22
Joined: 2018-12-13T01:41:06-07:00
Authentication code: 1152

Re: 8 Bit BMP Image

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

Code: Select all

Magick::Image image(Magick::Geometry(512, 512), Magick::ColorRGB(1, 1, 1));
image.depth(8);
image.magick("BMP");

Coder
Posts: 15
Joined: 2019-01-05T11:15:30-07:00
Authentication code: 1152

Re: 8 Bit BMP Image

Post by Coder » 2019-01-10T23:35:19-07:00

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 ?

Post Reply