// 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 "wave.h" #include namespace Inkscape { namespace Extension { namespace Internal { namespace Bitmap { void Wave::applyEffect(Magick::Image* image) { image->wave(_amplitude, _wavelength); } void Wave::refreshParameters(Inkscape::Extension::Effect* module) { _amplitude = module->get_param_float("amplitude"); _wavelength = module->get_param_float("wavelength"); } #include "../clear-n_.h" void Wave::init() { // clang-format off Inkscape::Extension::build_from_mem( "\n" "" N_("Wave") "\n" "org.inkscape.effect.bitmap.wave\n" "25\n" "150\n" "\n" "all\n" "\n" "\n" "\n" "" N_("Alter selected bitmap(s) along sine wave") "\n" "\n" "\n", new Wave()); // clang-format on } }; /* namespace Bitmap */ }; /* namespace Internal */ }; /* namespace Extension */ }; /* namespace Inkscape */