]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 1 Feb 2010 01:25:42 +0000 (01:25 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 1 Feb 2010 01:25:42 +0000 (01:25 +0000)
wand/identify.c

index 31afcd6303e21aebe95c831511db203959e802d6..4b1fb629796aa9198bae165de5185ea8475eb160 100644 (file)
@@ -104,6 +104,11 @@ static MagickBooleanType IdentifyUsage(void)
       "-version             print version information",
       (char *) NULL
     },
+    *operators[]=
+    {
+      "-negate              replace every pixel with its complementary color ",
+      (char *) NULL
+    },
     *settings[]=
     {
       "-alpha option        on, activate, off, deactivate, set, opaque, copy",
@@ -153,6 +158,9 @@ static MagickBooleanType IdentifyUsage(void)
   (void) printf("\nImage Settings:\n");
   for (p=settings; *p != (char *) NULL; p++)
     (void) printf("  %s\n",*p);
+  (void) printf("\nImage Operators:\n");
+  for (p=operators; *p != (char *) NULL; p++)
+    (void) printf("  %s\n",*p);
   (void) printf("\nMiscellaneous Options:\n");
   for (p=miscellaneous; *p != (char *) NULL; p++)
     (void) printf("  %s\n",*p);
@@ -674,6 +682,12 @@ WandExport MagickBooleanType IdentifyImageCommand(ImageInfo *image_info,
           break;
         ThrowIdentifyException(OptionError,"UnrecognizedOption",option)
       }
+      case 'n':
+      {
+        if (LocaleCompare("negate",option+1) == 0)
+          break;
+        ThrowIdentifyException(OptionError,"UnrecognizedOption",option)
+      }
       case 'p':
       {
         if (LocaleCompare("ping",option+1) == 0)