Code

Change desktop coordinate system to match SVG (LP #170049)
[inkscape.git] / src / display / nr-filter-image.h
index 9d4057826de38f04f17b8154233017e8300624ef..f3565ef9f756899b5455f198f1c236b794434fd7 100644 (file)
 #include "display/nr-filter-slot.h"
 #include "display/nr-filter-units.h"
 #include <gtkmm.h>
+#include "sp-item.h"
 
-namespace NR {
+namespace Inkscape {
+namespace Filters {
 
 class FilterImage : public FilterPrimitive {
 public:
@@ -27,15 +29,24 @@ public:
 
     virtual int render(FilterSlot &slot, FilterUnits const &units);
     virtual FilterTraits get_input_traits();
+    void set_document( SPDocument *document );
+    void set_href(const gchar *href);
     void set_region(SVGLength x, SVGLength y, SVGLength width, SVGLength height);
+    bool from_element;
+    SPItem* SVGElem;
+
 private:
+    SPDocument *document;
+    gchar *feImageHref;
     guint8* image_pixbuf;
     Glib::RefPtr<Gdk::Pixbuf> image;
-    int width, height;
+    int width, height, rowstride;
     float feImageX,feImageY,feImageWidth,feImageHeight;
+    bool has_alpha;
 };
 
-} /* namespace NR */
+} /* namespace Filters */
+} /* namespace Inkscape */
 
 #endif /* __NR_FILTER_IMAGE_H__ */
 /*