#ifndef _PAYSAGES_QT_PREVIEWOSD_H_ #define _PAYSAGES_QT_PREVIEWOSD_H_ #include class PreviewOsdItem:public QImage { public: PreviewOsdItem(int width, int height); void setLocation(double x, double y); inline double xlocation() {return _xlocation;}; inline double ylocation() {return _ylocation;}; private: double _xlocation; double _ylocation; }; class PreviewOsd { public: PreviewOsd(); ~PreviewOsd(); static PreviewOsd* getInstance(QString name); PreviewOsdItem* newItem(int width, int height); PreviewOsdItem* newItem(QImage image); void apply(QImage* mask, double xoffset, double yoffset, double scaling); private: QVector _items; }; #endif