Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2078

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QImageReader" doc="/**
&lt;p&gt;The &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; class provides a format independent interface for reading images from files or other devices.&lt;/p&gt;
&lt;p&gt;The most common way to read images is through &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;'s constructors, or by calling QImage::load() and QPixmap::load(). &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; is a specialized class which gives you more control when reading images. For example, you can read an image into a specific size by calling &lt;a href=&quot;QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setScaledSize&lt;/tt&gt;&lt;/a&gt;, and you can select a clip rect, effectively loading only parts of an image, by calling &lt;a href=&quot;QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setClipRect&lt;/tt&gt;&lt;/a&gt;. Depending on the underlying support in the image format, this can save memory and speed up loading of images.&lt;/p&gt;
&lt;p&gt;To read an image, you start by constructing a &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;'s constructor. You can then set several options, such as the clip rect (by calling &lt;a href=&quot;QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setClipRect&lt;/tt&gt;&lt;/a&gt;) and scaled size (by calling &lt;a href=&quot;QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setScaledSize&lt;/tt&gt;&lt;/a&gt;). &lt;a href=&quot;QImageReader.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt; returns the image if the &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; can read the image (i.e&amp;#x2e;, the image format is supported and the device is open for reading). Call &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; to read the image.&lt;/p&gt;
&lt;p&gt;If any error occurs when reading the image, &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; will return a null &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;. You can then call &lt;a href=&quot;QImageReader.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;QImageReader.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;QImageReader.html#supportedImageFormats()&quot;&gt;&lt;tt&gt;supportedImageFormats&lt;/tt&gt;&lt;/a&gt; for a list of formats that &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; can read. &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; supports all built-in image formats, in addition to any image format plugins that support reading.&lt;/p&gt;
&lt;div style=&quot;padding: 0.5em; background: #e0e0e0; color: black&quot;&gt;&lt;p&gt;Qt supports GIF reading if it is configured that way during installation. If it is, we are required to state that &amp;quot;The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated. GIF(sm) is a Service Mark property of CompuServe Incorporated.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If you are in a country that recognizes software patents and in which Unisys holds a patent on LZW compression and/or decompression and you want to use GIF, Unisys may require you to license that technology. Such countries include Canada, Japan, the US, France, Germany, Italy and the UK.&lt;/p&gt;
&lt;p&gt;GIF support may be removed completely in a future version of Qt. We recommend using the MNG or PNG format.&lt;/p&gt;
&lt;/div&gt;
@see &lt;a href=&quot;QImageWriter.html&quot;&gt;&lt;tt&gt;QImageWriter&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 QImageReader(java.lang.String fileName, com.trolltech.qt.core.QByteArray format)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; object with the file name &lt;tt&gt;fileName&lt;/tt&gt; and the image format &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QImageReader(java.lang.String fileName)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;fileName&lt;/tt&gt;, QByteArray()). */"/>
    <method name="public QImageReader()" doc="/**
&lt;p&gt;Constructs an empty &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; object. Before reading an image, call &lt;a href=&quot;QImageReader.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QImageReader.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public QImageReader(com.trolltech.qt.core.QIODevice device, com.trolltech.qt.core.QByteArray format)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; object with the device &lt;tt&gt;device&lt;/tt&gt; and the image format &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QImageReader(com.trolltech.qt.core.QIODevice device)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;device&lt;/tt&gt;, QByteArray()). */"/>
    <method name="public final com.trolltech.qt.gui.QColor backgroundColor()" doc="/**
