From bd91f8f1e8aedbb8d892463cb67ec66ffce55458 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Wed, 13 Jul 2011 23:33:25 +0200 Subject: Add randomThreshold, reduceNoise and remap --- dmagick/Options.d | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'dmagick/Options.d') diff --git a/dmagick/Options.d b/dmagick/Options.d index 05d957b..6e6ae6b 100644 --- a/dmagick/Options.d +++ b/dmagick/Options.d @@ -1112,6 +1112,22 @@ class Options return quantizeInfo.colorspace; } + /** + * The basic strategy of dithering is to trade intensity resolution for + * spatial resolution by averaging the intensities of several neighboring + * pixels. Images which suffer from severe contouring when reducing + * colors can be improved with this option. + */ + void quantizeDitherMethod(DitherMethod method) + { + quantizeInfo.dither_method = method; + } + ///ditto + DitherMethod quantizeDitherMethod() + { + return quantizeInfo.dither_method; + } + /** * Depth of the quantization color classification tree. * Values of 0 or 1 allow selection of the optimal tree _depth @@ -1130,5 +1146,4 @@ class Options //MagickBooleanType measure_error; //size_t signature; - //DitherMethod dither_method; } -- cgit v1.2.3