1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_INK_BLEED_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_INK_BLEED_H__
3 /* Change the 'INK_BLEED' above to be your file name */
5 /*
6 * Copyright (C) 2008 Authors:
7 * Ted Gould <ted@gould.cx>
8 *
9 * Released under GNU GPL, read the file 'COPYING' for more information
10 */
11 /* ^^^ Change the copyright to be you and your e-mail address ^^^ */
13 #include "filter.h"
15 namespace Inkscape {
16 namespace Extension {
17 namespace Internal {
18 namespace Filter {
20 class InkBleed : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22 static void init (void) {
23 filter_init("ink-bleed", /* ID -- should be unique */
24 N_("InkBleed"), /* Name in the menus, should have a N_() around it for translation */
25 N_("Artist Text"),
26 /* Menu tooltip to help users understand the name. Should also have a N_() */
27 "<filter>\n"
28 "<feGaussianBlur stdDeviation=\"1.3291292875989447\" in=\"SourceGraphic\" result=\"result1\"/>\n"
29 "<feTurbulence baseFrequency=\"0.033773087071240104\" numOctaves=\"4\" result=\"result0\"/>\n"
30 "<feDisplacementMap in2=\"result0\" in=\"result1\" xChannelSelector=\"R\" yChannelSelector=\"G\" scale=\"19.612590799031477\" result=\"result2\"/>\n"
31 "<feColorMatrix result=\"result3\" values=\"2 0 0 0 0 0 2 0 0 0 0 0 2 0 0 0 0 0 0.7 0\"/>\n"
32 "<feGaussianBlur stdDeviation=\"1.0653034300791555\" in=\"SourceGraphic\" result=\"result4\"/>\n"
33 "<feComposite in2=\"result3\" in=\"result4\"/>\n"
34 "</filter>\n");
35 /* The XML of the filter that should be added. There
36 * should be a <svg:filter> surrounding what you'd like
37 * to be added with this effect. */
38 };
39 };
41 }; /* namespace Filter */
42 }; /* namespace Internal */
43 }; /* namespace Extension */
44 }; /* namespace Inkscape */
46 /* Change the 'INK_BLEED' below to be your file name */
47 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_INK_BLEED_H__ */