&lt;p&gt;Returns the background color that's used when reading an image. If the image format does not support setting the background color an invalid color is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#setBackgroundColor(com.trolltech.qt.gui.QColor)&quot;&gt;&lt;tt&gt;setBackgroundColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean canRead()" doc="/**
&lt;p&gt;Returns true if an image can be read for the device (i.e&amp;#x2e;, the image format is supported, and the device seems to contain valid data); otherwise returns false.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QImageReader.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt; is a lightweight function that only does a quick test to see if the image data is valid. &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; may still return false after &lt;a href=&quot;QImageReader.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt; returns true, if the image data is corrupt.&lt;/p&gt;
&lt;p&gt;For images that support animation, &lt;a href=&quot;QImageReader.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt; returns false when all frames have been read.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#supportedImageFormats()&quot;&gt;&lt;tt&gt;supportedImageFormats&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect clipRect()" doc="/**
&lt;p&gt;Returns the clip rect (also known as the ROI, or Region Of Interest) of the image. If no clip rect has been set, an invalid &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setClipRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int currentImageNumber()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the sequence number of the current frame. Otherwise, -1 is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#supportsAnimation()&quot;&gt;&lt;tt&gt;supportsAnimation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageIOHandler::currentImageNumber&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect currentImageRect()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the rect for the current frame. Otherwise, a null rect is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#supportsAnimation()&quot;&gt;&lt;tt&gt;supportsAnimation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageIOHandler::currentImageRect&lt;/tt&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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;, or 0 if no device has been assigned.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.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.QImageReader.ImageReaderError error()" doc="/**
&lt;p&gt;Returns the type of error that occurred last.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#ImageReaderError-enum&quot;&gt;&lt;tt&gt;ImageReaderError&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.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;QImageReader.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;QImageReader.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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; reads from. 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;QImageReader.html#setFileName(java.lang.String)&quot;&gt;&lt;tt&gt;setFileName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; uses for reading images.&lt;/p&gt;
&lt;p&gt;You can call this function after assigning a device to the reader to determine the format of the device. For example:&lt;/p&gt;
&lt;pre&gt;    QImageReader reader(&amp;quot;image.png&amp;quot;);
&lt;span class=&quot;comment&quot;&gt;    // reader.format() == &amp;quot;png&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;If the reader cannot read any image from the device (e.g&amp;#x2e;, there is no image there, or the image has already been read), or if the format is unsupported, this function returns an empty &lt;a href=&quot;%2E%2E/porting4.html#qbytearray&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#supportedImageFormats()&quot;&gt;&lt;tt&gt;supportedImageFormats&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int imageCount()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the total number of images in the animation.&lt;/p&gt;
&lt;p&gt;Certain animation formats do not support this feature, in which case 0 is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#supportsAnimation()&quot;&gt;&lt;tt&gt;supportsAnimation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageIOHandler::imageCount&lt;/tt&gt; */"/>
    <method name="public final boolean jumpToImage(int imageNumber)" doc="/**
&lt;p&gt;For image formats that support animation, this function skips to the image whose sequence number is &lt;tt&gt;imageNumber&lt;/tt&gt;, returning true if successful or false if the corresponding image cannot be found.&lt;/p&gt;
&lt;p&gt;The next call to &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; will attempt to read this image.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#jumpToNextImage()&quot;&gt;&lt;tt&gt;jumpToNextImage&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageIOHandler::jumpToImage&lt;/tt&gt; */"/>
    <method name="public final boolean jumpToNextImage()" doc="/**
&lt;p&gt;For image formats that support animation, this function steps over the current image, returning true if successful or false if there is no following image in the animation.&lt;/p&gt;
&lt;p&gt;The default implementation calls &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;, then discards the resulting image, but the image handler may have a more efficient way of implementing this operation.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#jumpToImage(int)&quot;&gt;&lt;tt&gt;jumpToImage&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageIOHandler::jumpToNextImage&lt;/tt&gt; */"/>
    <method name="public final int loopCount()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the number of times the animation should loop. Otherwise, it returns -1.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#supportsAnimation()&quot;&gt;&lt;tt&gt;supportsAnimation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageIOHandler::loopCount&lt;/tt&gt; */"/>
    <method name="public final int nextImageDelay()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the number of milliseconds to wait until displaying the next frame in the animation. Otherwise, 0 is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#supportsAnimation()&quot;&gt;&lt;tt&gt;supportsAnimation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageIOHandler::nextImageDelay&lt;/tt&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;QImageReader.html#setQuality(int)&quot;&gt;&lt;tt&gt;setQuality&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage read()" doc="/**
&lt;p&gt;Reads an image from the device. On success, the image that was read is returned; otherwise, a null &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; is returned. You can then call &lt;a href=&quot;QImageReader.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;QImageReader.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;
&lt;p&gt;For image formats that support animation, calling &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; repeatedly will return the next frame. When all frames have been read, a null image will be returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#supportedImageFormats()&quot;&gt;&lt;tt&gt;supportedImageFormats&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#supportsAnimation()&quot;&gt;&lt;tt&gt;supportsAnimation&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMovie.html&quot;&gt;&lt;tt&gt;QMovie&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect scaledClipRect()" doc="/**
&lt;p&gt;Returns the scaled clip rect of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#setScaledClipRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setScaledClipRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize scaledSize()" doc="/**
&lt;p&gt;Returns the scaled size of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setScaledSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBackgroundColor(com.trolltech.qt.gui.QColor color)" doc="/**
&lt;p&gt;Sets the background color to &lt;tt&gt;color&lt;/tt&gt;. Image formats that support this operation are expected to initialize the background to &lt;tt&gt;color&lt;/tt&gt; before reading an image.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#backgroundColor()&quot;&gt;&lt;tt&gt;backgroundColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setClipRect(com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;Sets the image clip rect (also known as the ROI, or Region Of Interest) to &lt;tt&gt;rect&lt;/tt&gt;. The coordinates of &lt;tt&gt;rect&lt;/tt&gt; are relative to the untransformed image size, as returned by &lt;a href=&quot;QImageReader.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#clipRect()&quot;&gt;&lt;tt&gt;clipRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setScaledSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#setScaledClipRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setScaledClipRect&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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; will attempt to open the device in &lt;tt&gt;QIODevice::ReadOnly&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;QImageReader.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;fileName&lt;/tt&gt;. Internally, &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&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; object and open it in &lt;tt&gt;QIODevice::ReadOnly&lt;/tt&gt; mode, and use this when reading images.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;fileName&lt;/tt&gt; does not include a file extension (e.g&amp;#x2e;, .png or .bmp), &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; will cycle through all supported extensions until it finds a matching file.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#fileName()&quot;&gt;&lt;tt&gt;fileName&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#supportedImageFormats()&quot;&gt;&lt;tt&gt;supportedImageFormats&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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; will use when reading 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;    QImageReader reader;
    reader.setFormat(&amp;quot;png&amp;quot;); &lt;span class=&quot;comment&quot;&gt;// same as reader.setFormat(&amp;quot;PNG&amp;quot;);&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;You can call &lt;a href=&quot;QImageReader.html#supportedImageFormats()&quot;&gt;&lt;tt&gt;supportedImageFormats&lt;/tt&gt;&lt;/a&gt; for the full list of formats &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; supports.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#format()&quot;&gt;&lt;tt&gt;format&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;QImageReader.html#quality()&quot;&gt;&lt;tt&gt;quality&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setScaledClipRect(com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;Sets the scaled clip rect to &lt;tt&gt;rect&lt;/tt&gt;. The scaled clip rect is the clip rect (also known as ROI, or Region Of Interest) that is applied after the image has been scaled.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#scaledClipRect()&quot;&gt;&lt;tt&gt;scaledClipRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setScaledSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setScaledSize(com.trolltech.qt.core.QSize size)" doc="/**
&lt;p&gt;Sets the scaled size of the image to &lt;tt&gt;size&lt;/tt&gt;. The scaling is performed after the initial clip rect, but before the scaled clip rect is applied. The algorithm used for scaling depends on the image format. By default (i.e&amp;#x2e;, if the image format does not support scaling), &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; will use QImage::scale() with Qt::SmoothScaling.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#scaledSize()&quot;&gt;&lt;tt&gt;scaledSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setClipRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageReader.html#setScaledClipRect(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setScaledClipRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize size()" doc="/**
&lt;p&gt;Returns the size of the image, without actually reading the image contents.&lt;/p&gt;
&lt;p&gt;If the image format does not support this feature, this function returns an invalid size. Qt's built-in image handlers all support this feature, but custom image format plugins are not required to do so.&lt;/p&gt;

@see &lt;tt&gt;QImageIOHandler::ImageOption&lt;/tt&gt;
@see &lt;tt&gt;QImageIOHandler::option&lt;/tt&gt;
@see &lt;tt&gt;QImageIOHandler::supportsOption&lt;/tt&gt; */"/>
    <method name="public final boolean supportsAnimation()" doc="/**
&lt;p&gt;Returns true if the image format supports animation; otherwise, false is returned.&lt;/p&gt;

@see &lt;tt&gt;QMovie::supportedFormats&lt;/tt&gt; */"/>
    <method name="public final boolean supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption option)" doc="/**
&lt;p&gt;Returns true if the reader 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 &lt;a href=&quot;QImageReader.html#text(java.lang.String)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;), and the BMP format allows you to determine the image's size without loading the whole image into memory (see &lt;a href=&quot;QImageReader.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;pre&gt;    QImageReader reader(&amp;quot;:/image.png&amp;quot;);
    if (reader.supportsOption(QImageIOHandler::Size))
        qDebug() &amp;lt;&amp;lt; &amp;quot;Size:&amp;quot; &amp;lt;&amp;lt; reader.size();&lt;/pre&gt;

@see &lt;tt&gt;QImageWriter::supportsOption&lt;/tt&gt; */"/>
    <method name="public final java.lang.String text(java.lang.String key)" doc="/**
&lt;p&gt;Returns the image text associated with &lt;tt&gt;key&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Support for this option is implemented through QImageIOHandler::Description.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#textKeys()&quot;&gt;&lt;tt&gt;textKeys&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageWriter::setText&lt;/tt&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; textKeys()" doc="/**
&lt;p&gt;Returns the text keys for this image. You can use these keys with &lt;a href=&quot;QImageReader.html#text(java.lang.String)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; to list the image text for a certain key.&lt;/p&gt;
&lt;p&gt;Support for this option is implemented through QImageIOHandler::Description.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#text(java.lang.String)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageWriter::setText&lt;/tt&gt;
@see &lt;tt&gt;QImage::textKeys&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QByteArray imageFormat(java.lang.String fileName)" doc="/**
&lt;p&gt;If supported, this function returns the image format of the file &lt;tt&gt;fileName&lt;/tt&gt;. Otherwise, an empty string is returned.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.core.QByteArray imageFormat(com.trolltech.qt.core.QIODevice device)" doc="/**
&lt;p&gt;If supported, this function returns the image format of the device &lt;tt&gt;device&lt;/tt&gt;. Otherwise, an empty string is returned.&lt;/p&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;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By default, Qt can read 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;GIF&lt;/td&gt;&lt;td&gt;Graphic Interchange Format (optional)&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&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;even&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;odd&quot;&gt;&lt;td&gt;MNG&lt;/td&gt;&lt;td&gt;Multiple-image Network Graphics&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;PBM&lt;/td&gt;&lt;td&gt;Portable Bitmap&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;PGM&lt;/td&gt;&lt;td&gt;Portable Graymap&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;
&lt;p&gt;To configure Qt with GIF support, pass &lt;tt&gt;-qt-gif&lt;/tt&gt; to the &lt;tt&gt;configure&lt;/tt&gt; script or check the appropriate option in the graphical installer.&lt;/p&gt;

@see &lt;a href=&quot;QImageReader.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImageWriter::supportedImageFormats&lt;/tt&gt;
@see &lt;tt&gt;QImageIOPlugin&lt;/tt&gt; */"/>
    <enum name="ImageReaderError" doc="/**
&lt;p&gt;This enum describes the different types of errors that can occur when reading images with &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&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;QImageReader.html#read()&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;, it is most likely caused by a bug in &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="FileNotFoundError" doc="/**
&lt;p&gt;&lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; was used with a file name, but not file was found with that name. This can also happen if the file name contained no extension, and the file with the correct extension is not supported by Qt.&lt;/p&gt;
 */"/>
        <enum-value name="DeviceError" doc="/**
&lt;p&gt;&lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; encountered a device error when reading the image. You can consult your particular 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-value name="InvalidDataError" doc="/**
&lt;p&gt;The image data was invalid, and &lt;a href=&quot;QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; was unable to read an image from it. The can happen if the image file is damaged.&lt;/p&gt;
 */"/>
</enum>
</class>