1 /*
2 * Copyright (C) 2007 Authors:
3 * Christopher Brown <audiere@gmail.com>
4 * Ted Gould <ted@gould.cx>
5 *
6 * Released under GNU GPL, read the file 'COPYING' for more information
7 */
9 #include "extension/effect.h"
10 #include "extension/system.h"
12 #include "normalize.h"
14 namespace Inkscape {
15 namespace Extension {
16 namespace Internal {
17 namespace Bitmap {
19 void
20 Normalize::applyEffect(Magick::Image* image) {
21 image->normalize();
22 }
24 void
25 Normalize::refreshParameters(Inkscape::Extension::Effect* module) {
26 }
28 #include "../clear-n_.h"
30 void
31 Normalize::init(void)
32 {
33 Inkscape::Extension::build_from_mem(
34 "<inkscape-extension>\n"
35 "<name>" N_("Normalize") "</name>\n"
36 "<id>org.inkscape.effect.bitmap.normalize</id>\n"
37 "<effect>\n"
38 "<object-type>all</object-type>\n"
39 "<effects-menu>\n"
40 "<submenu name=\"" N_("Raster") "\" />\n"
41 "</effects-menu>\n"
42 "<menu-tip>" N_("Normalize selected bitmap(s), expanding color range to the full possible range of color.") "</menu-tip>\n"
43 "</effect>\n"
44 "</inkscape-extension>\n", new Normalize());
45 }
47 }; /* namespace Bitmap */
48 }; /* namespace Internal */
49 }; /* namespace Extension */
50 }; /* namespace Inkscape */