18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtGui/qimageiohandler.h"
21#ifndef QT_NO_IMAGEFORMAT_PNG
25class QPngHandlerPrivate;
33 bool read(QImage *image)
override;
34 bool write(
const QImage &image)
override;
37 void setOption(ImageOption option,
const QVariant &value)
override;
40 static bool canRead(QIODevice *device);
void setOption(ImageOption option, const QVariant &value) override
Sets the option option with the value value.
bool write(const QImage &image) override
Writes the image image to the assigned device.
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.
bool read(QImage *image) override
Read an image from the device, and stores it in image.
static bool canRead(QIODevice *device)
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...