1/**
2* QImageIO Routines to read/write JPEG2000 images.
3* copyright (c) 2002 Michael Ritzert <michael@ritzert.de>
4*
5* This library is distributed under the conditions of the GNU LGPL.
6*/
7#ifndef KIMG_JP2_H
8#define KIMG_JP2_H
9
10#include <QtGui/QImageIOPlugin>
11
12class JP2Handler : public QImageIOHandler
13{
14public:
15 JP2Handler();
16 virtual ~JP2Handler();
17
18 bool canRead() const;
19 bool read(QImage *image);
20 bool write(const QImage &image);
21
22 QByteArray name() const;
23 bool supportsOption(ImageOption option) const;
24 QVariant option(ImageOption option) const;
25 void setOption(ImageOption option, const QVariant &value);
26
27 static bool canRead(QIODevice *device);
28private:
29 int quality;
30};
31
32
33#endif
34