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/shade.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/shade.cpp')
| -rw-r--r-- | src/extension/internal/bitmap/shade.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/extension/internal/bitmap/shade.cpp b/src/extension/internal/bitmap/shade.cpp index a9bb5a266..3ee83b43f 100644 --- a/src/extension/internal/bitmap/shade.cpp +++ b/src/extension/internal/bitmap/shade.cpp @@ -18,7 +18,8 @@ namespace Bitmap { void Shade::applyEffect(Magick::Image* image) { - image->shade(_azimuth, _elevation, _colorShading); + image->shade(_azimuth, _elevation, !_colorShading); + // I don't know why, but I have to invert colorShading here } void @@ -39,13 +40,13 @@ Shade::init(void) "<id>org.inkscape.effect.bitmap.shade</id>\n" "<param name=\"azimuth\" gui-text=\"" N_("Azimuth") "\" type=\"float\" min=\"-180\" max=\"180\">30</param>\n" "<param name=\"elevation\" gui-text=\"" N_("Elevation") "\" type=\"float\" min=\"-180\" max=\"180\">30</param>\n" - "<param name=\"colorShading\" gui-text=\"" N_("Colored Shading") "\" type=\"bool\">0</param>\n" + "<param name=\"colorShading\" gui-text=\"" N_("Colored Shading") "\" type=\"boolean\">false</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 Shade Effect") "</menu-tip>\n" + "<menu-tip>" N_("Shade selected bitmap(s) simulating distant light source.") "</menu-tip>\n" "</effect>\n" "</inkscape-extension>\n", new Shade()); } |
