19#include <QtGui/private/qtguiglobal_p.h>
20#include "QtGui/qimageiohandler.h"
22#ifndef QT_NO_IMAGEFORMAT_BMP
78 bool read(QImage *image)
override;
79 bool write(
const QImage &image)
override;
81 static bool canRead(QIODevice *device);
84 void setOption(ImageOption option,
const QVariant &value)
override;
89 inline QByteArray formatName()
const;
100 BMP_FILEHDR fileHeader;
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
QVariant option(ImageOption option) const override
Returns the value assigned to option as a QVariant.
QBmpHandler(InternalFormat fmt=BmpFormat)
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...
static bool canRead(QIODevice *device)
bool write(const QImage &image) override
Writes the image image to the assigned device.
void setOption(ImageOption option, const QVariant &value) override
Sets the option option with the value value.
bool read(QImage *image) override
Read an image from the device, and stores it in image.