23 Magick::Quantum black_point = Magick::Color::scaleDoubleToQuantum(
_black_point / 100.0);
24 Magick::Quantum white_point = Magick::Color::scaleDoubleToQuantum(
_white_point / 100.0);
35#include "../clear-n_.h"
42 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI
"\">\n"
43 "<name>" N_(
"Level")
"</name>\n"
44 "<id>org.inkscape.effect.bitmap.level</id>\n"
45 "<param name=\"blackPoint\" gui-text=\"" N_(
"Black Point:")
"\" type=\"float\" min=\"0\" max=\"100\">0</param>\n"
46 "<param name=\"whitePoint\" gui-text=\"" N_(
"White Point:")
"\" type=\"float\" min=\"0\" max=\"100\">100</param>\n"
47 "<param name=\"midPoint\" gui-text=\"" N_(
"Gamma Correction:")
"\" type=\"float\" min=\"0\" max=\"10\">1</param>\n"
49 "<object-type>all</object-type>\n"
51 "<submenu name=\"" N_(
"Raster")
"\" />\n"
53 "<menu-tip>" N_(
"Level selected bitmap(s) by scaling values falling between the given ranges to the full color range")
"</menu-tip>\n"
55 "</inkscape-extension>\n", std::make_unique<Level>());
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.