Code

Fixed messed up transformations because of a missing cairo_restore() and removed...
[inkscape.git] / src / extension / internal / bitmap / equalize.cpp
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 "equalize.h"
14 namespace Inkscape {
15 namespace Extension {
16 namespace Internal {
17 namespace Bitmap {
18         
19 void
20 Equalize::applyEffect(Magick::Image *image) {
21         image->equalize();
22 }
24 void
25 Equalize::refreshParameters(Inkscape::Extension::Effect *module) { }
27 #include "../clear-n_.h"
29 void
30 Equalize::init(void)
31 {
32         Inkscape::Extension::build_from_mem(
33                 "<inkscape-extension>\n"
34                         "<name>" N_("Equalize") "</name>\n"
35                         "<id>org.inkscape.effect.bitmap.equalize</id>\n"
36                         "<effect>\n"
37                                 "<object-type>all</object-type>\n"
38                                 "<effects-menu>\n"
39                                         "<submenu name=\"" N_("Raster") "\" />\n"
40                                 "</effects-menu>\n"
41                                 "<menu-tip>" N_("Equalize selected bitmap(s) -- histogram equalization.") "</menu-tip>\n"
42                         "</effect>\n"
43                 "</inkscape-extension>\n", new Equalize());
44 }
46 }; /* namespace Bitmap */
47 }; /* namespace Internal */
48 }; /* namespace Extension */
49 }; /* namespace Inkscape */