<class name="QImageWriter" doc="/**
&lt;p&gt;The &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; class provides a format independent interface for writing images to files or other devices.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; supports setting format specific options, such as the gamma level, compression level and quality, prior to storing the image. If you do not need such options, you can use QImage::save() or QPixmap::save() instead.&lt;/p&gt;
&lt;p&gt;To store an image, you start by constructing a &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; object. Pass either a file name or a device pointer, and the image format to &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;'s constructor. You can then set several options, such as the gamma level (by calling &lt;a href=&quot;QImageWriter.html#setGamma(float)&quot;&gt;&lt;tt&gt;setGamma&lt;/tt&gt;&lt;/a&gt;) and quality (by calling &lt;a href=&quot;QImageWriter.html#setQuality(int)&quot;&gt;&lt;tt&gt;setQuality&lt;/tt&gt;&lt;/a&gt;). &lt;a href=&quot;QImageWriter.html#canWrite()&quot;&gt;&lt;tt&gt;canWrite&lt;/tt&gt;&lt;/a&gt; returns true if &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; can write the image (i.e&amp;#x2e;, the image format is supported and the device is open for writing). Call &lt;a href=&quot;QImageWriter.html#write(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt; to write the image to the device.&lt;/p&gt;
&lt;p&gt;If any error occurs when writing the image, &lt;a href=&quot;QImageWriter.html#write(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt; will return false. You can then call &lt;a href=&quot;QImageWriter.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; to find the type of error that occurred, or &lt;a href=&quot;QImageWriter.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get a human readable description of what went wrong.&lt;/p&gt;
&lt;p&gt;Call &lt;a href=&quot;QImageWriter.html#supportedImageFormats()&quot;&gt;&lt;tt&gt;supportedImageFormats&lt;/tt&gt;&lt;/a&gt; for a list of formats that &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; can write. &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; supports all built-in image formats, in addition to any image format plugins that support writing.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageIOHandler.html&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageIOPlugin&lt;/tt&gt; */">
    <method name="public QImageWriter()" doc="/**
