42 #ifndef QPIXMAPDATA_P_H 43 #define QPIXMAPDATA_P_H 56 #include <QtGui/qpixmap.h> 57 #include <QtCore/qatomic.h> 60 #include <QtGui/private/qvolatileimage_p.h> 75 #if defined(Q_OS_SYMBIAN) 80 NativeImageHandleProvider
90 virtual QPixmapData *createCompatiblePixmapData()
const;
92 virtual void resize(
int width,
int height) = 0;
93 virtual void fromImage(
const QImage &image,
94 Qt::ImageConversionFlags flags) = 0;
96 Qt::ImageConversionFlags flags);
98 virtual bool fromFile(
const QString &filename,
const char *
format,
99 Qt::ImageConversionFlags flags);
100 virtual bool fromData(
const uchar *buffer,
uint len,
const char *
format,
101 Qt::ImageConversionFlags flags);
104 virtual bool scroll(
int dx,
int dy,
const QRect &rect);
107 virtual void fill(
const QColor &color) = 0;
109 virtual void setMask(
const QBitmap &mask);
110 virtual bool hasAlphaChannel()
const = 0;
113 virtual void setAlphaChannel(
const QPixmap &alphaChannel);
114 virtual QPixmap alphaChannel()
const;
115 virtual QImage toImage()
const = 0;
126 inline int width()
const {
return w; }
131 inline bool isNull()
const {
return is_null; }
134 if (classKey >= 1024)
135 classKey = -(classKey >> 10);
136 return ((((
qint64) classKey) << 56)
137 | (((
qint64) ser_no) << 32)
141 #if defined(Q_OS_SYMBIAN) 143 virtual void* toNativeType(NativeType
type);
144 virtual void fromNativeType(
void* pixmap, NativeType type);
153 void setSerialNumber(
int serNo);
162 friend class QSymbianRasterPixmapData;
176 # define QT_XFORM_TYPE_MSBFIRST 0 177 # define QT_XFORM_TYPE_LSBFIRST 1 178 # if defined(Q_WS_WIN) 179 # define QT_XFORM_TYPE_WINDOWSPIXMAP 2 181 extern bool qt_xForm_helper(
const QTransform&,
int,
int,
int,
uchar*,
int,
int,
int,
const uchar*,
int,
int,
int);
185 #endif // QPIXMAPDATA_P_H The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
virtual QPixmapData * runtimeData() const
The QAtomicInt class provides platform-independent atomic operations on integers. ...
static Expression::Ptr create(Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo)
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
The QString class provides a Unicode character string.
PixelType pixelType() const
The QBitmap class provides monochrome (1-bit depth) pixmaps.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
The QImageReader class provides a format independent interface for reading images from files or other...
QT_DEPRECATED int numColors() const
bool qt_xForm_helper(const QTransform &, int, int, int, uchar *, int, int, int, const uchar *, int, int, int)
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...