// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2007 Authors: * Christopher Brown * Ted Gould * * Released under GNU GPL v2+, read the file 'COPYING' for more information. */ #include "extension/effect.h" #include "extension/system.h" #include "threshold.h" #include namespace Inkscape { namespace Extension { namespace Internal { namespace Bitmap { void Threshold::applyEffect(Magick::Image* image) { image->threshold(_threshold); } void Threshold::refreshParameters(Inkscape::Extension::Effect* module) { _threshold = module->get_param_float("threshold"); } #include "../clear-n_.h" void Threshold::init() { // clang-format off Inkscape::Extension::build_from_mem( "\n" // TRANSLATORS: see http://docs.gimp.org/en/gimp-tool-threshold.html "" N_("Threshold") "\n" "org.inkscape.effect.bitmap.threshold\n" "\n" "\n" "all\n" "\n" "\n" "\n" "" N_("Threshold selected bitmap(s)") "\n" "\n" "\n", new Threshold()); // clang-format on } }; /* namespace Bitmap */ }; /* namespace Internal */ }; /* namespace Extension */ }; /* namespace Inkscape */