save bmp in indexed mode

Matthew Gibson <[email protected]> Sat, 5 Feb 2011 12:33:58 -0800
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
Hello,

I am using imagemagick in c++ (Magick++) to generate a bmp. I want the
bitmap to be saved to a file in indexed mode, for use as my computer's boot
splash. I want to know how to use ImageMagick to save an indexed bitmap.

This is the first thing I've ever done with image magick - I was glad it was
so easy. I am using it something like this:

Magick::Image my_img(img_path);
...
my_img.write("file.bmp");

This saves an RGB bitmap.

I took a look at the code to figure out color space, etc. but havn't been
able to figure that out.

Thanks for any help,

Matthew