index 5841ad86a881b86257ad706c0510bf5012bf2f72..f3565ef9f756899b5455f198f1c236b794434fd7 100644 (file)
#include "display/nr-filter-primitive.h"
#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:
static FilterPrimitive *create();
virtual ~FilterImage();
- virtual int render(FilterSlot &slot, Matrix const &trans);
+ 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__ */
/*