]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 26 Nov 2016 20:47:17 +0000 (15:47 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 26 Nov 2016 20:47:17 +0000 (15:47 -0500)
MagickCore/draw.c
utilities/compare.1.in

index 19ee5429625e6963207f82461b4bd648124f3003..4e4ebb1cdab23db8e458db30d7f443cb26588595 100644 (file)
@@ -1421,7 +1421,7 @@ MagickExport MagickBooleanType DrawClipPath(Image *image,
   clip_mask=CloneImage(image,image->columns,image->rows,MagickTrue,exception);
   if (clip_mask == (Image *) NULL)
     return(MagickFalse);
-  (void) QueryColorCompliance("#0000",AllCompliance,
+  (void) QueryColorCompliance("#ffffff",AllCompliance,
     &clip_mask->background_color,exception);
   clip_mask->background_color.alpha=(MagickRealType) TransparentAlpha;
   (void) SetImageBackgroundColor(clip_mask,exception);
@@ -1430,12 +1430,11 @@ MagickExport MagickBooleanType DrawClipPath(Image *image,
       draw_info->clip_mask);
   clone_info=CloneDrawInfo((ImageInfo *) NULL,draw_info);
   (void) CloneString(&clone_info->primitive,value);
-  (void) QueryColorCompliance("#ffffff",AllCompliance,&clone_info->fill,
+  (void) QueryColorCompliance("#000000",AllCompliance,&clone_info->fill,
     exception);
   if (clone_info->clip_mask != (char *) NULL)
     clone_info->clip_mask=DestroyString(clone_info->clip_mask);
-  status=NegateImage(clip_mask,MagickFalse,exception);
-  status&=DrawImage(clip_mask,clone_info,exception);
+  status=DrawImage(clip_mask,clone_info,exception);
   (void) SetImageMask(image,ReadPixelMask,clip_mask,exception);
   clip_mask=DestroyImage(clip_mask);
   clone_info=DestroyDrawInfo(clone_info);
index 0f0734b171951e2c33aac574e8c8577ef1fabc82..753775b3bcc1456d230e5f10c1ba1e2db10ad6b1 100644 (file)
@@ -36,6 +36,7 @@ Image Settings:
                        de-emphasize pixel differences with this color
   \-metric type         measure differences between images with this metric
   \-monitor             monitor progress
+  \-negate              replace each pixel with its complementary color
   \-profile filename    add, delete, or apply an image profile
   \-quality value       JPEG/MIFF/PNG compression level
   \-quiet               suppress all warning messages