diff options
| author | Ted Gould <ted@gould.cx> | 2007-09-13 04:31:40 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2007-09-13 04:31:40 +0000 |
| commit | 37313b49352eafc3bf7aa8a8288a2064b1f896d2 (patch) | |
| tree | a794104689572bc25f43da80329526571a141bd2 /src/extension/internal/bitmap/adaptiveThreshold.cpp | |
| parent | change from <io.h> to <unistd.h> to define close (diff) | |
| download | inkscape-37313b49352eafc3bf7aa8a8288a2064b1f896d2.tar.gz inkscape-37313b49352eafc3bf7aa8a8288a2064b1f896d2.zip | |
r16564@tres: ted | 2007-09-12 20:45:12 -0700
Final GSoC patch from Chris. I took too long to include it :(
(bzr r3740)
Diffstat (limited to 'src/extension/internal/bitmap/adaptiveThreshold.cpp')
| -rw-r--r-- | src/extension/internal/bitmap/adaptiveThreshold.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/extension/internal/bitmap/adaptiveThreshold.cpp b/src/extension/internal/bitmap/adaptiveThreshold.cpp index 5a2db5dc0..df1c3ea82 100644 --- a/src/extension/internal/bitmap/adaptiveThreshold.cpp +++ b/src/extension/internal/bitmap/adaptiveThreshold.cpp @@ -25,6 +25,7 @@ void AdaptiveThreshold::refreshParameters(Inkscape::Extension::Effect *module) { _width = module->get_param_int("width"); _height = module->get_param_int("height"); + _offset = module->get_param_int("offset"); } #include "../clear-n_.h" @@ -36,14 +37,15 @@ AdaptiveThreshold::init(void) "<inkscape-extension>\n" "<name>" N_("Adaptive Threshold") "</name>\n" "<id>org.inkscape.effect.bitmap.adaptiveThreshold</id>\n" - "<param name=\"width\" gui-text=\"" N_("Width") "\" type=\"int\" min=\"0\" max=\"100\">5</param>\n" - "<param name=\"height\" gui-text=\"" N_("Height") "\" type=\"int\" min=\"0\" max=\"100\">1</param>\n" + "<param name=\"width\" gui-text=\"" N_("Width") "\" type=\"int\" min=\"-100\" max=\"100\">5</param>\n" + "<param name=\"height\" gui-text=\"" N_("Height") "\" type=\"int\" min=\"-100\" max=\"100\">5</param>\n" + "<param name=\"offset\" gui-text=\"" N_("Offset") "\" type=\"int\" min=\"0\" max=\"100\">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_("Apply Adaptive Threshold Effect") "</menu-tip>\n" + "<menu-tip>" N_("Apply adaptive thresholding to selected bitmap(s).") "</menu-tip>\n" "</effect>\n" "</inkscape-extension>\n", new AdaptiveThreshold()); } |
