From: cristy Date: Sun, 29 Jul 2012 13:58:11 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6510f626199c1d08b91acb0aa0a2e729bb65f34;p=imagemagick --- diff --git a/MagickWand/magick-image.c b/MagickWand/magick-image.c index dc83a4a40..c01f4e2e7 100644 --- a/MagickWand/magick-image.c +++ b/MagickWand/magick-image.c @@ -7341,6 +7341,46 @@ WandExport MagickWand *MagickOptimizeImageLayers(MagickWand *wand) % % % % % % +% M a g i c k O p t i m i z e I m a g e T r a n s p a r e n c y % +% % +% % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% MagickOptimizeImageTransparency() takes a frame optimized GIF animation, and +% compares the overlayed pixels against the disposal image resulting from all +% the previous frames in the animation. Any pixel that does not change the +% disposal image (and thus does not effect the outcome of an overlay) is made +% transparent. +% +% WARNING: This modifies the current images directly, rather than generate +% a new image sequence. +% The format of the MagickOptimizeImageTransparency method is: +% +% MagickBooleanType MagickOptimizeImageTransparency(MagickWand *wand) +% +% A description of each parameter follows: +% +% o wand: the magick wand. +% +*/ +WandExport MagickBooleanType MagickOptimizeImageTransparency(MagickWand *wand) +{ + assert(wand != (MagickWand *) NULL); + assert(wand->signature == WandSignature); + if( IfMagickTrue(wand->debug) ) + (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); + if (wand->images == (Image *) NULL) + return(MagickFalse); + OptimizeImageTransparency(wand->images,wand->exception); + return(MagickTrue); +} + +/* +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% % +% % % M a g i c k O r d e r e d P o s t e r i z e I m a g e % % % % % diff --git a/MagickWand/magick-image.h b/MagickWand/magick-image.h index 9d01f24dc..771c28b5e 100644 --- a/MagickWand/magick-image.h +++ b/MagickWand/magick-image.h @@ -196,6 +196,7 @@ extern WandExport MagickBooleanType MagickOilPaintImage(MagickWand *,const double,const double), MagickOpaquePaintImage(MagickWand *,const PixelWand *,const PixelWand *, const double,const MagickBooleanType), + MagickOptimizeImageTransparency(MagickWand *), MagickOrderedPosterizeImage(MagickWand *,const char *), MagickTransparentPaintImage(MagickWand *,const PixelWand *, const double,const double,const MagickBooleanType invert),