how does Magick::Image.transparent work?

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Posts: 1
Joined: 2014-08-26T14:00:21-07:00
Authentication code: 6789

how does Magick::Image.transparent work?

Post by henryg »

Hi there:
I have a problem to ask for advice. I create a bitmap file and pass the pixel data and bitmap info header to a Magick::blob and create a Magick::Image to read it. Now I want to set the color COLORREF(255, 255, 255) as the transparent color, so I call Magick::Image.transparent(transparentColor), then I call Image.write("abc.png"), however, it seems the generated png file doesn't get transparent set. Any idea what happened here? Are there any documents for the Magick++ API programming?

Thanks a lot

Post Reply