summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-01-26 21:38:06 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-01-26 21:38:06 +0000
commitf517ac2be54c28257d78a04be82f122e77c950b2 (patch)
tree5076310e7ec49765754692aa1e6e9ef416b1ccf9 /src
parentcalligraphic defaults: forgotten conversions to the new range (diff)
downloadinkscape-f517ac2be54c28257d78a04be82f122e77c950b2.tar.gz
inkscape-f517ac2be54c28257d78a04be82f122e77c950b2.zip
fix parameter ranges, copyedit
(bzr r7185)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/bitmap/modulate.cpp14
-rw-r--r--src/extension/internal/bitmap/sample.cpp4
2 files changed, 9 insertions, 9 deletions
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(
"<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
- "<name>" N_("Modulate") "</name>\n"
+ "<name>" N_("HSB Adjust") "</name>\n"
"<id>org.inkscape.effect.bitmap.modulate</id>\n"
- "<param name=\"brightness\" gui-text=\"" N_("Brightness") "\" type=\"float\" min=\"0\" max=\"100\">1</param>\n"
- "<param name=\"saturation\" gui-text=\"" N_("Saturation") "\" type=\"float\" min=\"0\" max=\"100\">1</param>\n"
- "<param name=\"hue\" gui-text=\"" N_("Hue") "\" type=\"float\" min=\"-180\" max=\"180\">0</param>\n"
+ "<param name=\"hue\" gui-text=\"" N_("Hue") "\" type=\"float\" min=\"-360\" max=\"360\">0</param>\n"
+ "<param name=\"saturation\" gui-text=\"" N_("Saturation") "\" type=\"float\" min=\"-200\" max=\"200\">0</param>\n"
+ "<param name=\"brightness\" gui-text=\"" N_("Brightness") "\" type=\"float\" min=\"-200\" max=\"200\">0</param>\n"
"<effect>\n"
"<object-type>all</object-type>\n"
"<effects-menu>\n"
"<submenu name=\"" N_("Raster") "\" />\n"
"</effects-menu>\n"
- "<menu-tip>" N_("Modulate percent hue, saturation, and brightness of selected bitmap(s).") "</menu-tip>\n"
+ "<menu-tip>" N_("Adjust the amount of hue, saturation, and brightness in selected bitmap(s)") "</menu-tip>\n"
"</effect>\n"
"</inkscape-extension>\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(
"<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
- "<name>" N_("Sample") "</name>\n"
+ "<name>" N_("Resample") "</name>\n"
"<id>org.inkscape.effect.bitmap.sample</id>\n"
"<param name=\"width\" gui-text=\"" N_("Width") "\" type=\"int\" min=\"0\" max=\"6400\">100</param>\n"
"<param name=\"height\" gui-text=\"" N_("Height") "\" type=\"int\" min=\"0\" max=\"6400\">100</param>\n"
@@ -44,7 +44,7 @@ Sample::init(void)
"<effects-menu>\n"
"<submenu name=\"" N_("Raster") "\" />\n"
"</effects-menu>\n"
- "<menu-tip>" N_("Alter the resolution of selected image by resizing it by given dimensions.") "</menu-tip>\n"
+ "<menu-tip>" N_("Alter the resolution of selected image by resizing it to the given pixel size") "</menu-tip>\n"
"</effect>\n"
"</inkscape-extension>\n", new Sample());
}