nr-filter-image.h revision aca3b339a427a3f0a8a6eec08e797e3dc458815f
#ifndef __NR_FILTER_IMAGE_H__
#define __NR_FILTER_IMAGE_H__
/*
* feImage filter primitive renderer
*
* Authors:
* Niko Kiirala <niko@kiirala.com>
*
* Copyright (C) 2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/nr-filter-primitive.h"
#include "display/nr-filter-slot.h"
#include <gtkmm.h>
namespace NR {
class FilterImage : public FilterPrimitive {
public:
FilterImage();
static FilterPrimitive *create();
virtual ~FilterImage();
virtual int render(FilterSlot &slot, Matrix const &trans);
void set_region(SVGLength x, SVGLength y, SVGLength width, SVGLength height);
private:
guint8* image_pixbuf;
Glib::RefPtr<Gdk::Pixbuf> image;
int width, height;
float feImageX,feImageY,feImageWidth,feImageHeight;
};
} /* namespace NR */
#endif /* __NR_FILTER_IMAGE_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :