23 Magick::Quantum opacity = Magick::Color::scaleDoubleToQuantum((100 -
_opacity) / 100.0);
24 image->opacity(opacity);
32#include "../clear-n_.h"
39 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI
"\">\n"
40 "<name>" N_(
"Opacity")
"</name>\n"
41 "<id>org.inkscape.effect.bitmap.opacity</id>\n"
42 "<param name=\"opacity\" gui-text=\"" N_(
"Opacity:")
"\" type=\"float\" min=\"0.0\" max=\"100.0\">80.0</param>\n"
44 "<object-type>all</object-type>\n"
46 "<submenu name=\"" N_(
"Raster")
"\" />\n"
48 "<menu-tip>" N_(
"Modify opacity channel(s) of selected bitmap(s)")
"</menu-tip>\n"
50 "</inkscape-extension>\n", std::make_unique<Opacity>());
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 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.