2014-11-13 01:04:59 +02:00
|
|
|
/**
|
|
|
|
* QImageIO Routines to read/write JPEG2000 images.
|
|
|
|
* copyright (c) 2002 Michael Ritzert <michael@ritzert.de>
|
|
|
|
*
|
|
|
|
* This library is distributed under the conditions of the GNU LGPL.
|
|
|
|
*/
|
|
|
|
#ifndef KIMG_JP2_H
|
|
|
|
#define KIMG_JP2_H
|
|
|
|
|
2015-08-11 05:56:07 +03:00
|
|
|
#include <QtGui/qimageiohandler.h>
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
class JP2Handler : public QImageIOHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
JP2Handler();
|
|
|
|
virtual ~JP2Handler();
|
|
|
|
|
|
|
|
bool canRead() const;
|
|
|
|
bool read(QImage *image);
|
|
|
|
bool write(const QImage &image);
|
|
|
|
|
|
|
|
QByteArray name() const;
|
|
|
|
bool supportsOption(ImageOption option) const;
|
|
|
|
QVariant option(ImageOption option) const;
|
|
|
|
void setOption(ImageOption option, const QVariant &value);
|
|
|
|
|
|
|
|
static bool canRead(QIODevice *device);
|
|
|
|
private:
|
|
|
|
int quality;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|