42 #ifndef QPIXMAPDATA_VG_P_H 43 #define QPIXMAPDATA_VG_P_H 56 #include <QtGui/private/qpixmap_raster_p.h> 57 #include <QtGui/private/qvolatileimage_p.h> 60 #if defined(Q_OS_SYMBIAN) 70 #if !defined(QT_NO_EGL) 92 void resize(
int width,
int height);
95 Qt::ImageConversionFlags flags);
97 Qt::ImageConversionFlags flags);
99 Qt::ImageConversionFlags flags);
117 virtual void detachImageFromPool();
125 virtual void hibernate();
129 virtual void reclaimImages();
136 virtual void ensureReadback(
bool readOnly)
const;
140 #if defined(Q_OS_SYMBIAN) 142 void* toNativeType(NativeType type);
143 void fromNativeType(
void* pixmap, NativeType type);
144 bool initFromNativeImageHandle(
void *handle,
const QString &type);
145 void createFromNativeImageHandleProvider();
146 void releaseNativeImageHandle();
151 void createPixmapForImage(
QImage &image, Qt::ImageConversionFlags flags,
bool inPlace);
153 #if defined(Q_OS_SYMBIAN) 164 #if !defined(QT_NO_EGL) 181 #if !defined(QT_NO_EGL) 185 #if defined(Q_OS_SYMBIAN) 187 void *nativeImageHandle;
191 void forceToImage(
bool allowReadback =
true);
196 void destroyImageAndContext();
197 void destroyImages();
virtual QPixmapData * createCompatiblePixmapData() const
The QColor class provides colors based on RGB, HSV or CMYK values.
void qt_vg_unregister_pixmap(QVGPixmapData *pd)
virtual bool fromFile(const QString &filename, const char *format, Qt::ImageConversionFlags flags)
Format
The following image formats are available in Qt.
#define QT_END_NAMESPACE
This macro expands to.
virtual void fill(const QColor &color)=0
virtual void resize(int width, int height)=0
virtual QPaintEngine * paintEngine() const =0
The QString class provides a Unicode character string.
virtual bool fromData(const uchar *buffer, uint len, const char *format, Qt::ImageConversionFlags flags)
virtual QImage toImage() const =0
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void fromImage(const QImage &image, Qt::ImageConversionFlags flags)=0
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const =0
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
void qt_vg_hibernate_pixmaps(QVGSharedContext *context)
The QImageReader class provides a format independent interface for reading images from files or other...
virtual bool hasAlphaChannel() const =0
static VGImage toVGImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
void qt_vg_register_pixmap(QVGPixmapData *pd)
virtual void copy(const QPixmapData *data, const QRect &rect)
The QRect class defines a rectangle in the plane using integer precision.
The QPixmap class is an off-screen image representation that can be used as a paint device...
virtual QImage * buffer()
The QSize class defines the size of a two-dimensional object using integer point precision.
virtual void setAlphaChannel(const QPixmap &alphaChannel)
virtual void fromImageReader(QImageReader *imageReader, Qt::ImageConversionFlags flags)