Page 1 of 1
Looking for GetImageAlphaChannel
Posted: 2008-03-04T16:02:50-07:00
by rmagick
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
Posted: 2008-03-04T16:47:12-07:00
by magick
Does IsOpaqueImage() work for you? If not, we can add a method that just returns the image->matte member.
Re: Looking for GetImageAlphaChannel
Posted: 2008-03-04T17:27:02-07:00
by rmagick
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
Posted: 2008-03-04T18:06:18-07:00
by magick
Ok, GetImageAlphaChannel() will be available in ImageMagick 6.3.9-2 Beta by tomorrow.
Re: Looking for GetImageAlphaChannel
Posted: 2008-03-04T18:18:20-07:00
by rmagick
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.
Re: Looking for GetImageAlphaChannel
Posted: 2008-03-05T16:51:22-07:00
by rmagick
I d/l'd 6.3.9-2 beta and the new method looks fine. Thanks.