45 #include <QtGui/qpixmap.h> 78 inline QT3_SUPPORT_CONSTRUCTOR
QBitmap(
int w,
int h,
bool clear);
79 inline QT3_SUPPORT_CONSTRUCTOR
QBitmap(
const QSize &,
bool clear);
80 QT3_SUPPORT_CONSTRUCTOR
QBitmap(
int w,
int h,
const uchar *bits,
bool isXbitmap=
false);
81 QT3_SUPPORT_CONSTRUCTOR
QBitmap(
const QSize &,
const uchar *bits,
bool isXbitmap=
false);
95 if (clear) this->
clear();
101 if (clear) this->
clear();
The QVariant class acts like a union for the most common Qt data types.
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
Format
The following image formats are available in Qt.
QPixmap & operator=(const QPixmap &)
Assigns the given pixmap to this pixmap and returns a reference to this pixmap.
QPixmap()
Constructs a null pixmap.
#define QT_END_NAMESPACE
This macro expands to.
QSize size() const
Returns the size of the pixmap.
The QMatrix class specifies 2D transformations of a coordinate system.
static void clear(QVariant::Private *d)
QPixmap transformed(const QMatrix &, Qt::TransformationMode mode=Qt::FastTransformation) const
This convenience function loads the matrix into a QTransform and calls the overloaded function...
The QString class provides a Unicode character string.
#define Q_DECLARE_SHARED(TYPE)
The QBitmap class provides monochrome (1-bit depth) pixmaps.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void swap(QBitmap &other)
Swaps bitmap other with this bitmap.
QBitmap()
Constructs a null bitmap.
The QImage class provides a hardware-independent image representation that allows direct access to th...
QExplicitlySharedDataPointer< QPixmapData > DataPtr
void fill(const QColor &fillColor=Qt::white)
Fills the pixmap with the given color.
The QPixmap class is an off-screen image representation that can be used as a paint device...
void clear()
Clears the bitmap, setting all its bits to Qt::color0.
void swap(QPixmap &other)
Swaps pixmap other with this pixmap.
The QSize class defines the size of a two-dimensional object using integer point precision.
static QString fileName(const QString &fileUrl)