2
* Copyright (C) 2007 Authors:
3
* Christopher Brown <audiere@gmail.com>
4
* Ted Gould <ted@gould.cx>
6
* Released under GNU GPL, read the file 'COPYING' for more information
9
#include "extension/effect.h"
10
#include "extension/system.h"
20
Spread::applyEffect(Magick::Image* image) {
21
image->spread(_amount);
25
Spread::refreshParameters(Inkscape::Extension::Effect* module) {
26
_amount = module->get_param_int("amount");
29
#include "../clear-n_.h"
34
Inkscape::Extension::build_from_mem(
35
"<inkscape-extension>\n"
36
"<name>" N_("Spread") "</name>\n"
37
"<id>org.inkscape.effect.bitmap.spread</id>\n"
38
"<param name=\"amount\" gui-text=\"" N_("Amount") "\" type=\"int\" min=\"0\" max=\"100\">3</param>\n"
40
"<object-type>all</object-type>\n"
42
"<submenu name=\"" N_("Raster") "\" />\n"
44
"<menu-tip>" N_("Randomly spread pixels in selected bitmap(s), within the radius of 'amount.'") "</menu-tip>\n"
46
"</inkscape-extension>\n", new Spread());
49
}; /* namespace Bitmap */
50
}; /* namespace Internal */
51
}; /* namespace Extension */
52
}; /* namespace Inkscape */