blob: ad0120e8d9859ac4248bccda33bbdb856bf4811e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef MSOLIMAGEIOHANDLER_H
#define MSOLIMAGEIOHANDLER_H
#include <QtGui/QImageIOHandler>
class MSOLImageIOHandler : public QImageIOHandler
{
public:
MSOLImageIOHandler();
bool canRead() const Q_DECL_OVERRIDE;
bool read(QImage *image) Q_DECL_OVERRIDE;
bool write(const QImage &image) Q_DECL_OVERRIDE;
bool supportsOption(ImageOption option) const Q_DECL_OVERRIDE;
QVariant option(ImageOption option) const Q_DECL_OVERRIDE;
void setOption(ImageOption option, const QVariant &value) Q_DECL_OVERRIDE;
};
QByteArray convertImageToMsol(const QImage &img);
QImage convertMsolToImage(const QByteArray &msol);
QImage ditherForMsol(const QImage &src);
#endif // MSOLIMAGEIOHANDLER_H
|