132 QPixmap transformed(const QTransform &, Qt::TransformationMode mode = Qt::FastTransformation) const; |
133 QPixmap transformed(const QTransform &, Qt::TransformationMode mode = Qt::FastTransformation) const; |
133 static QTransform trueMatrix(const QTransform &m, int w, int h); |
134 static QTransform trueMatrix(const QTransform &m, int w, int h); |
134 |
135 |
135 QImage toImage() const; |
136 QImage toImage() const; |
136 static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags = Qt::AutoColor); |
137 static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags = Qt::AutoColor); |
|
138 static QPixmap fromImageReader(QImageReader *imageReader, Qt::ImageConversionFlags flags = Qt::AutoColor); |
137 |
139 |
138 bool load(const QString& fileName, const char *format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); |
140 bool load(const QString& fileName, const char *format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); |
139 bool loadFromData(const uchar *buf, uint len, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); |
141 bool loadFromData(const uchar *buf, uint len, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); |
140 inline bool loadFromData(const QByteArray &data, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); |
142 inline bool loadFromData(const QByteArray &data, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); |
141 bool save(const QString& fileName, const char* format = 0, int quality = -1) const; |
143 bool save(const QString& fileName, const char* format = 0, int quality = -1) const; |
269 friend class QPainter; |
271 friend class QPainter; |
270 friend class QGLWidget; |
272 friend class QGLWidget; |
271 friend class QX11PaintEngine; |
273 friend class QX11PaintEngine; |
272 friend class QCoreGraphicsPaintEngine; |
274 friend class QCoreGraphicsPaintEngine; |
273 friend class QWidgetPrivate; |
275 friend class QWidgetPrivate; |
274 friend class QRasterPaintEngine; |
|
275 friend class QRasterBuffer; |
276 friend class QRasterBuffer; |
276 friend class QPixmapCacheEntry; |
|
277 #if !defined(QT_NO_DATASTREAM) |
277 #if !defined(QT_NO_DATASTREAM) |
278 friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QPixmap &); |
278 friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QPixmap &); |
279 #endif |
279 #endif |
280 friend Q_GUI_EXPORT qint64 qt_pixmap_id(const QPixmap &pixmap); |
280 friend Q_GUI_EXPORT qint64 qt_pixmap_id(const QPixmap &pixmap); |
281 |
281 |