From: buliabyak Date: Mon, 26 Jan 2009 21:38:06 +0000 (+0000) Subject: fix parameter ranges, copyedit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=18023a6d3838bec98725b5a745bd29350bb9e337;p=inkscape.git fix parameter ranges, copyedit --- diff --git a/src/extension/internal/bitmap/modulate.cpp b/src/extension/internal/bitmap/modulate.cpp index d8ea288ba..9b7a1a655 100644 --- a/src/extension/internal/bitmap/modulate.cpp +++ b/src/extension/internal/bitmap/modulate.cpp @@ -18,8 +18,8 @@ namespace Bitmap { void Modulate::applyEffect(Magick::Image* image) { - float hue = (_hue + 180.0) / 180.0; - image->modulate(_brightness, _saturation, hue); + float hue = (_hue * 200 / 360.0) + 100; + image->modulate(_brightness + 100, _saturation + 100, hue); } void @@ -36,17 +36,17 @@ Modulate::init(void) { Inkscape::Extension::build_from_mem( "\n" - "" N_("Modulate") "\n" + "" N_("HSB Adjust") "\n" "org.inkscape.effect.bitmap.modulate\n" - "1\n" - "1\n" - "0\n" + "0\n" + "0\n" + "0\n" "\n" "all\n" "\n" "\n" "\n" - "" N_("Modulate percent hue, saturation, and brightness of selected bitmap(s).") "\n" + "" N_("Adjust the amount of hue, saturation, and brightness in selected bitmap(s)") "\n" "\n" "\n", new Modulate()); } diff --git a/src/extension/internal/bitmap/sample.cpp b/src/extension/internal/bitmap/sample.cpp index 4c2e95a21..70c8995ac 100644 --- a/src/extension/internal/bitmap/sample.cpp +++ b/src/extension/internal/bitmap/sample.cpp @@ -35,7 +35,7 @@ Sample::init(void) { Inkscape::Extension::build_from_mem( "\n" - "" N_("Sample") "\n" + "" N_("Resample") "\n" "org.inkscape.effect.bitmap.sample\n" "100\n" "100\n" @@ -44,7 +44,7 @@ Sample::init(void) "\n" "\n" "\n" - "" N_("Alter the resolution of selected image by resizing it by given dimensions.") "\n" + "" N_("Alter the resolution of selected image by resizing it to the given pixel size") "\n" "\n" "\n", new Sample()); }