Inkscape
Vector Graphics Editor
normalize.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2007 Authors:
4 * Christopher Brown <audiere@gmail.com>
5 * Ted Gould <ted@gould.cx>
6 *
7 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
8 */
9
10#include "extension/effect.h"
11#include "extension/system.h"
12
13#include "normalize.h"
14#include <Magick++.h>
15
16namespace Inkscape {
17namespace Extension {
18namespace Internal {
19namespace Bitmap {
20
21void
23 image->normalize();
24}
25
26void
28}
29
30#include "../clear-n_.h"
31
32void
34{
35 // clang-format off
37 "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
38 "<name>" N_("Normalize") "</name>\n"
39 "<id>org.inkscape.effect.bitmap.normalize</id>\n"
40 "<effect>\n"
41 "<object-type>all</object-type>\n"
42 "<effects-menu>\n"
43 "<submenu name=\"" N_("Raster") "\" />\n"
44 "</effects-menu>\n"
45 "<menu-tip>" N_("Normalize selected bitmap(s), expanding color range to the full possible range of color") "</menu-tip>\n"
46 "</effect>\n"
47 "</inkscape-extension>\n", std::make_unique<Normalize>());
48 // clang-format on
49}
50
51}; /* namespace Bitmap */
52}; /* namespace Internal */
53}; /* namespace Extension */
54}; /* namespace Inkscape */
Effects are extensions that take a document and do something to it in place.
Definition: effect.h:39
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
Definition: normalize.cpp:22
void refreshParameters(Inkscape::Extension::Effect *module) override
Definition: normalize.cpp:27
std::unique_ptr< Magick::Image > image
Definition: imagemagick.cpp:40
void build_from_mem(gchar const *buffer, std::unique_ptr< Implementation::Implementation > in_imp)
Create a module from a buffer holding an XML description.
Definition: system.cpp:471
CMYK to sRGB conversion routines.