From: buliabyak Date: Mon, 2 Feb 2009 15:52:05 +0000 (+0000) Subject: copyedit, use repeated calls for graduated contrast X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b8e3889c0cc57694944b28e716c44e7ecbda596b;p=inkscape.git copyedit, use repeated calls for graduated contrast --- diff --git a/src/extension/internal/bitmap/contrast.cpp b/src/extension/internal/bitmap/contrast.cpp index b024c8515..eb69f2eb9 100644 --- a/src/extension/internal/bitmap/contrast.cpp +++ b/src/extension/internal/bitmap/contrast.cpp @@ -18,7 +18,10 @@ namespace Bitmap { void Contrast::applyEffect(Magick::Image *image) { - image->contrast(_sharpen); + // the contrast method's argument seems to be binary, so we perform it multiple times + // to get the desired level of effect + for (unsigned int i = 0; i < _sharpen; i ++) + image->contrast(1); } void @@ -35,13 +38,13 @@ Contrast::init(void) "\n" "" N_("Contrast") "\n" "org.inkscape.effect.bitmap.contrast\n" - "1\n" + "0\n" "\n" "all\n" "\n" "\n" "\n" - "" N_("Enhance intensity differences in selected bitmap(s).") "\n" + "" N_("Increase or decrease contrast in bitmap(s)") "\n" "\n" "\n", new Contrast()); }