]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 7 Jan 2012 16:30:09 +0000 (16:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 7 Jan 2012 16:30:09 +0000 (16:30 +0000)
MagickCore/image.c
MagickCore/layer.c

index 5fe997b1da12f84e6f57db266fd217981d0be11b..27278be4b9f4777ce4df16351da8049555235b44 100644 (file)
@@ -2580,9 +2580,6 @@ MagickExport MagickBooleanType SetImageBackgroundColor(Image *image,
   MagickBooleanType
     status;
 
-  PixelInfo
-    pixel;
-
   ssize_t
     y;
 
@@ -2592,14 +2589,10 @@ MagickExport MagickBooleanType SetImageBackgroundColor(Image *image,
   assert(image->signature == MagickSignature);
   if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
     return(MagickFalse);
-  if (image->background_color.alpha != OpaqueAlpha)
-    image->matte=MagickTrue;
   /*
     Set image background color.
   */
   status=MagickTrue;
-  pixel=image->background_color;
-  pixel.black=0;
   image_view=AcquireCacheView(image);
   for (y=0; y < (ssize_t) image->rows; y++)
   {
@@ -2619,7 +2612,7 @@ MagickExport MagickBooleanType SetImageBackgroundColor(Image *image,
       }
     for (x=0; x < (ssize_t) image->columns; x++)
     {
-      SetPixelInfoPixel(image,&pixel,q);
+      SetPixelInfoPixel(image,&image->background_color,q);
       q+=GetPixelChannels(image);
     }
     if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
index d404da1792d2bcf3de14de2d59868a124946c13a..c7750c170eb0eb8e21bd74b32df30c9285982356 100644 (file)
@@ -271,9 +271,6 @@ MagickExport Image *CoalesceImages(const Image *image,ExceptionInfo *exception)
     return((Image *) NULL);
   coalesce_image->page=bounds;
   coalesce_image->dispose=NoneDispose;
-  coalesce_image->matte=MagickTrue;
-  coalesce_image->background_color.matte=MagickTrue;
-  coalesce_image->background_color.alpha=(Quantum) TransparentAlpha;
   (void) SetImageBackgroundColor(coalesce_image,exception);
   /*
     Coalesce rest of the images.