42 #ifndef QIMAGEWRITER_H 43 #define QIMAGEWRITER_H 45 #include <QtCore/qbytearray.h> 46 #include <QtCore/qlist.h> 47 #include <QtGui/qimageiohandler.h> 65 UnsupportedFormatError
79 void setFileName(
const QString &fileName);
82 void setQuality(
int quality);
85 void setCompression(
int compression);
86 int compression()
const;
88 void setGamma(
float gamma);
92 void setDescription(
const QString &description);
97 bool canWrite()
const;
98 bool write(
const QImage &image);
116 #endif // QIMAGEWRITER_H
ImageWriterError
This enum describes errors that can occur when writing images with QImageWriter.
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QImageWriter class provides a format independent interface for writing images to files or other d...
ImageOption
This enum describes the different options supported by QImageIOHandler.
The QImage class provides a hardware-independent image representation that allows direct access to th...
handler setDevice(device)
The QIODevice class is the base interface class of all I/O devices in Qt.
static QString fileName(const QString &fileUrl)