Page 1 of 1

How to check image is opaque?

Posted: 2016-12-19T05:26:09-07:00
by Shiro
I see in MagickCore have method

Code: Select all

IsImageOpaque
but i dont find simular function in Wand. Of course, it's low level operation, but i want to check current wand.
Or MagicCore is the best and only option to achieve this?

Re: How to check image is opaque?

Posted: 2016-12-19T05:33:13-07:00
by magick
MagickGetImageAlphaChannel() returns MagickFalse if the image alpha channel is not activated. That is, the image is RGB rather than RGBA or CMYK rather than CMYKA.

Re: How to check image is opaque?

Posted: 2016-12-19T06:11:14-07:00
by Shiro
magick wrote:MagickGetImageAlphaChannel() returns MagickFalse if the image alpha channel is not activated. That is, the image is RGB rather than RGBA or CMYK rather than CMYKA.
Thanks!