]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 22 Aug 2013 20:35:52 +0000 (20:35 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 22 Aug 2013 20:35:52 +0000 (20:35 +0000)
MagickCore/draw.c

index c9a0281c1d575d552dfa429934bf80e6cbfdf1e1..8722780a3844879d5abc8630d9fc663d69b1c0e7 100644 (file)
@@ -1992,8 +1992,13 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
                 &graphic_context[n]->fill_pattern,exception);
             else
               {
+                double
+                  alpha;
+
+                alpha=graphic_context[n]->fill.alpha;
                 status&=QueryColorCompliance(token,AllCompliance,
                   &graphic_context[n]->fill,exception);
+                graphic_context[n]->fill.alpha=alpha;
                 if (status == MagickFalse)
                   {
                     ImageInfo
@@ -2504,8 +2509,13 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
                 &graphic_context[n]->stroke_pattern,exception);
             else
               {
+                double
+                  alpha;
+
+                alpha=graphic_context[n]->stroke.alpha;
                 status&=QueryColorCompliance(token,AllCompliance,
                   &graphic_context[n]->stroke,exception);
+                graphic_context[n]->stroke.alpha=alpha;
                 if (status == MagickFalse)
                   {
                     ImageInfo