23 double amount =
_amount / 100.0;
35#include "../clear-n_.h"
42 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI
"\">\n"
43 "<name>" N_(
"Unsharp Mask")
"</name>\n"
44 "<id>org.inkscape.effect.bitmap.unsharpmask</id>\n"
45 "<param name=\"radius\" gui-text=\"" N_(
"Radius:")
"\" type=\"float\" min=\"0.0\" max=\"50.0\">5.0</param>\n"
46 "<param name=\"sigma\" gui-text=\"" N_(
"Sigma:")
"\" type=\"float\" min=\"0.0\" max=\"50.0\">5.0</param>\n"
47 "<param name=\"amount\" gui-text=\"" N_(
"Amount:")
"\" type=\"float\" min=\"0.0\" max=\"100.0\">50.0</param>\n"
48 "<param name=\"threshold\" gui-text=\"" N_(
"Threshold:")
"\" type=\"float\" min=\"0.0\" max=\"50.0\">5.0</param>\n"
50 "<object-type>all</object-type>\n"
52 "<submenu name=\"" N_(
"Raster")
"\" />\n"
54 "<menu-tip>" N_(
"Sharpen selected bitmap(s) using unsharp mask algorithms")
"</menu-tip>\n"
56 "</inkscape-extension>\n", std::make_unique<Unsharpmask>());
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.
virtual unsigned image(Inkscape::Extension::Print *, unsigned char *, unsigned int, unsigned int, unsigned int, Geom::Affine const &, SPStyle const *)
void refreshParameters(Inkscape::Extension::Effect *module) override
void applyEffect(Magick::Image *image) 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.