<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:01:22 CEST 2007 --> <TITLE> QImageReader </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.gui.QImageReader class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QImageReader"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/gui/QImageIOHandler.ImageOption.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QImageReader.ImageReaderError.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/gui/QImageReader.html" target="_top"><B>FRAMES</B></A> <A HREF="QImageReader.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.trolltech.qt.gui</FONT> <BR> Class QImageReader</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QImageReader</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>QImageReader</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL> </PRE> <P> <p>The <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> class provides a format independent interface for reading images from files or other devices.</p> <p>The most common way to read images is through <a href="QImage.html"><tt>QImage</tt></a> and <a href="QPixmap.html"><tt>QPixmap</tt></a>'s constructors, or by calling QImage::load() and QPixmap::load(). <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> 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 <a href="QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)"><tt>setScaledSize</tt></a>, and you can select a clip rect, effectively loading only parts of an image, by calling <a href="QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)"><tt>setClipRect</tt></a>. Depending on the underlying support in the image format, this can save memory and speed up loading of images.</p> <p>To read an image, you start by constructing a <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> object. Pass either a file name or a device pointer, and the image format to <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>'s constructor. You can then set several options, such as the clip rect (by calling <a href="QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)"><tt>setClipRect</tt></a>) and scaled size (by calling <a href="QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)"><tt>setScaledSize</tt></a>). <a href="QImageReader.html#canRead()"><tt>canRead</tt></a> returns the image if the <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> can read the image (i.e., the image format is supported and the device is open for reading). Call <a href="QImageReader.html#read()"><tt>read</tt></a> to read the image.</p> <p>If any error occurs when reading the image, <a href="QImageReader.html#read()"><tt>read</tt></a> will return a null <a href="QImage.html"><tt>QImage</tt></a>. You can then call <a href="QImageReader.html#error()"><tt>error</tt></a> to find the type of error that occurred, or <a href="QImageReader.html#errorString()"><tt>errorString</tt></a> to get a human readable description of what went wrong.</p> <p>Call <a href="QImageReader.html#supportedImageFormats()"><tt>supportedImageFormats</tt></a> for a list of formats that <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> can read. <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> supports all built-in image formats, in addition to any image format plugins that support reading.</p> <div style="padding: 0.5em; background: #e0e0e0; color: black"><p>Qt supports GIF reading if it is configured that way during installation. If it is, we are required to state that "The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated. GIF(sm) is a Service Mark property of CompuServe Incorporated."</p> <p><b>Warning:</b> 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.</p> <p>GIF support may be removed completely in a future version of Qt. We recommend using the MNG or PNG format.</p> </div> <P> <P> <DL> <DT><B>See Also:</B><DD><a href="QImageWriter.html"><tt>QImageWriter</tt></a>, <a href="QImageIOHandler.html"><tt>QImageIOHandler</tt></a>, <tt>QImageIOPlugin</tt></DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.ImageReaderError.html" title="enum in com.trolltech.qt.gui">QImageReader.ImageReaderError</A></B></CODE> <BR> This enum describes the different types of errors that can occur when reading images with <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>.</TD> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#QImageReader()">QImageReader</A></B>()</CODE> <BR> Constructs an empty <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> object.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice)">QImageReader</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> device)</CODE> <BR> Equivalent to <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>(<tt>device</tt>, QByteArray()).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)">QImageReader</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> device, <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> format)</CODE> <BR> Constructs a <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> object with the device <tt>device</tt> and the image format <tt>format</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#QImageReader(java.lang.String)">QImageReader</A></B>(java.lang.String fileName)</CODE> <BR> Equivalent to <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>(<tt>fileName</tt>, QByteArray()).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#QImageReader(java.lang.String, com.trolltech.qt.core.QByteArray)">QImageReader</A></B>(java.lang.String fileName, <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> format)</CODE> <BR> Constructs a <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> object with the file name <tt>fileName</tt> and the image format <tt>format</tt>.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#backgroundColor()">backgroundColor</A></B>()</CODE> <BR> Returns the background color that's used when reading an image.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#canRead()">canRead</A></B>()</CODE> <BR> Returns true if an image can be read for the device (i.e., the image format is supported, and the device seems to contain valid data); otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#clipRect()">clipRect</A></B>()</CODE> <BR> Returns the clip rect (also known as the ROI, or Region Of Interest) of the image.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#currentImageNumber()">currentImageNumber</A></B>()</CODE> <BR> For image formats that support animation, this function returns the sequence number of the current frame.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#currentImageRect()">currentImageRect</A></B>()</CODE> <BR> For image formats that support animation, this function returns the rect for the current frame.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#device()">device</A></B>()</CODE> <BR> Returns the device currently assigned to <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>, or 0 if no device has been assigned.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QImageReader.ImageReaderError.html" title="enum in com.trolltech.qt.gui">QImageReader.ImageReaderError</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#error()">error</A></B>()</CODE> <BR> Returns the type of error that occurred last.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#errorString()">errorString</A></B>()</CODE> <BR> Returns a human readable description of the last error that occurred.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#fileName()">fileName</A></B>()</CODE> <BR> If the currently assigned device is a <a href="%2E%2E/core/QFile.html"><tt>QFile</tt></a>, or if <a href="QImageReader.html#setFileName(java.lang.String)"><tt>setFileName</tt></a> has been called, this function returns the name of the file <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> reads from.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#format()">format</A></B>()</CODE> <BR> Returns the format <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> uses for reading images.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/gui/QImageReader.html" title="class in com.trolltech.qt.gui">QImageReader</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</CODE> <BR> This function returns the QImageReader instance pointed to by nativePointer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#imageCount()">imageCount</A></B>()</CODE> <BR> For image formats that support animation, this function returns the total number of images in the animation.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#imageFormat(com.trolltech.qt.core.QIODevice)">imageFormat</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> device)</CODE> <BR> If supported, this function returns the image format of the device <tt>device</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#imageFormat(java.lang.String)">imageFormat</A></B>(java.lang.String fileName)</CODE> <BR> If supported, this function returns the image format of the file <tt>fileName</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#jumpToImage(int)">jumpToImage</A></B>(int imageNumber)</CODE> <BR> For image formats that support animation, this function skips to the image whose sequence number is <tt>imageNumber</tt>, returning true if successful or false if the corresponding image cannot be found.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#jumpToNextImage()">jumpToNextImage</A></B>()</CODE> <BR> 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.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#loopCount()">loopCount</A></B>()</CODE> <BR> For image formats that support animation, this function returns the number of times the animation should loop.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#nextImageDelay()">nextImageDelay</A></B>()</CODE> <BR> For image formats that support animation, this function returns the number of milliseconds to wait until displaying the next frame in the animation.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#quality()">quality</A></B>()</CODE> <BR> Returns the quality level of the image.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#read()">read</A></B>()</CODE> <BR> Reads an image from the device.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#scaledClipRect()">scaledClipRect</A></B>()</CODE> <BR> Returns the scaled clip rect of the image.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#scaledSize()">scaledSize</A></B>()</CODE> <BR> Returns the scaled size of the image.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#setBackgroundColor(com.trolltech.qt.gui.QColor)">setBackgroundColor</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color)</CODE> <BR> Sets the background color to <tt>color</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)">setClipRect</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> rect)</CODE> <BR> Sets the image clip rect (also known as the ROI, or Region Of Interest) to <tt>rect</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#setDevice(com.trolltech.qt.core.QIODevice)">setDevice</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> device)</CODE> <BR> Sets <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>'s device to <tt>device</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#setFileName(java.lang.String)">setFileName</A></B>(java.lang.String fileName)</CODE> <BR> Sets the file name of <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> to <tt>fileName</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#setFormat(com.trolltech.qt.core.QByteArray)">setFormat</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> format)</CODE> <BR> Sets the format <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> will use when reading images, to <tt>format</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#setQuality(int)">setQuality</A></B>(int quality)</CODE> <BR> This is an image format specific function that sets the quality level of the image to <tt>quality</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#setScaledClipRect(com.trolltech.qt.core.QRect)">setScaledClipRect</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> rect)</CODE> <BR> Sets the scaled clip rect to <tt>rect</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)">setScaledSize</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> size)</CODE> <BR> Sets the scaled size of the image to <tt>size</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#size()">size</A></B>()</CODE> <BR> Returns the size of the image, without actually reading the image contents.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static java.util.List<<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#supportedImageFormats()">supportedImageFormats</A></B>()</CODE> <BR> Returns the list of image formats supported by <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#supportsAnimation()">supportsAnimation</A></B>()</CODE> <BR> Returns true if the image format supports animation; otherwise, false is returned.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption)">supportsOption</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImageIOHandler.ImageOption.html" title="enum in com.trolltech.qt.gui">QImageIOHandler.ImageOption</A> option)</CODE> <BR> Returns true if the reader supports <tt>option</tt>; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#text(java.lang.String)">text</A></B>(java.lang.String key)</CODE> <BR> Returns the image text associated with <tt>key</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.List<java.lang.String></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImageReader.html#textKeys()">textKeys</A></B>()</CODE> <BR> Returns the text keys for this image.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="QImageReader(java.lang.String)"><!-- --></A><H3> QImageReader</H3> <PRE> public <B>QImageReader</B>(java.lang.String fileName)</PRE> <DL> <DD><p>Equivalent to <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>(<tt>fileName</tt>, QByteArray()). <P> </DL> <HR> <A NAME="QImageReader(java.lang.String, com.trolltech.qt.core.QByteArray)"><!-- --></A><H3> QImageReader</H3> <PRE> public <B>QImageReader</B>(java.lang.String fileName, <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> format)</PRE> <DL> <DD><p>Constructs a <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> object with the file name <tt>fileName</tt> and the image format <tt>format</tt>.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL> </DL> <HR> <A NAME="QImageReader()"><!-- --></A><H3> QImageReader</H3> <PRE> public <B>QImageReader</B>()</PRE> <DL> <DD><p>Constructs an empty <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> object. Before reading an image, call <a href="QImageReader.html#setDevice(com.trolltech.qt.core.QIODevice)"><tt>setDevice</tt></a> or <a href="QImageReader.html#setFileName(java.lang.String)"><tt>setFileName</tt></a>.</p> <P> </DL> <HR> <A NAME="QImageReader(com.trolltech.qt.core.QIODevice)"><!-- --></A><H3> QImageReader</H3> <PRE> public <B>QImageReader</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> device)</PRE> <DL> <DD><p>Equivalent to <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>(<tt>device</tt>, QByteArray()). <P> </DL> <HR> <A NAME="QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><!-- --></A><H3> QImageReader</H3> <PRE> public <B>QImageReader</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> device, <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> format)</PRE> <DL> <DD><p>Constructs a <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> object with the device <tt>device</tt> and the image format <tt>format</tt>.</p> <P> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="backgroundColor()"><!-- --></A><H3> backgroundColor</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> <B>backgroundColor</B>()</PRE> <DL> <DD><p>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.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setBackgroundColor(com.trolltech.qt.gui.QColor)"><tt>setBackgroundColor</tt></a>, <a href="QImageReader.html#read()"><tt>read</tt></a></DL> </DD> </DL> <HR> <A NAME="canRead()"><!-- --></A><H3> canRead</H3> <PRE> public final boolean <B>canRead</B>()</PRE> <DL> <DD><p>Returns true if an image can be read for the device (i.e., the image format is supported, and the device seems to contain valid data); otherwise returns false.</p> <p><a href="QImageReader.html#canRead()"><tt>canRead</tt></a> is a lightweight function that only does a quick test to see if the image data is valid. <a href="QImageReader.html#read()"><tt>read</tt></a> may still return false after <a href="QImageReader.html#canRead()"><tt>canRead</tt></a> returns true, if the image data is corrupt.</p> <p>For images that support animation, <a href="QImageReader.html#canRead()"><tt>canRead</tt></a> returns false when all frames have been read.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#read()"><tt>read</tt></a>, <a href="QImageReader.html#supportedImageFormats()"><tt>supportedImageFormats</tt></a></DL> </DD> </DL> <HR> <A NAME="clipRect()"><!-- --></A><H3> clipRect</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> <B>clipRect</B>()</PRE> <DL> <DD><p>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 <a href="%2E%2E/core/QRect.html"><tt>QRect</tt></a> is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)"><tt>setClipRect</tt></a></DL> </DD> </DL> <HR> <A NAME="currentImageNumber()"><!-- --></A><H3> currentImageNumber</H3> <PRE> public final int <B>currentImageNumber</B>()</PRE> <DL> <DD><p>For image formats that support animation, this function returns the sequence number of the current frame. Otherwise, -1 is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#supportsAnimation()"><tt>supportsAnimation</tt></a>, <tt>QImageIOHandler::currentImageNumber</tt></DL> </DD> </DL> <HR> <A NAME="currentImageRect()"><!-- --></A><H3> currentImageRect</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> <B>currentImageRect</B>()</PRE> <DL> <DD><p>For image formats that support animation, this function returns the rect for the current frame. Otherwise, a null rect is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#supportsAnimation()"><tt>supportsAnimation</tt></a>, <tt>QImageIOHandler::currentImageRect</tt></DL> </DD> </DL> <HR> <A NAME="device()"><!-- --></A><H3> device</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> <B>device</B>()</PRE> <DL> <DD><p>Returns the device currently assigned to <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>, or 0 if no device has been assigned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setDevice(com.trolltech.qt.core.QIODevice)"><tt>setDevice</tt></a></DL> </DD> </DL> <HR> <A NAME="error()"><!-- --></A><H3> error</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QImageReader.ImageReaderError.html" title="enum in com.trolltech.qt.gui">QImageReader.ImageReaderError</A> <B>error</B>()</PRE> <DL> <DD><p>Returns the type of error that occurred last.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#ImageReaderError-enum"><tt>ImageReaderError</tt></a>, <a href="QImageReader.html#errorString()"><tt>errorString</tt></a></DL> </DD> </DL> <HR> <A NAME="errorString()"><!-- --></A><H3> errorString</H3> <PRE> public final java.lang.String <B>errorString</B>()</PRE> <DL> <DD><p>Returns a human readable description of the last error that occurred.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#error()"><tt>error</tt></a></DL> </DD> </DL> <HR> <A NAME="fileName()"><!-- --></A><H3> fileName</H3> <PRE> public final java.lang.String <B>fileName</B>()</PRE> <DL> <DD><p>If the currently assigned device is a <a href="%2E%2E/core/QFile.html"><tt>QFile</tt></a>, or if <a href="QImageReader.html#setFileName(java.lang.String)"><tt>setFileName</tt></a> has been called, this function returns the name of the file <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> reads from. Otherwise (i.e., if no device has been assigned or the device is not a <a href="%2E%2E/core/QFile.html"><tt>QFile</tt></a>), an empty <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setFileName(java.lang.String)"><tt>setFileName</tt></a>, <a href="QImageReader.html#setDevice(com.trolltech.qt.core.QIODevice)"><tt>setDevice</tt></a></DL> </DD> </DL> <HR> <A NAME="format()"><!-- --></A><H3> format</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>format</B>()</PRE> <DL> <DD><p>Returns the format <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> uses for reading images.</p> <p>You can call this function after assigning a device to the reader to determine the format of the device. For example:</p> <pre> QImageReader reader("image.png"); <span class="comment"> // reader.format() == "png"</span></pre> <p>If the reader cannot read any image from the device (e.g., there is no image there, or the image has already been read), or if the format is unsupported, this function returns an empty <a href="%2E%2E/porting4.html#qbytearray"><tt>QByteArray</tt></a>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setFormat(com.trolltech.qt.core.QByteArray)"><tt>setFormat</tt></a>, <a href="QImageReader.html#supportedImageFormats()"><tt>supportedImageFormats</tt></a></DL> </DD> </DL> <HR> <A NAME="imageCount()"><!-- --></A><H3> imageCount</H3> <PRE> public final int <B>imageCount</B>()</PRE> <DL> <DD><p>For image formats that support animation, this function returns the total number of images in the animation.</p> <p>Certain animation formats do not support this feature, in which case 0 is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#supportsAnimation()"><tt>supportsAnimation</tt></a>, <tt>QImageIOHandler::imageCount</tt></DL> </DD> </DL> <HR> <A NAME="jumpToImage(int)"><!-- --></A><H3> jumpToImage</H3> <PRE> public final boolean <B>jumpToImage</B>(int imageNumber)</PRE> <DL> <DD><p>For image formats that support animation, this function skips to the image whose sequence number is <tt>imageNumber</tt>, returning true if successful or false if the corresponding image cannot be found.</p> <p>The next call to <a href="QImageReader.html#read()"><tt>read</tt></a> will attempt to read this image.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#jumpToNextImage()"><tt>jumpToNextImage</tt></a>, <tt>QImageIOHandler::jumpToImage</tt></DL> </DD> </DL> <HR> <A NAME="jumpToNextImage()"><!-- --></A><H3> jumpToNextImage</H3> <PRE> public final boolean <B>jumpToNextImage</B>()</PRE> <DL> <DD><p>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.</p> <p>The default implementation calls <a href="QImageReader.html#read()"><tt>read</tt></a>, then discards the resulting image, but the image handler may have a more efficient way of implementing this operation.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#jumpToImage(int)"><tt>jumpToImage</tt></a>, <tt>QImageIOHandler::jumpToNextImage</tt></DL> </DD> </DL> <HR> <A NAME="loopCount()"><!-- --></A><H3> loopCount</H3> <PRE> public final int <B>loopCount</B>()</PRE> <DL> <DD><p>For image formats that support animation, this function returns the number of times the animation should loop. Otherwise, it returns -1.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#supportsAnimation()"><tt>supportsAnimation</tt></a>, <tt>QImageIOHandler::loopCount</tt></DL> </DD> </DL> <HR> <A NAME="nextImageDelay()"><!-- --></A><H3> nextImageDelay</H3> <PRE> public final int <B>nextImageDelay</B>()</PRE> <DL> <DD><p>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.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#supportsAnimation()"><tt>supportsAnimation</tt></a>, <tt>QImageIOHandler::nextImageDelay</tt></DL> </DD> </DL> <HR> <A NAME="quality()"><!-- --></A><H3> quality</H3> <PRE> public final int <B>quality</B>()</PRE> <DL> <DD><p>Returns the quality level of the image.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setQuality(int)"><tt>setQuality</tt></a></DL> </DD> </DL> <HR> <A NAME="read()"><!-- --></A><H3> read</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>read</B>()</PRE> <DL> <DD><p>Reads an image from the device. On success, the image that was read is returned; otherwise, a null <a href="QImage.html"><tt>QImage</tt></a> is returned. You can then call <a href="QImageReader.html#error()"><tt>error</tt></a> to find the type of error that occurred, or <a href="QImageReader.html#errorString()"><tt>errorString</tt></a> to get a human readable description of the error.</p> <p>For image formats that support animation, calling <a href="QImageReader.html#read()"><tt>read</tt></a> repeatedly will return the next frame. When all frames have been read, a null image will be returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#canRead()"><tt>canRead</tt></a>, <a href="QImageReader.html#supportedImageFormats()"><tt>supportedImageFormats</tt></a>, <a href="QImageReader.html#supportsAnimation()"><tt>supportsAnimation</tt></a>, <a href="QMovie.html"><tt>QMovie</tt></a></DL> </DD> </DL> <HR> <A NAME="scaledClipRect()"><!-- --></A><H3> scaledClipRect</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> <B>scaledClipRect</B>()</PRE> <DL> <DD><p>Returns the scaled clip rect of the image.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setScaledClipRect(com.trolltech.qt.core.QRect)"><tt>setScaledClipRect</tt></a></DL> </DD> </DL> <HR> <A NAME="scaledSize()"><!-- --></A><H3> scaledSize</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> <B>scaledSize</B>()</PRE> <DL> <DD><p>Returns the scaled size of the image.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)"><tt>setScaledSize</tt></a></DL> </DD> </DL> <HR> <A NAME="setBackgroundColor(com.trolltech.qt.gui.QColor)"><!-- --></A><H3> setBackgroundColor</H3> <PRE> public final void <B>setBackgroundColor</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> color)</PRE> <DL> <DD><p>Sets the background color to <tt>color</tt>. Image formats that support this operation are expected to initialize the background to <tt>color</tt> before reading an image.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#backgroundColor()"><tt>backgroundColor</tt></a>, <a href="QImageReader.html#read()"><tt>read</tt></a></DL> </DD> </DL> <HR> <A NAME="setClipRect(com.trolltech.qt.core.QRect)"><!-- --></A><H3> setClipRect</H3> <PRE> public final void <B>setClipRect</B>(<A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> rect)</PRE> <DL> <DD><p>Sets the image clip rect (also known as the ROI, or Region Of Interest) to <tt>rect</tt>. The coordinates of <tt>rect</tt> are relative to the untransformed image size, as returned by <a href="QImageReader.html#size()"><tt>size</tt></a>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#clipRect()"><tt>clipRect</tt></a>, <a href="QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)"><tt>setScaledSize</tt></a>, <a href="QImageReader.html#setScaledClipRect(com.trolltech.qt.core.QRect)"><tt>setScaledClipRect</tt></a></DL> </DD> </DL> <HR> <A NAME="setDevice(com.trolltech.qt.core.QIODevice)"><!-- --></A><H3> setDevice</H3> <PRE> public final void <B>setDevice</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> device)</PRE> <DL> <DD><p>Sets <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>'s device to <tt>device</tt>. If a device has already been set, the old device is removed from <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> and is otherwise left unchanged.</p> <p>If the device is not already open, <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> will attempt to open the device in <tt>QIODevice::ReadOnly</tt> mode by calling open(). Note that this does not work for certain devices, such as <a href="%2E%2E/core/QProcess.html"><tt>QProcess</tt></a>, <a href="%2E%2E/network/QTcpSocket.html"><tt>QTcpSocket</tt></a> and <a href="%2E%2E/network/QUdpSocket.html"><tt>QUdpSocket</tt></a>, where more logic is required to open the device.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#device()"><tt>device</tt></a>, <a href="QImageReader.html#setFileName(java.lang.String)"><tt>setFileName</tt></a></DL> </DD> </DL> <HR> <A NAME="setFileName(java.lang.String)"><!-- --></A><H3> setFileName</H3> <PRE> public final void <B>setFileName</B>(java.lang.String fileName)</PRE> <DL> <DD><p>Sets the file name of <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> to <tt>fileName</tt>. Internally, <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> will create a <a href="%2E%2E/core/QFile.html"><tt>QFile</tt></a> object and open it in <tt>QIODevice::ReadOnly</tt> mode, and use this when reading images.</p> <p>If <tt>fileName</tt> does not include a file extension (e.g., .png or .bmp), <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> will cycle through all supported extensions until it finds a matching file.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#fileName()"><tt>fileName</tt></a>, <a href="QImageReader.html#setDevice(com.trolltech.qt.core.QIODevice)"><tt>setDevice</tt></a>, <a href="QImageReader.html#supportedImageFormats()"><tt>supportedImageFormats</tt></a></DL> </DD> </DL> <HR> <A NAME="setFormat(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3> setFormat</H3> <PRE> public final void <B>setFormat</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> format)</PRE> <DL> <DD><p>Sets the format <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> will use when reading images, to <tt>format</tt>. <tt>format</tt> is a case insensitive text string. Example:</p> <pre> QImageReader reader; reader.setFormat("png"); <span class="comment">// same as reader.setFormat("PNG");</span></pre> <p>You can call <a href="QImageReader.html#supportedImageFormats()"><tt>supportedImageFormats</tt></a> for the full list of formats <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> supports.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#format()"><tt>format</tt></a></DL> </DD> </DL> <HR> <A NAME="setQuality(int)"><!-- --></A><H3> setQuality</H3> <PRE> public final void <B>setQuality</B>(int quality)</PRE> <DL> <DD><p>This is an image format specific function that sets the quality level of the image to <tt>quality</tt>. For image formats that do not support setting the quality, this value is ignored.</p> <p>The value range of <tt>quality</tt> depends on the image format. For example, the "jpeg" format supports a quality range from 0 (low quality, high compression) to 100 (high quality, low compression).</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#quality()"><tt>quality</tt></a></DL> </DD> </DL> <HR> <A NAME="setScaledClipRect(com.trolltech.qt.core.QRect)"><!-- --></A><H3> setScaledClipRect</H3> <PRE> public final void <B>setScaledClipRect</B>(<A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> rect)</PRE> <DL> <DD><p>Sets the scaled clip rect to <tt>rect</tt>. 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.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#scaledClipRect()"><tt>scaledClipRect</tt></a>, <a href="QImageReader.html#setScaledSize(com.trolltech.qt.core.QSize)"><tt>setScaledSize</tt></a></DL> </DD> </DL> <HR> <A NAME="setScaledSize(com.trolltech.qt.core.QSize)"><!-- --></A><H3> setScaledSize</H3> <PRE> public final void <B>setScaledSize</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> size)</PRE> <DL> <DD><p>Sets the scaled size of the image to <tt>size</tt>. 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., if the image format does not support scaling), <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a> will use QImage::scale() with Qt::SmoothScaling.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#scaledSize()"><tt>scaledSize</tt></a>, <a href="QImageReader.html#setClipRect(com.trolltech.qt.core.QRect)"><tt>setClipRect</tt></a>, <a href="QImageReader.html#setScaledClipRect(com.trolltech.qt.core.QRect)"><tt>setScaledClipRect</tt></a></DL> </DD> </DL> <HR> <A NAME="size()"><!-- --></A><H3> size</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> <B>size</B>()</PRE> <DL> <DD><p>Returns the size of the image, without actually reading the image contents.</p> <p>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.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><tt>QImageIOHandler::ImageOption</tt>, <tt>QImageIOHandler::option</tt>, <tt>QImageIOHandler::supportsOption</tt></DL> </DD> </DL> <HR> <A NAME="supportsAnimation()"><!-- --></A><H3> supportsAnimation</H3> <PRE> public final boolean <B>supportsAnimation</B>()</PRE> <DL> <DD><p>Returns true if the image format supports animation; otherwise, false is returned.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><tt>QMovie::supportedFormats</tt></DL> </DD> </DL> <HR> <A NAME="supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption)"><!-- --></A><H3> supportsOption</H3> <PRE> public final boolean <B>supportsOption</B>(<A HREF="../../../../com/trolltech/qt/gui/QImageIOHandler.ImageOption.html" title="enum in com.trolltech.qt.gui">QImageIOHandler.ImageOption</A> option)</PRE> <DL> <DD><p>Returns true if the reader supports <tt>option</tt>; otherwise returns false.</p> <p>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 <a href="QImageReader.html#text(java.lang.String)"><tt>text</tt></a>), and the BMP format allows you to determine the image's size without loading the whole image into memory (see <a href="QImageReader.html#size()"><tt>size</tt></a>).</p> <pre> QImageReader reader(":/image.png"); if (reader.supportsOption(QImageIOHandler::Size)) qDebug() << "Size:" << reader.size();</pre> <P> <DD><DL> <DT><B>See Also:</B><DD><tt>QImageWriter::supportsOption</tt></DL> </DD> </DL> <HR> <A NAME="text(java.lang.String)"><!-- --></A><H3> text</H3> <PRE> public final java.lang.String <B>text</B>(java.lang.String key)</PRE> <DL> <DD><p>Returns the image text associated with <tt>key</tt>.</p> <p>Support for this option is implemented through QImageIOHandler::Description.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#textKeys()"><tt>textKeys</tt></a>, <tt>QImageWriter::setText</tt></DL> </DD> </DL> <HR> <A NAME="textKeys()"><!-- --></A><H3> textKeys</H3> <PRE> public final java.util.List<java.lang.String> <B>textKeys</B>()</PRE> <DL> <DD><p>Returns the text keys for this image. You can use these keys with <a href="QImageReader.html#text(java.lang.String)"><tt>text</tt></a> to list the image text for a certain key.</p> <p>Support for this option is implemented through QImageIOHandler::Description.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#text(java.lang.String)"><tt>text</tt></a>, <tt>QImageWriter::setText</tt>, <tt>QImage::textKeys</tt></DL> </DD> </DL> <HR> <A NAME="imageFormat(java.lang.String)"><!-- --></A><H3> imageFormat</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>imageFormat</B>(java.lang.String fileName)</PRE> <DL> <DD><p>If supported, this function returns the image format of the file <tt>fileName</tt>. Otherwise, an empty string is returned.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="imageFormat(com.trolltech.qt.core.QIODevice)"><!-- --></A><H3> imageFormat</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>imageFormat</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> device)</PRE> <DL> <DD><p>If supported, this function returns the image format of the device <tt>device</tt>. Otherwise, an empty string is returned.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="supportedImageFormats()"><!-- --></A><H3> supportedImageFormats</H3> <PRE> public static java.util.List<<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>> <B>supportedImageFormats</B>()</PRE> <DL> <DD><p>Returns the list of image formats supported by <a href="QImageReader.html#QImageReader(com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QByteArray)"><tt>QImageReader</tt></a>.</p> <p>By default, Qt can read the following formats:</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <thead><tr valign="top" class="qt-style"><th>Format</th><th>Description</th></tr></thead> <tr valign="top" class="odd"><td>BMP</td><td>Windows Bitmap</td></tr> <tr valign="top" class="even"><td>GIF</td><td>Graphic Interchange Format (optional)</td></tr> <tr valign="top" class="odd"><td>JPG</td><td>Joint Photographic Experts Group</td></tr> <tr valign="top" class="even"><td>JPEG</td><td>Joint Photographic Experts Group</td></tr> <tr valign="top" class="odd"><td>MNG</td><td>Multiple-image Network Graphics</td></tr> <tr valign="top" class="even"><td>PNG</td><td>Portable Network Graphics</td></tr> <tr valign="top" class="odd"><td>PBM</td><td>Portable Bitmap</td></tr> <tr valign="top" class="even"><td>PGM</td><td>Portable Graymap</td></tr> <tr valign="top" class="odd"><td>PPM</td><td>Portable Pixmap</td></tr> <tr valign="top" class="even"><td>TIFF</td><td>Tagged Image File Format</td></tr> <tr valign="top" class="odd"><td>XBM</td><td>X11 Bitmap</td></tr> <tr valign="top" class="even"><td>XPM</td><td>X11 Pixmap</td></tr> </table></p> <p>To configure Qt with GIF support, pass <tt>-qt-gif</tt> to the <tt>configure</tt> script or check the appropriate option in the graphical installer.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><a href="QImageReader.html#setFormat(com.trolltech.qt.core.QByteArray)"><tt>setFormat</tt></a>, <tt>QImageWriter::supportedImageFormats</tt>, <tt>QImageIOPlugin</tt></DL> </DD> </DL> <HR> <A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3> fromNativePointer</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/gui/QImageReader.html" title="class in com.trolltech.qt.gui">QImageReader</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</PRE> <DL> <DD>This function returns the QImageReader instance pointed to by nativePointer <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/gui/QImageIOHandler.ImageOption.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QImageReader.ImageReaderError.html" title="enum in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/gui/QImageReader.html" target="_top"><B>FRAMES</B></A> <A HREF="QImageReader.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>