70 |
70 |
71 QPixmapData *createCompatiblePixmapData() const; |
71 QPixmapData *createCompatiblePixmapData() const; |
72 |
72 |
73 void resize(int width, int height); |
73 void resize(int width, int height); |
74 void fromFile(const QString &filename, Qt::ImageConversionFlags flags); |
74 void fromFile(const QString &filename, Qt::ImageConversionFlags flags); |
|
75 bool fromData(const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags); |
75 void fromImage(const QImage &image, Qt::ImageConversionFlags flags); |
76 void fromImage(const QImage &image, Qt::ImageConversionFlags flags); |
|
77 void fromImageReader(QImageReader *imageReader, Qt::ImageConversionFlags flags); |
76 |
78 |
|
79 void copy(const QPixmapData *data, const QRect &rect); |
77 bool scroll(int dx, int dy, const QRect &rect); |
80 bool scroll(int dx, int dy, const QRect &rect); |
78 void fill(const QColor &color); |
81 void fill(const QColor &color); |
79 void setMask(const QBitmap &mask); |
82 void setMask(const QBitmap &mask); |
80 bool hasAlphaChannel() const; |
83 bool hasAlphaChannel() const; |
81 void setAlphaChannel(const QPixmap &alphaChannel); |
84 void setAlphaChannel(const QPixmap &alphaChannel); |
82 QImage toImage() const; |
85 QImage toImage() const; |
|
86 QImage toImage(const QRect &rect) const; |
83 QPaintEngine* paintEngine() const; |
87 QPaintEngine* paintEngine() const; |
84 QImage* buffer(); |
88 QImage* buffer(); |
85 |
89 |
86 protected: |
90 protected: |
87 int metric(QPaintDevice::PaintDeviceMetric metric) const; |
91 int metric(QPaintDevice::PaintDeviceMetric metric) const; |
|
92 void createPixmapForImage(QImage &sourceImage, Qt::ImageConversionFlags flags, bool inPlace); |
|
93 void setImage(const QImage &image); |
88 QImage image; |
94 QImage image; |
89 |
95 |
90 private: |
96 private: |
91 friend class QPixmap; |
97 friend class QPixmap; |
92 friend class QBitmap; |
98 friend class QBitmap; |