]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 7 Feb 2012 02:45:46 +0000 (02:45 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 7 Feb 2012 02:45:46 +0000 (02:45 +0000)
MagickCore/distort.c
PerlMagick/Magick.xs

index e02d4a6d8e26533166ba6adf0b41641b2ea98545..a2509605422354cbf15fb4422c059dc575914ec8 100644 (file)
@@ -2276,7 +2276,7 @@ MagickExport Image *DistortImage(const Image *image,DistortImageMethod method,
     }
   distort_image->page.x=geometry.x;
   distort_image->page.y=geometry.y;
-  if (distort_image->background_color.alpha != OpaqueAlpha)
+  if (distort_image->background_color.matte != MagickFalse)
     distort_image->matte=MagickTrue;
 
   { /* ----- MAIN CODE -----
index b00d7c09fcaf105ff9ef26a1562db9c0a2467664..cdf22dce405b1e44404b5dd82684452f4d9e43e0 100644 (file)
@@ -247,8 +247,8 @@ static struct
       {"channel", MagickChannelOptions} } },
     { "Roll", { {"geometry", StringReference}, {"x", IntegerReference},
       {"y", IntegerReference} } },
-    { "Rotate", { {"degrees", RealReference}, {"fill", StringReference},
-      {"color", StringReference}, {"background", StringReference} } },
+    { "Rotate", { {"degrees", RealReference}, 
+      {"background", StringReference} } },
     { "Sample", { {"geometry", StringReference}, {"width", IntegerReference},
       {"height", IntegerReference} } },
     { "Scale", { {"geometry", StringReference}, {"width", IntegerReference},
@@ -7824,14 +7824,13 @@ Mogrify(ref,...)
           if (attribute_flag[0] == 0)
             argument_list[0].real_reference=90.0;
           if (attribute_flag[1] != 0)
-            QueryColorCompliance(argument_list[1].string_reference,
-              AllCompliance,&image->background_color,exception);
-          if (attribute_flag[2] != 0)
-            QueryColorCompliance(argument_list[2].string_reference,
-              AllCompliance,&image->background_color,exception);
-          if (attribute_flag[3] != 0)
-            QueryColorCompliance(argument_list[3].string_reference,
-              AllCompliance,&image->background_color,exception);
+            {
+              QueryColorCompliance(argument_list[1].string_reference,
+                AllCompliance,&image->background_color,exception);
+              if ((image->background_color.matte != MagickFalse) &&
+                  (image->matte == MagickFalse))
+                (void) SetImageAlpha(image,OpaqueAlpha,exception);
+            }
           image=RotateImage(image,argument_list[0].real_reference,exception);
           break;
         }