blob: 4afdcfbb497dd7597504bf368c6283f80b63a15e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#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;
char** _caches;
unsigned* _cacheLengths;
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__ */
|