43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qpaintdevice.h>
45 #include <QtGui/qcolor.h>
46 #include <QtCore/qnamespace.h>
47 #include <QtCore/qstring.h>
48 #include <QtCore/qsharedpointer.h>
49 #include <QtGui/qimage.h>
50 #include <QtGui/qtransform.h>
70 #ifndef QT_NO_IMAGEFORMAT_XPM
71 explicit QPixmap(
const char *
const xpm[]);
87 int devType()
const override;
95 static int defaultDepth();
104 QSizeF deviceIndependentSize()
const;
106 bool hasAlpha()
const;
109 #ifndef QT_NO_IMAGE_HEURISTIC_MASK
110 QBitmap createHeuristicMask(
bool clipTight =
true)
const;
148 bool isDetached()
const;
151 bool isQBitmap()
const;
158 int metric(PaintDeviceMetric)
const override;
167 void doInit(
int,
int,
int);
168 Q_DUMMY_COMPARISON_OPERATOR(
QPixmap)
176 #if !defined(QT_NO_DATASTREAM)
192 return copy(
QRect(ax, ay, awidth, aheight));
197 scroll(dx, dy,
QRect(ax, ay, awidth, aheight), exposed);
201 Qt::ImageConversionFlags
flags)
211 #if !defined(QT_NO_DATASTREAM)
216 #ifndef QT_NO_DEBUG_STREAM
The QBitmap class provides monochrome (1-bit depth) pixmaps.
The QByteArray class provides an array of bytes.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
The QIODevice class is the base interface class of all I/O devices in Qt.
The QImage class provides a hardware-independent image representation that allows direct access to th...
The QImageReader class provides a format independent interface for reading images from files or other...
The QImageWriter class provides a format independent interface for writing images to files or other d...
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
The QPainter class performs low-level painting on widgets and other paint devices.
The QPixmap class is an off-screen image representation that can be used as a paint device.
QPixmap scaled(int w, int h, Qt::AspectRatioMode aspectMode=Qt::IgnoreAspectRatio, Qt::TransformationMode mode=Qt::FastTransformation) const
bool operator!=(const QPixmap &) const =delete
static QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags=Qt::AutoColor)
void scroll(int dx, int dy, int x, int y, int width, int height, QRegion *exposed=nullptr)
bool operator==(const QPixmap &) const =delete
bool loadFromData(const uchar *buf, uint len, const char *format=nullptr, Qt::ImageConversionFlags flags=Qt::AutoColor)
QExplicitlySharedDataPointer< QPlatformPixmap > DataPtr
QPixmap(QPixmap &&other) noexcept
The QRect class defines a rectangle in the plane using integer precision.
The QRegion class specifies a clip region for a painter.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QString class provides a Unicode character string.
The QVariant class acts like a union for the most common Qt data types.
QT_BEGIN_INCLUDE_NAMESPACE typedef unsigned char uchar
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(Class)
GLuint64 GLenum void * handle
GLint GLint GLint GLint GLint x
[0]
GLint GLenum GLsizei GLsizei GLsizei depth
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei const GLchar * buf
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLint GLsizei GLsizei GLenum format
GLfloat GLfloat GLfloat GLfloat h
#define QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
#define Q_DECLARE_SHARED(TYPE)
QImage scaled(const QImage &image)
[0]