&lt;p&gt;Constructs an empty &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; object. Before writing, you must call &lt;a href=&quot;QImageWriter.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt; to set an image format, then &lt;a href=&quot;QImageWriter.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QImageWriter.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public QImageWriter(com.trolltech.qt.core.QIODevice device, com.trolltech.qt.core.QByteArray format)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; object using the device &lt;tt&gt;device&lt;/tt&gt; and image format &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QImageWriter(java.lang.String fileName, com.trolltech.qt.core.QByteArray format)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; objects that will write to a file with the name &lt;tt&gt;fileName&lt;/tt&gt;, using the image format &lt;tt&gt;format&lt;/tt&gt;. If &lt;tt&gt;format&lt;/tt&gt; is not provided, &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; will detect the image format by inspecting the extension of &lt;tt&gt;fileName&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QImageWriter(java.lang.String fileName)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;fileName&lt;/tt&gt;, QByteArray()). */"/>
    <method name="public final boolean canWrite()" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; can write the image (i.e&amp;#x2e;, the image format is supported and the assigned device is open for reading.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#write(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int compression()" doc="/**
&lt;p&gt;Returns the compression of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#setCompression(int)&quot;&gt;&lt;tt&gt;setCompression&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QIODevice device()" doc="/**
&lt;p&gt;Returns the device currently assigned to &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;, or 0 if no device has been assigned.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImageWriter.ImageWriterError error()" doc="/**
&lt;p&gt;Returns the type of error that last occurred.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#ImageWriterError-enum&quot;&gt;&lt;tt&gt;ImageWriterError&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String errorString()" doc="/**
&lt;p&gt;Returns a human readable description of the last error that occurred.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String fileName()" doc="/**
&lt;p&gt;If the currently assigned device is a &lt;a href=&quot;%2E%2E/core/QFile.html&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt;, or if &lt;a href=&quot;QImageWriter.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; has been called, this function returns the name of the file &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; writes to. Otherwise (i.e&amp;#x2e;, if no device has been assigned or the device is not a &lt;a href=&quot;%2E%2E/core/QFile.html&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt;), an empty &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray format()" doc="/**
&lt;p&gt;Returns the format &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; uses for writing images.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final float gamma()" doc="/**
&lt;p&gt;Returns the gamma level of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#setGamma(float)&quot;&gt;&lt;tt&gt;setGamma&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int quality()" doc="/**
&lt;p&gt;Returns the quality level of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#setQuality(int)&quot;&gt;&lt;tt&gt;setQuality&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCompression(int compression)" doc="/**
&lt;p&gt;This is an image format specific function that set the compression of an image. For image formats that do not support setting the compression, this value is ignored.&lt;/p&gt;
&lt;p&gt;The value range of &lt;tt&gt;compression&lt;/tt&gt; depends on the image format. For example, the &amp;quot;tiff&amp;quot; format supports two values, 0(no compression) and 1(LZW-compression).&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#compression()&quot;&gt;&lt;tt&gt;compression&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDevice(com.trolltech.qt.core.QIODevice device)" doc="/**
&lt;p&gt;Sets &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;'s device to &lt;tt&gt;device&lt;/tt&gt;. If a device has already been set, the old device is removed from &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; and is otherwise left unchanged.&lt;/p&gt;
&lt;p&gt;If the device is not already open, &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; will attempt to open the device in &lt;tt&gt;QIODevice::WriteOnly&lt;/tt&gt; mode by calling open(). Note that this does not work for certain devices, such as &lt;a href=&quot;%2E%2E/core/QProcess.html&quot;&gt;&lt;tt&gt;QProcess&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/network/QTcpSocket.html&quot;&gt;&lt;tt&gt;QTcpSocket&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;%2E%2E/network/QUdpSocket.html&quot;&gt;&lt;tt&gt;QUdpSocket&lt;/tt&gt;&lt;/a&gt;, where more logic is required to open the device.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFileName(java.lang.String fileName)" doc="/**
&lt;p&gt;Sets the file name of &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;fileName&lt;/tt&gt;. Internally, &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; will create a &lt;a href=&quot;%2E%2E/core/QFile.html&quot;&gt;&lt;tt&gt;QFile&lt;/tt&gt;&lt;/a&gt; and open it in &lt;tt&gt;QIODevice::WriteOnly&lt;/tt&gt; mode, and use this file when writing images.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFormat(com.trolltech.qt.core.QByteArray format)" doc="/**
&lt;p&gt;Sets the format &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; will use when writing images, to &lt;tt&gt;format&lt;/tt&gt;. &lt;tt&gt;format&lt;/tt&gt; is a case insensitive text string. Example:&lt;/p&gt;
&lt;pre&gt;    QImageWriter writer;
    writer.setFormat(&amp;quot;png&amp;quot;); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; same as writer.setFormat(&amp;quot;PNG&amp;quot;);&lt;/pre&gt;
&lt;p&gt;You can call &lt;a href=&quot;QImageWriter.html#supportedImageFormats()&quot;&gt;&lt;tt&gt;supportedImageFormats&lt;/tt&gt;&lt;/a&gt; for the full list of formats &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; supports.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setGamma(float gamma)" doc="/**
&lt;p&gt;This is an image format specific function that sets the gamma level of the image to &lt;tt&gt;gamma&lt;/tt&gt;. For image formats that do not support setting the gamma level, this value is ignored.&lt;/p&gt;
&lt;p&gt;The value range of &lt;tt&gt;gamma&lt;/tt&gt; depends on the image format. For example, the &amp;quot;png&amp;quot; format supports a gamma range from 0.0 to 1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#gamma()&quot;&gt;&lt;tt&gt;gamma&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#quality()&quot;&gt;&lt;tt&gt;quality&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setQuality(int quality)" doc="/**
&lt;p&gt;This is an image format specific function that sets the quality level of the image to &lt;tt&gt;quality&lt;/tt&gt;. For image formats that do not support setting the quality, this value is ignored.&lt;/p&gt;
&lt;p&gt;The value range of &lt;tt&gt;quality&lt;/tt&gt; depends on the image format. For example, the &amp;quot;jpeg&amp;quot; format supports a quality range from 0 (low quality, high compression) to 100 (high quality, low compression).&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#quality()&quot;&gt;&lt;tt&gt;quality&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(java.lang.String key, java.lang.String text)" doc="/**
&lt;p&gt;Sets the image text associated with the key &lt;tt&gt;key&lt;/tt&gt; to &lt;tt&gt;text&lt;/tt&gt;. This is useful for storing copyright information or other information about the image. Example:&lt;/p&gt;
&lt;pre&gt;    QImage image(&amp;quot;some/image.jpeg&amp;quot;);
    QImageWriter writer(&amp;quot;images/outimage.png&amp;quot;, &amp;quot;png&amp;quot;);
    writer.setText(&amp;quot;Author&amp;quot;, &amp;quot;John Smith&amp;quot;);
    writer.write(image);&lt;/pre&gt;
&lt;p&gt;If you want to store a single block of data (e.g&amp;#x2e;, a comment), you can pass an empty key, or use a generic key like &amp;quot;Description&amp;quot;.&lt;/p&gt;
&lt;p&gt;The key and text will be embedded into the image data after calling &lt;a href=&quot;QImageWriter.html#write(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Support for this option is implemented through QImageIOHandler::Description.&lt;/p&gt;

@see &lt;tt&gt;QImage::setText&lt;/tt&gt;
@see &lt;tt&gt;QImageReader::text&lt;/tt&gt; */"/>
    <method name="public final boolean supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption option)" doc="/**
&lt;p&gt;Returns true if the writer supports &lt;tt&gt;option&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Different image formats support different options. Call this function to determine whether a certain option is supported by the current format. For example, the PNG format allows you to embed text into the image's metadata (see text()).&lt;/p&gt;
&lt;pre&gt;    QImageWriter writer(fileName);
    if (writer.supportsOption(QImageIOHandler::Description))
        writer.setText(&amp;quot;Author&amp;quot;, &amp;quot;John Smith&amp;quot;);&lt;/pre&gt;
&lt;p&gt;Options can be tested after the writer has been associated with a format.&lt;/p&gt;

@see &lt;tt&gt;QImageReader::supportsOption&lt;/tt&gt;
@see &lt;a href=&quot;QImageWriter.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean write(com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Writes the image &lt;tt&gt;image&lt;/tt&gt; to the assigned device or file name. Returns true on success; otherwise returns false. If the operation fails, you can call &lt;a href=&quot;QImageWriter.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt; to find the type of error that occurred, or &lt;a href=&quot;QImageWriter.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; to get a human readable description of the error.&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#canWrite()&quot;&gt;&lt;tt&gt;canWrite&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#error()&quot;&gt;&lt;tt&gt;error&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html#errorString()&quot;&gt;&lt;tt&gt;errorString&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static java.util.List&lt;com.trolltech.qt.core.QByteArray&gt; supportedImageFormats()" doc="/**
&lt;p&gt;Returns the list of image formats supported by &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By default, Qt can write the following formats:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Format&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;BMP&lt;/td&gt;&lt;td&gt;Windows Bitmap&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;JPG&lt;/td&gt;&lt;td&gt;Joint Photographic Experts Group&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;JPEG&lt;/td&gt;&lt;td&gt;Joint Photographic Experts Group&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;PNG&lt;/td&gt;&lt;td&gt;Portable Network Graphics&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;PPM&lt;/td&gt;&lt;td&gt;Portable Pixmap&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;TIFF&lt;/td&gt;&lt;td&gt;Tagged Image File Format&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;XBM&lt;/td&gt;&lt;td&gt;X11 Bitmap&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;XPM&lt;/td&gt;&lt;td&gt;X11 Pixmap&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QImageWriter.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageReader::supportedImageFormats&lt;/tt&gt;
@see &lt;tt&gt;QImageIOPlugin&lt;/tt&gt; */"/>
    <enum name="ImageWriterError" doc="/**
&lt;p&gt;This enum describes errors that can occur when writing images with &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */">
        <enum-value name="UnknownError" doc="/**
&lt;p&gt;An unknown error occurred. If you get this value after calling &lt;a href=&quot;QImageWriter.html#write(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt;, it is most likely caused by a bug in &lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="DeviceError" doc="/**
&lt;p&gt;&lt;a href=&quot;QImageWriter.html#QImageWriter(java.lang.String, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; encountered a device error when writing the image data. Consult your device for more details on what went wrong.&lt;/p&gt;
 */"/>
        <enum-value name="UnsupportedFormatError" doc="/**
&lt;p&gt;Qt does not support the requested image format.&lt;/p&gt;
 */"/>
</enum>
</class>
