1 #ifndef __NR_FILTER_IMAGE_H__
2 #define __NR_FILTER_IMAGE_H__
4 /*
5 * feImage filter primitive renderer
6 *
7 * Authors:
8 * Niko Kiirala <niko@kiirala.com>
9 *
10 * Copyright (C) 2007 authors
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include "display/nr-filter-primitive.h"
16 #include "display/nr-filter-slot.h"
17 #include <gtkmm.h>
19 namespace NR {
21 class FilterImage : public FilterPrimitive {
22 public:
23 FilterImage();
24 static FilterPrimitive *create();
25 virtual ~FilterImage();
27 virtual int render(FilterSlot &slot, Matrix const &trans);
28 void set_region(SVGLength x, SVGLength y, SVGLength width, SVGLength height);
29 private:
30 guint8* image_pixbuf;
31 Glib::RefPtr<Gdk::Pixbuf> image;
32 int width, height;
33 float feImageX,feImageY,feImageWidth,feImageHeight;
34 };
36 } /* namespace NR */
38 #endif /* __NR_FILTER_IMAGE_H__ */
39 /*
40 Local Variables:
41 mode:c++
42 c-file-style:"stroustrup"
43 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
44 indent-tabs-mode:nil
45 fill-column:99
46 End:
47 */
48 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :