/* * Copyright (C) 2007 Authors: * Christopher Brown * Ted Gould * * Released under GNU GPL, read the file 'COPYING' for more information */ #include "extension/effect.h" #include "extension/system.h" #include "raise.h" namespace Inkscape { namespace Extension { namespace Internal { namespace Bitmap { void Raise::applyEffect(Magick::Image* image) { Magick::Geometry geometry(_width, _height, _x, _y); image->raise(geometry, _raisedFlag); } void Raise::refreshParameters(Inkscape::Extension::Effect* module) { _width = module->get_param_int("width"); _height = module->get_param_int("height"); _x = module->get_param_int("x"); _y = module->get_param_int("y"); _raisedFlag = module->get_param_bool("raisedFlag"); } #include "../clear-n_.h" void Raise::init(void) { Inkscape::Extension::build_from_mem( "\n" "" N_("Raise") "\n" "org.inkscape.effect.bitmap.raise\n" "6\n" "6\n" "0\n" "0\n" "0\n" "\n" "all\n" "\n" "\n" "\n" "" N_("Apply Raise Effect") "\n" "\n" "\n", new Raise()); } }; /* namespace Bitmap */ }; /* namespace Internal */ }; /* namespace Extension */ }; /* namespace Inkscape */