#ifndef PYTHONQTWRAPPER_QIMAGEWRITER_H #define PYTHONQTWRAPPER_QIMAGEWRITER_H #include #include #include #include #include #include #include #include #include class PythonQtWrapper_QImageWriter : public QObject { Q_OBJECT public: Q_ENUMS(ImageWriterError ) enum ImageWriterError{ UnknownError = QImageWriter::UnknownError, DeviceError = QImageWriter::DeviceError, UnsupportedFormatError = QImageWriter::UnsupportedFormatError}; public slots: QImageWriter* new_QImageWriter(); QImageWriter* new_QImageWriter(QIODevice* device, const QByteArray& format); QImageWriter* new_QImageWriter(const QString& fileName, const QByteArray& format = QByteArray()); void delete_QImageWriter(QImageWriter* obj) { delete obj; } void setFileName(QImageWriter* theWrappedObject, const QString& fileName); void setCompression(QImageWriter* theWrappedObject, int compression); int compression(QImageWriter* theWrappedObject) const; QList static_QImageWriter_supportedImageFormats(); QImageWriter::ImageWriterError error(QImageWriter* theWrappedObject) const; QIODevice* device(QImageWriter* theWrappedObject) const; QByteArray format(QImageWriter* theWrappedObject) const; void setDevice(QImageWriter* theWrappedObject, QIODevice* device); bool supportsOption(QImageWriter* theWrappedObject, QImageIOHandler::ImageOption option) const; QString errorString(QImageWriter* theWrappedObject) const; void setFormat(QImageWriter* theWrappedObject, const QByteArray& format); QString fileName(QImageWriter* theWrappedObject) const; int quality(QImageWriter* theWrappedObject) const; float gamma(QImageWriter* theWrappedObject) const; void setGamma(QImageWriter* theWrappedObject, float gamma); void setText(QImageWriter* theWrappedObject, const QString& key, const QString& text); bool canWrite(QImageWriter* theWrappedObject) const; bool write(QImageWriter* theWrappedObject, const QImage& image); void setQuality(QImageWriter* theWrappedObject, int quality); }; #endif // PYTHONQTWRAPPER_QIMAGEWRITER_H