despeckle.cpp revision d943d8b358a77366a24b32d226a8fd9ea716f4fc
3853N/A/*
3853N/A * Copyright (C) 2007 Authors:
3853N/A * Christopher Brown <audiere@gmail.com>
3853N/A * Ted Gould <ted@gould.cx>
3853N/A *
3853N/A * Released under GNU GPL, read the file 'COPYING' for more information
3853N/A */
3853N/A
3853N/A#include "extension/effect.h"
3853N/A#include "extension/system.h"
3853N/A
3853N/A#include "despeckle.h"
3853N/A#include <Magick++.h>
3853N/A
3853N/Anamespace Inkscape {
3853N/Anamespace Extension {
3853N/Anamespace Internal {
3853N/Anamespace Bitmap {
3853N/A
3853N/Avoid
3853N/ADespeckle::applyEffect(Magick::Image *image) {
3853N/A image->despeckle();
3853N/A}
3853N/A
3853N/Avoid
3853N/ADespeckle::refreshParameters(Inkscape::Extension::Effect */*module*/) {
3853N/A}
3853N/A
3853N/A#include "../clear-n_.h"
3897N/A
3853N/Avoid
3897N/ADespeckle::init(void)
3897N/A{
3897N/A Inkscape::Extension::build_from_mem(
3897N/A "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
3897N/A "<name>" N_("Despeckle") "</name>\n"
3897N/A "<id>org.inkscape.effect.bitmap.despeckle</id>\n"
3897N/A "<effect>\n"
3897N/A "<object-type>all</object-type>\n"
3897N/A "<effects-menu>\n"
3897N/A "<submenu name=\"" N_("Raster") "\" />\n"
3853N/A "</effects-menu>\n"
3853N/A "<menu-tip>" N_("Reduce speckle noise of selected bitmap(s)") "</menu-tip>\n"
3853N/A "</effect>\n"
3853N/A "</inkscape-extension>\n", new Despeckle());
3853N/A}
3897N/A
3853N/A}; /* namespace Bitmap */
3853N/A}; /* namespace Internal */
3853N/A}; /* namespace Extension */
3853N/A}; /* namespace Inkscape */
3853N/A