#include <qpixmap.h>

Public Types |
|
|
typedef QExplicitlySharedDataPointer < QPixmapData > |
DataPtr |
Public Member Functions |
|
| QPixmap () | |
| QPixmap (QPixmapData *data) | |
| QPixmap (int w, int h) | |
| QPixmap (const QSize &) | |
| QPixmap (const QString &fileName, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor) | |
| QPixmap (const char *const xpm[]) | |
| QPixmap (const QPixmap &) | |
| ~QPixmap () | |
| QPixmap & | operator= (const QPixmap &) |
| operator QVariant () const | |
| bool | isNull () const |
| int | devType () const |
| int | width () const |
| int | height () const |
| QSize | size () const |
| QRect | rect () const |
| int | depth () const |
| void | fill (const QColor &fillColor=Qt::white) |
| void | fill (const QWidget *widget, const QPoint &ofs) |
| void | fill (const QWidget *widget, int xofs, int yofs) |
| QBitmap | mask () const |
| void | setMask (const QBitmap &) |
| QPixmap | alphaChannel () const |
| void | setAlphaChannel (const QPixmap &) |
| bool | hasAlpha () const |
| bool | hasAlphaChannel () const |
| QBitmap | createHeuristicMask (bool clipTight=true) const |
| QBitmap | createMaskFromColor (const QColor &maskColor) const |
| QBitmap | createMaskFromColor (const QColor &maskColor, Qt::MaskMode mode) const |
| QPixmap | scaled (int w, int h, Qt::AspectRatioMode aspectMode=Qt::IgnoreAspectRatio, Qt::TransformationMode mode=Qt::FastTransformation) const |
| QPixmap | scaled (const QSize &s, Qt::AspectRatioMode aspectMode=Qt::IgnoreAspectRatio, Qt::TransformationMode mode=Qt::FastTransformation) const |
| QPixmap | scaledToWidth (int w, Qt::TransformationMode mode=Qt::FastTransformation) const |
| QPixmap | scaledToHeight (int h, Qt::TransformationMode mode=Qt::FastTransformation) const |
| QPixmap | transformed (const QMatrix &, Qt::TransformationMode mode=Qt::FastTransformation) const |
| QPixmap | transformed (const QTransform &, Qt::TransformationMode mode=Qt::FastTransformation) const |
| QImage | toImage () const |
| bool | load (const QString &fileName, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| bool | loadFromData (const uchar *buf, uint len, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| bool | loadFromData (const QByteArray &data, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| bool | save (const QString &fileName, const char *format=0, int quality=-1) const |
| bool | save (QIODevice *device, const char *format=0, int quality=-1) const |
| bool | convertFromImage (const QImage &img, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| QPixmap | copy (int x, int y, int width, int height) const |
| QPixmap | copy (const QRect &rect=QRect()) const |
| void | scroll (int dx, int dy, int x, int y, int width, int height, QRegion *exposed=0) |
| void | scroll (int dx, int dy, const QRect &rect, QRegion *exposed=0) |
| int | serialNumber () const |
| qint64 | cacheKey () const |
| bool | isDetached () const |
| void | detach () |
| bool | isQBitmap () const |
| QPaintEngine * | paintEngine () const |
| bool | operator! () const |
| QPixmapData * | pixmapData () const |
| DataPtr & | data_ptr () |
Static Public Member Functions |
|
| static int | defaultDepth () |
| static QPixmap | grabWindow (WId, int x=0, int y=0, int w=-1, int h=-1) |
| static QPixmap | grabWidget (QWidget *widget, const QRect &rect) |
| static QPixmap | grabWidget (QWidget *widget, int x=0, int y=0, int w=-1, int h=-1) |
| static QMatrix | trueMatrix (const QMatrix &m, int w, int h) |
| static QTransform | trueMatrix (const QTransform &m, int w, int h) |
| static QPixmap | fromImage (const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor) |
| static QPixmap | fromImageReader (QImageReader *imageReader, Qt::ImageConversionFlags flags=Qt::AutoColor) |
Protected Member Functions |
|
| int | metric (PaintDeviceMetric) const |
Friends |
|
| class | QPixmapData |
| class | QX11PixmapData |
| class | QMacPixmapData |
| class | QS60PixmapData |
| class | QBitmap |
| class | QPaintDevice |
| class | QPainter |
| class | QGLWidget |
| class | QX11PaintEngine |
| class | QCoreGraphicsPaintEngine |
| class | QWidgetPrivate |
| class | QRasterBuffer |
| Q_GUI_EXPORT QDataStream & | operator>> (QDataStream &, QPixmap &) |
| Q_GUI_EXPORT qint64 | qt_pixmap_id (const QPixmap &pixmap) |
| typedef QExplicitlySharedDataPointer<QPixmapData> DataPtr |
| QPixmap | ( | ) |
| QPixmap | ( | QPixmapData * | data | ) | [explicit] |
| QPixmap | ( | int | w, |
| int | h | ||
| ) |
| QPixmap | ( | const char *const | xpm[] | ) |
| ~QPixmap | ( | ) |
| bool isNull | ( | ) | const |
| int devType | ( | ) | const [virtual] |
Reimplemented from QPaintDevice.
| int width | ( | ) | const |
Reimplemented from QPaintDevice.
| int height | ( | ) | const |
Reimplemented from QPaintDevice.
| QSize size | ( | ) | const |
| QRect rect | ( | ) | const |
| int depth | ( | ) | const |
Reimplemented from QPaintDevice.
| static int defaultDepth | ( | ) | [static] |
| void fill | ( | const QColor & | fillColor =
Qt::white |
) |
| void fill | ( | const QWidget * | widget, |
| int | xofs, | ||
| int | yofs | ||
| ) | [inline] |
| QBitmap mask | ( | ) | const |
| void setMask | ( | const QBitmap & | ) |
| QPixmap alphaChannel | ( | ) | const |
| void setAlphaChannel | ( | const QPixmap & | ) |
| bool hasAlpha | ( | ) | const |
| bool hasAlphaChannel | ( | ) | const |
| QBitmap createHeuristicMask | ( | bool | clipTight = true |
) | const |
| QBitmap createMaskFromColor | ( | const QColor & | maskColor, |
| Qt::MaskMode | mode | ||
| ) | const |
| static QPixmap grabWidget | ( | QWidget * | widget, |
| int | x = 0, |
||
| int | y = 0, |
||
| int | w = -1, |
||
| int | h = -1 |
||
| ) | [inline, static] |
Definition at line 120 of file qpixmap.h.
{ return grabWidget(widget, QRect(x, y, w, h)); }
| QPixmap scaled | ( | int | w, |
| int | h, | ||
| Qt::AspectRatioMode | aspectMode =
Qt::IgnoreAspectRatio, |
||
| Qt::TransformationMode | mode =
Qt::FastTransformation |
||
| ) | const [inline] |
| QPixmap scaled | ( | const QSize & | s, |
| Qt::AspectRatioMode | aspectMode =
Qt::IgnoreAspectRatio, |
||
| Qt::TransformationMode | mode =
Qt::FastTransformation |
||
| ) | const |
| QPixmap scaledToWidth | ( | int | w, |
| Qt::TransformationMode | mode =
Qt::FastTransformation |
||
| ) | const |
| QPixmap scaledToHeight | ( | int | h, |
| Qt::TransformationMode | mode =
Qt::FastTransformation |
||
| ) | const |
| QPixmap transformed | ( | const QMatrix & | , |
| Qt::TransformationMode | mode =
Qt::FastTransformation |
||
| ) | const |
| QPixmap transformed | ( | const QTransform & | , |
| Qt::TransformationMode | mode =
Qt::FastTransformation |
||
| ) | const |
| static QTransform trueMatrix | ( | const QTransform & | m, |
| int | w, | ||
| int | h | ||
| ) | [static] |
| QImage toImage | ( | ) | const |
| static QPixmap fromImage | ( | const QImage & | image, |
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) | [static] |
Reimplemented in QBitmap.
| static QPixmap fromImageReader | ( | QImageReader * | imageReader, |
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) | [static] |
| bool load | ( | const QString & | fileName, |
| const char * | format = 0, |
||
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) |
| bool loadFromData | ( | const uchar * | buf, |
| uint | len, | ||
| const char * | format = 0, |
||
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) |
| bool loadFromData | ( | const QByteArray & | data, |
| const char * | format = 0, |
||
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) | [inline] |
Definition at line 302 of file qpixmap.h.
{
return loadFromData(reinterpret_cast<const uchar *>(buf.constData()), buf.size(), format, flags);
}
| bool save | ( | const QString & | fileName, |
| const char * | format = 0, |
||
| int | quality = -1 |
||
| ) | const |
| bool save | ( | QIODevice * | device, |
| const char * | format = 0, |
||
| int | quality = -1 |
||
| ) | const |
| bool convertFromImage | ( | const QImage & | img, |
| Qt::ImageConversionFlags | flags =
Qt::AutoColor |
||
| ) |
| QPixmap copy | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) | const [inline] |
| void scroll | ( | int | dx, |
| int | dy, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| QRegion * | exposed = 0 |
||
| ) | [inline] |
| int serialNumber | ( | ) | const |
| qint64 cacheKey | ( | ) | const |
| bool isDetached | ( | ) | const |
| void detach | ( | ) |
| bool isQBitmap | ( | ) | const |
| QPaintEngine* paintEngine | ( | ) | const [virtual] |
Implements QPaintDevice.
| bool operator! | ( | void | ) | const [inline] |
| int metric | ( | PaintDeviceMetric | ) | const [protected, virtual] |
Reimplemented from QPaintDevice.
| QPixmapData* pixmapData | ( | ) | const |
| DataPtr& data_ptr | ( | ) | [inline] |
friend class QPixmapData
[friend] |
friend class QX11PixmapData
[friend] |
friend class QMacPixmapData
[friend] |
friend class QS60PixmapData
[friend] |
friend class QBitmap [friend] |
friend class QPaintDevice
[friend] |
friend class QPainter [friend] |
Reimplemented from QPaintDevice.
friend class QGLWidget [friend] |
friend class QX11PaintEngine
[friend] |
Reimplemented from QPaintDevice.
friend class QCoreGraphicsPaintEngine
[friend] |
friend class QWidgetPrivate
[friend] |
friend class QRasterBuffer
[friend] |
| Q_GUI_EXPORT QDataStream& operator>> | ( | QDataStream & | , |
| QPixmap & | |||
| ) | [friend] |