equal
deleted
inserted
replaced
62 |
62 |
63 QT_BEGIN_NAMESPACE |
63 QT_BEGIN_NAMESPACE |
64 |
64 |
65 class QEglContext; |
65 class QEglContext; |
66 class QVGImagePool; |
66 class QVGImagePool; |
|
67 class QImageReader; |
67 |
68 |
68 #if !defined(QT_NO_EGL) |
69 #if !defined(QT_NO_EGL) |
69 class QVGPixmapData; |
70 class QVGPixmapData; |
70 class QVGSharedContext; |
71 class QVGSharedContext; |
71 |
72 |
85 // Is this pixmap valid (i.e. non-zero in size)? |
86 // Is this pixmap valid (i.e. non-zero in size)? |
86 bool isValid() const; |
87 bool isValid() const; |
87 |
88 |
88 void resize(int width, int height); |
89 void resize(int width, int height); |
89 void fromImage(const QImage &image, Qt::ImageConversionFlags flags); |
90 void fromImage(const QImage &image, Qt::ImageConversionFlags flags); |
|
91 void fromImageReader(QImageReader *imageReader, |
|
92 Qt::ImageConversionFlags flags); |
|
93 bool fromFile(const QString &filename, const char *format, |
|
94 Qt::ImageConversionFlags flags); |
|
95 bool fromData(const uchar *buffer, uint len, const char *format, |
|
96 Qt::ImageConversionFlags flags); |
90 |
97 |
91 void fill(const QColor &color); |
98 void fill(const QColor &color); |
92 bool hasAlphaChannel() const; |
99 bool hasAlphaChannel() const; |
93 void setAlphaChannel(const QPixmap &alphaChannel); |
100 void setAlphaChannel(const QPixmap &alphaChannel); |
94 QImage toImage() const; |
101 QImage toImage() const; |
124 void fromNativeType(void* pixmap, NativeType type); |
131 void fromNativeType(void* pixmap, NativeType type); |
125 #endif |
132 #endif |
126 |
133 |
127 protected: |
134 protected: |
128 int metric(QPaintDevice::PaintDeviceMetric metric) const; |
135 int metric(QPaintDevice::PaintDeviceMetric metric) const; |
|
136 void createPixmapForImage(QImage &image, Qt::ImageConversionFlags flags, bool inPlace); |
129 |
137 |
130 #if defined(Q_OS_SYMBIAN) |
138 #if defined(Q_OS_SYMBIAN) |
131 void cleanup(); |
139 void cleanup(); |
132 #endif |
140 #endif |
133 |
141 |