QtPBFImagePlugin/src/pbfhandler.h
2018-12-07 00:50:11 +01:00

32 lines
582 B
C++

#ifndef PBFHANDLER_H
#define PBFHANDLER_H
#include <QImageIOHandler>
#include <QVariant>
#include <QSize>
class QImage;
class Style;
class PBFHandler : public QImageIOHandler
{
public:
PBFHandler(const Style *style) : _style(style) {}
~PBFHandler() {}
bool canRead() const;
bool read(QImage *image);
QVariant option(ImageOption option) const;
bool supportsOption(ImageOption option) const;
void setOption(ImageOption option, const QVariant &value);
static bool canRead(QIODevice *device);
private:
const Style *_style;
QSize _scaledSize;
};
#endif // PBFHANDLER_H