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/raise.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/raise.cpp')
| -rw-r--r-- | src/extension/internal/bitmap/raise.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/extension/internal/bitmap/raise.cpp b/src/extension/internal/bitmap/raise.cpp index 6f050fcef..d3130a11d 100644 --- a/src/extension/internal/bitmap/raise.cpp +++ b/src/extension/internal/bitmap/raise.cpp @@ -18,7 +18,7 @@ namespace Bitmap { void Raise::applyEffect(Magick::Image* image) { - Magick::Geometry geometry(_width, _height, _x, _y); + Magick::Geometry geometry(_width, _height, 0, 0); image->raise(geometry, _raisedFlag); } @@ -26,8 +26,6 @@ void Raise::refreshParameters(Inkscape::Extension::Effect* module) { _width = module->get_param_int("width"); _height = module->get_param_int("height"); - _x = module->get_param_int("x"); - _y = module->get_param_int("y"); _raisedFlag = module->get_param_bool("raisedFlag"); } @@ -42,15 +40,13 @@ Raise::init(void) "<id>org.inkscape.effect.bitmap.raise</id>\n" "<param name=\"width\" gui-text=\"" N_("Width") "\" type=\"int\" min=\"0\" max=\"800\">6</param>\n" "<param name=\"height\" gui-text=\"" N_("Height") "\" type=\"int\" min=\"0\" max=\"800\">6</param>\n" - "<param name=\"x\" gui-text=\"" N_("X") "\" type=\"int\" min=\"0\" max=\"100\">0</param>\n" - "<param name=\"y\" gui-text=\"" N_("Y") "\" type=\"int\" min=\"0\" max=\"100\">0</param>\n" - "<param name=\"raisedFlag\" gui-text=\"" N_("RaisedFlag") "\" type=\"bool\">0</param>\n" + "<param name=\"raisedFlag\" gui-text=\"" N_("Raised") "\" type=\"boolean\">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 Raise Effect") "</menu-tip>\n" + "<menu-tip>" N_("Alter lightness the edges of selected bitmap(s) to create a raised appearance.") "</menu-tip>\n" "</effect>\n" "</inkscape-extension>\n", new Raise()); } |
