/* * 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 "spread.h" namespace Inkscape { namespace Extension { namespace Internal { namespace Bitmap { void Spread::applyEffect(Magick::Image* image) { image->spread(_amount); } void Spread::refreshParameters(Inkscape::Extension::Effect* module) { _amount = module->get_param_int("amount"); } #include "../clear-n_.h" void Spread::init(void) { Inkscape::Extension::build_from_mem( "\n" "" N_("Spread") "\n" "org.inkscape.effect.bitmap.spread\n" "3\n" "\n" "all\n" "\n" "\n" "\n" "" N_("Randomly spread pixels in selected bitmap(s), within the radius of 'amount.'") "\n" "\n" "\n", new Spread()); } }; /* namespace Bitmap */ }; /* namespace Internal */ }; /* namespace Extension */ }; /* namespace Inkscape */