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


corobot_teleop
Author(s): Morgan Cormier/Gang Li/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:39:41