]> granicus.if.org Git - imagemagick/commitdiff
Added quantizeDitherMethod to Magick++.
authordirk <dirk@git.imagemagick.org>
Thu, 13 Mar 2014 19:05:04 +0000 (19:05 +0000)
committerdirk <dirk@git.imagemagick.org>
Thu, 13 Mar 2014 19:05:04 +0000 (19:05 +0000)
Magick++/lib/Image.cpp
Magick++/lib/Magick++/Image.h
Magick++/lib/Magick++/Options.h
Magick++/lib/Options.cpp

index d42c63f893f8d38b6dfd7f8051b07217c6ee741b..d2358c1d140c14b7167150199be6438973a938e1 100644 (file)
@@ -1250,6 +1250,17 @@ bool Magick::Image::quantizeDither(void) const
   return(constOptions()->quantizeDither());
 }
 
+void Magick::Image::quantizeDitherMethod(const DitherMethod ditherMethod_)
+{
+  modifyImage();
+  options()->quantizeDitherMethod(ditherMethod_);
+}
+
+MagickCore::DitherMethod Magick::Image::quantizeDitherMethod(void) const
+{
+  return(constOptions()->quantizeDitherMethod());
+}
+
 void Magick::Image::quantizeTreeDepth(const size_t treeDepth_)
 {
   modifyImage();
index 05a3757c53de116922981e5509f823018c49340f..e9739dc50ba3a9da2c4566a0421ab27f2d2ec790 100644 (file)
@@ -377,6 +377,10 @@ namespace Magick
     void quantizeDither(const bool ditherFlag_);
     bool quantizeDither(void) const;
 
+    // Dither method
+    void quantizeDitherMethod(const DitherMethod ditherMethod_);
+    DitherMethod quantizeDitherMethod(void) const; 
+
     // Quantization tree-depth
     void quantizeTreeDepth(const size_t treeDepth_);
     size_t quantizeTreeDepth(void) const;
index 4af26bb06c41b4f12dc877b094de7cc3bf38a1e8..93f346bc56abd7afc441969f5f28b73b95874950 100644 (file)
@@ -158,6 +158,10 @@ namespace Magick
     void quantizeDither(bool ditherFlag_);
     bool quantizeDither(void) const;
 
+    // Dither method
+    void quantizeDitherMethod(DitherMethod ditherMethod_);
+    DitherMethod quantizeDitherMethod(void) const;
+
     // Quantization tree-depth
     void quantizeTreeDepth(size_t treeDepth_);
     size_t quantizeTreeDepth(void) const;
index 3d916430fa1103d4a73091aeb1cae9fe5550f499..a1328d6313c6f864fd1a42c717bd5ed4d62ddb7c 100644 (file)
@@ -439,6 +439,16 @@ bool Magick::Options::quantizeDither(void) const
   return(static_cast<bool>(_imageInfo->dither));
 }
 
+void Magick::Options::quantizeDitherMethod(DitherMethod ditherMethod_)
+{
+  _quantizeInfo->dither_method=ditherMethod_;
+}
+
+MagickCore::DitherMethod Magick::Options::quantizeDitherMethod(void) const
+{
+  return(_quantizeInfo->dither_method);
+}
+
 void Magick::Options::quantizeTreeDepth(size_t treeDepth_)
 {
   _quantizeInfo->tree_depth=treeDepth_;