4 /////////////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////////////
7 ImageObj::ImageObj( QGraphicsScene *scene) : QGraphicsPixmapItem (NULL,scene )
9 // cout << "Const ImageObj (scene)\n";
11 setShapeMode (QGraphicsPixmapItem::BoundingRectShape);
19 // cout << "Destr ImageObj\n";
22 void ImageObj::copy(ImageObj* other)
24 setVisibility (other->isVisible() );
25 setPixmap (other->QGraphicsPixmapItem::pixmap());
26 setPos (other->pos());
29 void ImageObj::setVisibility (bool v)
37 void ImageObj::save(const QString &fn, const char *format)
39 pixmap().save (fn,format,-1);
42 bool ImageObj::load (const QString &fn)
53 bool ImageObj::load (const QPixmap &pm)