Go to the documentation of this file.00001 #ifndef IMAGE_H
00002 #define IMAGE_H
00003
00004 #include <QGraphicsItem>
00005 #include <QImage>
00006
00007
00008 class Image : public QGraphicsItem
00009
00010 {
00011 public:
00012 Image();
00013
00014 enum { Type = UserType + 1 };
00015 int type() const { return Type; }
00016
00017
00018 QRectF boundingRect() const;
00019
00020 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00021
00022
00023 void setImage(QImage& image);
00024 void saveImage();
00025 private :
00026 QImage image;
00027
00028 };
00029
00030 #endif // IMAGE_H