Page 1 of 1

how does Magick::Image.transparent work?

Posted: 2014-08-26T14:07:20-07:00
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
Henry