From: cristy Date: Sat, 26 Mar 2011 12:59:45 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7862 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b009425d110e90670871fb2cb19f80d5e24bb490;p=imagemagick --- diff --git a/ChangeLog b/ChangeLog index 68797c3ba..8c42422a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2011-03-25 6.6.8-8 Cristy * Add InterpolatePixelPacket() method. + * Add support for the %[opaque] property. 2011-03-25 6.6.8-8 Cristy * New version 6.6.8-8. diff --git a/magick/property.c b/magick/property.c index 4d2f7e656..cdce576e4 100644 --- a/magick/property.c +++ b/magick/property.c @@ -2341,6 +2341,16 @@ MagickExport const char *GetMagickProperty(const ImageInfo *image_info, } case 'o': { + if (LocaleNCompare("opaque",property,6) == 0) + { + MagickBooleanType + opaque; + + opaque=IsOpaqueImage(image,&image->exception); + (void) CopyMagickString(value,opaque == MagickFalse ? "false" : + "true",MaxTextExtent); + break; + } if (LocaleNCompare("output",property,6) == 0) { (void) CopyMagickString(value,image_info->filename,MaxTextExtent);