1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #ifndef QBITMAP_H
- #define QBITMAP_H
- #include <QtGui/qpixmap.h>
- QT_BEGIN_NAMESPACE
- class QVariant;
- class Q_GUI_EXPORT QBitmap : public QPixmap
- {
- public:
- QBitmap();
- QBitmap(const QPixmap &);
- QBitmap(int w, int h);
- explicit QBitmap(const QSize &);
- explicit QBitmap(const QString &fileName, const char *format = Q_NULLPTR);
-
- #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
- QBitmap(const QBitmap &other) : QPixmap(other) {}
-
- QBitmap &operator=(const QBitmap &other) { QPixmap::operator=(other); return *this; }
- QBitmap &operator=(QBitmap &&other) Q_DECL_NOTHROW { QPixmap::operator=(std::move(other)); return *this; }
- ~QBitmap();
- #endif
- QBitmap &operator=(const QPixmap &);
- inline void swap(QBitmap &other) { QPixmap::swap(other); }
- operator QVariant() const;
- inline void clear() { fill(Qt::color0); }
- static QBitmap fromImage(const QImage &image, Qt::ImageConversionFlags flags = Qt::AutoColor);
- static QBitmap fromData(const QSize &size, const uchar *bits,
- QImage::Format monoFormat = QImage::Format_MonoLSB);
- QBitmap transformed(const QMatrix &) const;
- QBitmap transformed(const QTransform &matrix) const;
- typedef QExplicitlySharedDataPointer<QPlatformPixmap> DataPtr;
- };
- Q_DECLARE_SHARED(QBitmap)
- QT_END_NAMESPACE
- #endif
|