Looking for GetImageAlphaChannel
Looking for GetImageAlphaChannel
I'm looking for a MagickCore function that returns the value in image->matte so I can stop referencing that field directly. Does such a function make sense?
Re: Looking for GetImageAlphaChannel
Does IsOpaqueImage() work for you? If not, we can add a method that just returns the image->matte member.
Re: Looking for GetImageAlphaChannel
RMagick has a method that calls IsOpaqueImage. I'm thinking about a function that simply returns the MagickTrue or MagickFalse depending on the value in image->matte. With SetImageAlphaChannel and this new function I can safely deprecate the RMagick methods that set and get image->matte directly.
Re: Looking for GetImageAlphaChannel
Ok, GetImageAlphaChannel() will be available in ImageMagick 6.3.9-2 Beta by tomorrow.
Re: Looking for GetImageAlphaChannel
Thanks! I'll add a method to RMagick.
RMagick of course refers to other Image fields directly, but I noticed that you've deprecated the old -matte option in favor of the -alpha option, so I'm trying to do the same. I've added a setter method that calls SetImageAlphaChannel. This will be the getter.
RMagick of course refers to other Image fields directly, but I noticed that you've deprecated the old -matte option in favor of the -alpha option, so I'm trying to do the same. I've added a setter method that calls SetImageAlphaChannel. This will be the getter.
Re: Looking for GetImageAlphaChannel
I d/l'd 6.3.9-2 beta and the new method looks fine. Thanks.