equal
deleted
inserted
replaced
139 bool loadFromData(const uchar *buf, uint len, 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); |
140 inline bool loadFromData(const QByteArray &data, 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); |
141 bool save(const QString& fileName, const char* format = 0, int quality = -1) const; |
141 bool save(const QString& fileName, const char* format = 0, int quality = -1) const; |
142 bool save(QIODevice* device, const char* format = 0, int quality = -1) const; |
142 bool save(QIODevice* device, const char* format = 0, int quality = -1) const; |
143 |
143 |
|
144 bool convertFromImage(const QImage &img, Qt::ImageConversionFlags flags = Qt::AutoColor); |
|
145 |
144 #if defined(Q_WS_WIN) |
146 #if defined(Q_WS_WIN) |
145 enum HBitmapFormat { |
147 enum HBitmapFormat { |
146 NoAlpha, |
148 NoAlpha, |
147 PremultipliedAlpha, |
149 PremultipliedAlpha, |
148 Alpha |
150 Alpha |
222 QT3_SUPPORT bool loadFromData(const uchar *buf, uint len, const char* format, ColorMode mode); |
224 QT3_SUPPORT bool loadFromData(const uchar *buf, uint len, const char* format, ColorMode mode); |
223 QT3_SUPPORT_CONSTRUCTOR QPixmap(const QImage& image); |
225 QT3_SUPPORT_CONSTRUCTOR QPixmap(const QImage& image); |
224 QT3_SUPPORT QPixmap &operator=(const QImage &); |
226 QT3_SUPPORT QPixmap &operator=(const QImage &); |
225 inline QT3_SUPPORT QImage convertToImage() const { return toImage(); } |
227 inline QT3_SUPPORT QImage convertToImage() const { return toImage(); } |
226 QT3_SUPPORT bool convertFromImage(const QImage &, ColorMode mode); |
228 QT3_SUPPORT bool convertFromImage(const QImage &, ColorMode mode); |
227 QT3_SUPPORT bool convertFromImage(const QImage &img, Qt::ImageConversionFlags flags = Qt::AutoColor) |
|
228 { (*this) = fromImage(img, flags); return !isNull(); } |
|
229 inline QT3_SUPPORT operator QImage() const { return toImage(); } |
229 inline QT3_SUPPORT operator QImage() const { return toImage(); } |
230 inline QT3_SUPPORT QPixmap xForm(const QMatrix &matrix) const { return transformed(QTransform(matrix)); } |
230 inline QT3_SUPPORT QPixmap xForm(const QMatrix &matrix) const { return transformed(QTransform(matrix)); } |
231 inline QT3_SUPPORT bool selfMask() const { return false; } |
231 inline QT3_SUPPORT bool selfMask() const { return false; } |
232 private: |
232 private: |
233 void resize_helper(const QSize &s); |
233 void resize_helper(const QSize &s); |