src/gui/image/qpixmap.h File Reference

#include <QtGui/qpaintdevice.h>
#include <QtGui/qcolor.h>
#include <QtCore/qnamespace.h>
#include <QtCore/qstring.h>
#include <QtGui/qimage.h>

Include dependency graph for qpixmap.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QPixmap
 The QPixmap class is an off-screen image representation that can be used as a paint device. More...

Functions

Q_GUI_EXPORT QDataStreamoperator<< (QDataStream &, const QPixmap &)
Q_GUI_EXPORT QDataStreamoperator>> (QDataStream &, QPixmap &)


Function Documentation

Q_GUI_EXPORT QDataStream& operator<< ( QDataStream ,
const QPixmap  
) [related]

Definition at line 618 of file qpixmap_raster.cpp.

00619 {
00620     s << pixmap.toImage();
00621     return s;
00622 }

Q_GUI_EXPORT QDataStream& operator>> ( QDataStream ,
QPixmap  
)

Definition at line 624 of file qpixmap_raster.cpp.

00625 {
00626     QImage img;
00627     s >> img;
00628     if (pixmap.data->type == QPixmap::BitmapType)
00629         pixmap = QBitmap::fromImage(img);
00630     else
00631         pixmap = QPixmap::fromImage(img);
00632     return s;
00633 }


Generated on Thu Mar 15 13:20:13 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1