diff options
| author | Ted Gould <ted@gould.cx> | 2007-08-10 17:38:51 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2007-08-10 17:38:51 +0000 |
| commit | b29eafffd0b92cc7b67e5cd877aad5e98b0f0231 (patch) | |
| tree | 167c348e5e11ebf3d8afec37593f023180675039 /src/extension/internal/bitmap/imagemagick.h | |
| parent | fix 1767940 (diff) | |
| download | inkscape-b29eafffd0b92cc7b67e5cd877aad5e98b0f0231.tar.gz inkscape-b29eafffd0b92cc7b67e5cd877aad5e98b0f0231.zip | |
r16217@tres: ted | 2007-08-10 10:36:27 -0700
ImageMagick effects patch from Chris Brown. Google Summer of Code
project.
(bzr r3450)
Diffstat (limited to 'src/extension/internal/bitmap/imagemagick.h')
| -rw-r--r-- | src/extension/internal/bitmap/imagemagick.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/extension/internal/bitmap/imagemagick.h b/src/extension/internal/bitmap/imagemagick.h new file mode 100644 index 000000000..36536bb69 --- /dev/null +++ b/src/extension/internal/bitmap/imagemagick.h @@ -0,0 +1,51 @@ +#ifndef __INKSCAPE_EXTENSION_INTERNAL_BITMAP_IMAGEMAGICK_H__ +#define __INKSCAPE_EXTENSION_INTERNAL_BITMAP_IMAGEMAGICK_H__ + +/* + * Copyright (C) 2007 Authors: + * Christopher Brown <audiere@gmail.com> + * Ted Gould <ted@gould.cx> + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include "extension/implementation/implementation.h" +#include "extension/extension-forward.h" +#include <Magick++.h> + +namespace Inkscape { +namespace Extension { +namespace Internal { +namespace Bitmap { + +class ImageMagick : public Inkscape::Extension::Implementation::Implementation { + +private: + bool _loaded; + + Inkscape::XML::Node **_nodes; + + Magick::Image *_images; + int _imageCount; + + const char **_originals; +public: + virtual void applyEffect(Magick::Image *image) { }; + virtual void refreshParameters(Inkscape::Extension::Effect *module) { }; + bool load(Inkscape::Extension::Extension *module); + + void commitDocument(void); + void cancelDocument(void); + + void readImage(char const *xlink, Magick::Image *image); + void effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *document); + + Gtk::Widget* prefs_effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View * view, sigc::signal<void> * changeSignal); +}; + +}; /* namespace Bitmap */ +}; /* namespace Internal */ +}; /* namespace Extension */ +}; /* namespace Inkscape */ + +#endif /* __INKSCAPE_EXTENSION_INTERNAL_BITMAP_IMAGEMAGICK_H__ */ |
