]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 23 Nov 2009 15:23:31 +0000 (15:23 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 23 Nov 2009 15:23:31 +0000 (15:23 +0000)
PerlMagick/Magick.xs

index f8afb79bb6aaf7fb7411cc4a79bab78351b9a2c4..556c8eda6fa2041fcd15a9db3f279c034b0a9f14 100644 (file)
@@ -326,7 +326,8 @@ static struct
     { "Gamma", { {"gamma", StringReference}, {"channel", MagickChannelOptions},
       {"red", RealReference}, {"green", RealReference},
       {"blue", RealReference} } },
-    { "Map", { {"image", ImageReference}, {"dither", MagickBooleanOptions} } },
+    { "Map", { {"image", ImageReference}, {"dither", MagickBooleanOptions},
+      {"dither-method", MagickDitherOptions} } },
     { "MatteFloodfill", { {"geometry", StringReference},
       {"x", IntegerReference}, {"y", IntegerReference},
       {"opacity", StringReference}, {"bordercolor", StringReference},
@@ -495,7 +496,7 @@ static struct
     { "Decipher", { {"passphrase", StringReference} } },
     { "Deskew", { {"geometry", StringReference},
       {"threshold", StringReference} } },
-    { "Remap", { {"image", ImageReference},
+    { "Remap", { {"image", ImageReference}, {"dither", MagickBooleanOptions},
       {"dither-method", MagickDitherOptions} } },
     { "SparseColor", { {"points", ArrayReference},
       {"method", MagickSparseColorOptions},
@@ -8221,6 +8222,9 @@ Mogrify(ref,...)
           if (attribute_flag[1] != 0)
             quantize_info->dither=(MagickBooleanType)
               argument_list[1].long_reference;
+          if (attribute_flag[2] != 0)
+            quantize_info->dither_method=(DitherMethod)
+              argument_list[2].long_reference;
           (void) RemapImages(quantize_info,image,
             argument_list[0].image_reference);
           quantize_info=DestroyQuantizeInfo(quantize_info);
@@ -9779,9 +9783,12 @@ Mogrify(ref,...)
               goto PerlException;
             }
           quantize_info=AcquireQuantizeInfo(info->image_info);
-          if (attribute_flag[1] == 0)
-            quantize_info->dither_method=(DitherMethod)
+          if (attribute_flag[1] != 0)
+            quantize_info->dither=(MagickBooleanType)
               argument_list[1].long_reference;
+          if (attribute_flag[2] != 0)
+            quantize_info->dither_method=(DitherMethod)
+              argument_list[2].long_reference;
           (void) RemapImages(quantize_info,image,
             argument_list[0].image_reference);
           quantize_info=DestroyQuantizeInfo(quantize_info);