34#include "../clear-n_.h"
41 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI
"\">\n"
42 "<name>" N_(
"Shade")
"</name>\n"
43 "<id>org.inkscape.effect.bitmap.shade</id>\n"
44 "<param name=\"azimuth\" gui-text=\"" N_(
"Azimuth:")
"\" type=\"float\" min=\"-180\" max=\"180\">30</param>\n"
45 "<param name=\"elevation\" gui-text=\"" N_(
"Elevation:")
"\" type=\"float\" min=\"-180\" max=\"180\">30</param>\n"
46 "<param name=\"colorShading\" gui-text=\"" N_(
"Colored Shading")
"\" type=\"bool\">false</param>\n"
48 "<object-type>all</object-type>\n"
50 "<submenu name=\"" N_(
"Raster")
"\" />\n"
52 "<menu-tip>" N_(
"Shade selected bitmap(s) simulating distant light source")
"</menu-tip>\n"
54 "</inkscape-extension>\n", std::make_unique<Shade>());
Effects are extensions that take a document and do something to it in place.
double get_param_float(char const *name) const
Gets a float parameter identified by name with the double placed in value.
bool get_param_bool(char const *name) const
Gets a parameter identified by name with the bool placed in value.
virtual unsigned image(Inkscape::Extension::Print *, unsigned char *, unsigned int, unsigned int, unsigned int, Geom::Affine const &, SPStyle const *)
void applyEffect(Magick::Image *image) override
void refreshParameters(Inkscape::Extension::Effect *module) override
std::unique_ptr< Magick::Image > image
void build_from_mem(gchar const *buffer, std::unique_ptr< Implementation::Implementation > in_imp)
Create a module from a buffer holding an XML description.
CMYK to sRGB conversion routines.