Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 571

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

<!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:21 CEST 2007 -->
<TITLE>
QImage
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QImage class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QImage";
}
</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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QIconEngineV2.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.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/QImage.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QImage.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 QImage</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.QImage</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QImage</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A><DT>implements <A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></DL>
</PRE>

<P>
<p>The <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> class provides a hardware-independent image representation that allows direct access to the pixel data, and can be used as a paint device.</p>
<p>Qt provides four classes for handling image data: <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a>, <a href="QPixmap.html"><tt>QPixmap</tt></a>, <a href="QBitmap.html"><tt>QBitmap</tt></a> and <a href="QPicture.html"><tt>QPicture</tt></a>. <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> is designed and optimized for I/O, and for direct pixel access and manipulation, while <a href="QPixmap.html"><tt>QPixmap</tt></a> is designed and optimized for showing images on screen. <a href="QBitmap.html"><tt>QBitmap</tt></a> is only a convenience class that inherits <a href="QPixmap.html"><tt>QPixmap</tt></a>, ensuring a depth of 1. Finally, the <a href="QPicture.html"><tt>QPicture</tt></a> class is a paint device that records and replays <a href="QPainter.html"><tt>QPainter</tt></a> commands.</p>
<p>Because <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> is a <a href="QPaintDevice.html"><tt>QPaintDevice</tt></a> subclass, <a href="QPainter.html"><tt>QPainter</tt></a> can be used to draw directly onto images. When using <a href="QPainter.html"><tt>QPainter</tt></a> on a <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a>, the painting can be performed in another thread than the current GUI thread, that is except rendering text (because <a href="QFont.html"><tt>QFont</tt></a> is GUI dependent). To render text in another thread, the text must first be derived as a <a href="QPainterPath.html"><tt>QPainterPath</tt></a> in the GUI thread.</p>
<p>The <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> class supports several image formats described by the <a href="QImage.html#Format-enum">Format</tt></a> enum. These include monochrome, 8-bit, 32-bit and alpha-blended images which are available in all versions of Qt 4.x&#x2e; In addition, <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> supports several formats that are specific to Qtopia Core</tt>.</p>
<p><a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> provides a collection of functions that can be used to obtain a variety of information about the image. There are also several functions that enables transformation of the image.</p>
<p><a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> objects can be passed around by value since the <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> class uses implicit data sharing</tt>. <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> objects can also be streamed and compared.</p>
<ul><li><a href="#reading-and-writing-image-files">Reading and Writing Image Files</a></li>
<li><a href="#image-information">Image Information</a></li>
<li><a href="#pixel-manipulation">Pixel Manipulation</a></li>
<li><a href="#image-formats">Image Formats</a></li>
<li><a href="#image-transformations">Image Transformations</a></li>
<li><a href="#legal-information">Legal Information</a></li>
</ul>
<a name="reading-and-writing-image-files"></a>
<h3>Reading and Writing Image Files</h3>
<p><a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> provides several ways of loading an image file: The file can be loaded when constructing the <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> object, or by using the load() or loadFromData() functions later on. <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> also provides the static fromData() function, constructing a <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> from the given data. When loading an image, the file name can either refer to an actual file on disk or to one of the application's embedded resources. See <a href="%2E%2E/resources.html">The Qt Resource System</tt></a> overview for details on how to embed images and other resource files in the application's executable.</p>
<p>Simply call the save() function to save a <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> object.</p>
<p>The complete list of supported file formats are available through the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions. New file formats can be added as plugins. By default, Qt supports 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><th>Qt's support</th></tr></thead>
<tr valign="top" class="odd"><td>BMP</td><td>Windows Bitmap</td><td>Read/write</td></tr>
<tr valign="top" class="even"><td>GIF</td><td>Graphic Interchange Format (optional)</td><td>Read</td></tr>
<tr valign="top" class="odd"><td>JPG</td><td>Joint Photographic Experts Group</td><td>Read/write</td></tr>
<tr valign="top" class="even"><td>JPEG</td><td>Joint Photographic Experts Group</td><td>Read/write</td></tr>
<tr valign="top" class="odd"><td>PNG</td><td>Portable Network Graphics</td><td>Read/write</td></tr>
<tr valign="top" class="even"><td>PBM</td><td>Portable Bitmap</td><td>Read</td></tr>
<tr valign="top" class="odd"><td>PGM</td><td>Portable Graymap</td><td>Read</td></tr>
<tr valign="top" class="even"><td>PPM</td><td>Portable Pixmap</td><td>Read/write</td></tr>
<tr valign="top" class="odd"><td>TIFF</td><td>Tagged Image File Format</td><td>Read/write</td></tr>
<tr valign="top" class="even"><td>XBM</td><td>X11 Bitmap</td><td>Read/write</td></tr>
<tr valign="top" class="odd"><td>XPM</td><td>X11 Pixmap</td><td>Read/write</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>
<a name="image-information"></a>
<h3>Image Information</h3>
<p><a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> provides a collection of functions that can be used to obtain a variety of information about the image:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th></th><th>Available Functions</th></tr></thead>
<tr valign="top" class="odd"><td>Geometry</td><td>The <a href="QImage.html#size()"><tt>size</tt></a>, <a href="QImage.html#width()"><tt>width</tt></a>, <a href="QImage.html#height()"><tt>height</tt></a>, <a href="QImage.html#dotsPerMeterX()"><tt>dotsPerMeterX</tt></a>, and <a href="QImage.html#dotsPerMeterY()"><tt>dotsPerMeterY</tt></a> functions provide information about the image size and aspect ratio.<p>The <a href="QImage.html#rect()"><tt>rect</tt></a> function returns the image's enclosing rectangle. The <a href="QImage.html#valid(int, int)"><tt>valid</tt></a> function tells if a given pair of coordinates is within this rectangle. The <a href="QImage.html#offset()"><tt>offset</tt></a> function returns the number of pixels by which the image is intended to be offset by when positioned relative to other images, which also can be manipulated using the <a href="QImage.html#setOffset(com.trolltech.qt.core.QPoint)"><tt>setOffset</tt></a> function.</p>
</td></tr>
<tr valign="top" class="even"><td>Colors</td><td>The color of a pixel can be retrieved by passing its coordinates to the <a href="QImage.html#pixel(int, int)"><tt>pixel</tt></a> function. The <a href="QImage.html#pixel(int, int)"><tt>pixel</tt></a> function returns the color as a QRgb value indepedent of the image's format.<p>In case of monochrome and 8-bit images, the <a href="QImage.html#numColors()"><tt>numColors</tt></a> and <a href="QImage.html#colorTable()"><tt>colorTable</tt></a> functions provide information about the color components used to store the image data: The <a href="QImage.html#colorTable()"><tt>colorTable</tt></a> function returns the image's entire color table. To obtain a single entry, use the <a href="QImage.html#pixelIndex(com.trolltech.qt.core.QPoint)"><tt>pixelIndex</tt></a> function to retrieve the pixel index for a given pair of coordinates, then use the <a href="QImage.html#color(int)"><tt>color</tt></a> function to retrieve the color.</p>
<p>The <a href="QImage.html#hasAlphaChannel()"><tt>hasAlphaChannel</tt></a> function tells if the image's format respects the alpha channel, or not. The <a href="QImage.html#allGray()"><tt>allGray</tt></a> and <a href="QImage.html#isGrayscale()"><tt>isGrayscale</tt></a> functions tell whether an image's colors are all shades of gray.</p>
<p>See also the Pixel Manipulation</tt> and Image Transformations</tt> sections.</p>
</td></tr>
<tr valign="top" class="odd"><td>Text</td><td>The <a href="QImage.html#text(java.lang.String)"><tt>text</tt></a> function returns the image text associated with the given text key. An image's text keys can be retrieved using the <a href="QImage.html#textKeys()"><tt>textKeys</tt></a> function. Use the <a href="QImage.html#setText(java.lang.String, java.lang.String)"><tt>setText</tt></a> function to alter an image's text.</td></tr>
<tr valign="top" class="even"><td>Low-level information</td><td>The <a href="QImage.html#depth()"><tt>depth</tt></a> function returns the depth of the image. The supported depths are 1 (monochrome), 8 and 32 (for more information see the Image Formats</tt> section).<p>The <a href="QImage.html#format()"><tt>format</tt></a>, <a href="QImage.html#bytesPerLine()"><tt>bytesPerLine</tt></a>, and <a href="QImage.html#numBytes()"><tt>numBytes</tt></a> functions provide low-level information about the data stored in the image.</p>
<p>The <a href="QImage.html#cacheKey()"><tt>cacheKey</tt></a> function returns a number that uniquely identifies the contents of this <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> object.</p>
</td></tr>
</table></p>
<a name="pixel-manipulation"></a>
<h3>Pixel Manipulation</h3>
<p>The functions used to manipulate an image's pixels depend on the image format. The reason is that monochrome and 8-bit images are index-based and use a color lookup table, while 32-bit images store ARGB values directly. For more information on image formats, see the <a href="QImage.html#image-formats">Image Formats</tt></a> section.</p>
<p>In case of a 32-bit image, the <a href="QImage.html#setPixel(int, int, int)"><tt>setPixel</tt></a> function can be used to alter the color of the pixel at the given coordinates to any other color specified as an ARGB quadruplet. To make a suitable QRgb value, use the qRgb() (adding a default alpha component to the given RGB values, i.e&#x2e; creating an opaque color) or qRgba() function. For example:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><img src="%2E%2E/images/qimage-32bit_scaled.png" /></td><td><pre>    QImage image(3, 3, QImage::Format_RGB32);
    QRgb value;

    value = qRgb(189, 149, 39); <span class="comment">// 0xffbd9527</span>
    image.setPixel(1, 1, value);

    value = qRgb(122, 163, 39); <span class="comment">// 0xff7aa327</span>
    image.setPixel(0, 1, value);
    image.setPixel(1, 0, value);

    value = qRgb(237, 187, 51); <span class="comment">// 0xffedba31</span>
    image.setPixel(2, 1, value);</pre>
</td></tr>
<thead><tr valign="top" class="qt-style"><th colspan="2">32-bit</th></tr></thead>
</table></p>
<p>In case of a 8-bit and monchrome images , the pixel value is only an index from the image's color table. So the <a href="QImage.html#setPixel(int, int, int)"><tt>setPixel</tt></a> function can only be used to alter the color of the pixel at the given coordinates to a predefined color from the image's color table, i.e&#x2e; it can only change the pixel's index value. To alter or add a color to an image's color table, use the <a href="QImage.html#setColor(int, int)"><tt>setColor</tt></a> function.</p>
<p>An entry in the color table is an ARGB quadruplet encoded as an QRgb value. Use the qRgb() and qRgba() functions to make a suitable QRgb value for use with the <a href="QImage.html#setColor(int, int)"><tt>setColor</tt></a> function. For example:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><img src="%2E%2E/images/qimage-8bit_scaled.png" /></td><td><pre>    QImage image(3, 3, QImage::Format_Indexed8);
    QRgb value;

    value = qRgb(122, 163, 39); <span class="comment">// 0xff7aa327</span>
    image.setColor(0, value);

    value = qRgb(237, 187, 51); <span class="comment">// 0xffedba31</span>
    image.setColor(1, value);

    value = qRgb(189, 149, 39); <span class="comment">// 0xffbd9527</span>
    image.setColor(2, value);

    image.setPixel(0, 1, 0);
    image.setPixel(1, 0, 0);
    image.setPixel(1, 1, 2);
    image.setPixel(2, 1, 1);</pre>
</td></tr>
<thead><tr valign="top" class="qt-style"><th colspan="2">8-bit</th></tr></thead>
</table></p>
<p><a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> also provide the <a href="QImage.html#scanLine(int)"><tt>scanLine</tt></a> function which returns a pointer to the pixel data at the scanline with the given index, and the <a href="QImage.html#bits()"><tt>bits</tt></a> function which returns a pointer to the first pixel data (this is equivalent to <tt>scanLine(0)</tt>).</p>
<a name="image-formats"></a>
<h3>Image Formats</h3>
<p>Each pixel stored in a <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> is represented by an integer. The size of the integer varies depending on the format. <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> supports several image formats described by the <a href="QImage.html#Format-enum">Format</tt></a> enum. The monochrome (1-bit), 8-bit and 32-bit images are available in all versions of Qt. In addition Qtopia Core also supports 2-bit, 4-bit, and 16-bit images. For more information about the Qtopia specific formats, see the documentation of the <a href="QImage.html#Format-enum">Format</tt></a> enum.</p>
<p>Monochrome images are stored using 1-bit indexes into a color table with at most two colors. There are two different types of monochrome images: big endian (MSB first) or little endian (LSB first) bit order.</p>
<p>8-bit images are stored using 8-bit indexes into a color table, i.e&#x2e; they have a single byte per pixel. The color table is a QVector&lt;QRgb&gt;, and the QRgb typedef is equivalent to an unsigned int containing an ARGB quadruplet on the format 0xAARRGGBB.</p>
<p>32-bit images have no color table; instead, each pixel contains an QRgb value. There are three different types of 32-bit images storing RGB (i.e&#x2e; 0xffRRGGBB), ARGB and premultiplied ARGB values respectively. In the premultiplied format the red, green, and blue channels are multiplied by the alpha component divided by 255.</p>
<p>An image's format can be retrieved using the <a href="QImage.html#format()"><tt>format</tt></a> function. Use the <a href="QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>convertToFormat</tt></a> functions to convert an image into another format. The <a href="QImage.html#allGray()"><tt>allGray</tt></a> and <a href="QImage.html#isGrayscale()"><tt>isGrayscale</tt></a> functions tell whether a color image can safely be converted to a grayscale image.</p>
<a name="image-transformations"></a>
<h3>Image Transformations</h3>
<p><a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> supports a number of functions for creating a new image that is a transformed version of the original: The <a href="QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>createAlphaMask</tt></a> function builds and returns a 1-bpp mask from the alpha buffer in this image, and the <a href="QImage.html#createHeuristicMask(boolean)"><tt>createHeuristicMask</tt></a> function creates and returns a 1-bpp heuristic mask for this image. The latter function works by selecting a color from one of the corners, then chipping away pixels of that color starting at all the edges.</p>
<p>The <a href="QImage.html#mirrored(boolean, boolean)"><tt>mirrored</tt></a> function returns a mirror of the image in the desired direction, the <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)"><tt>scaled</tt></a> returns a copy of the image scaled to a rectangle of the desired measures, the <a href="QImage.html#rgbSwapped()"><tt>rgbSwapped</tt></a> function constructs a BGR image from a RGB image, and the <a href="QImage.html#alphaChannel()"><tt>alphaChannel</tt></a> function constructs an image from this image's alpha channel.</p>
<p>The <a href="QImage.html#scaledToWidth(int, com.trolltech.qt.core.Qt.TransformationMode)"><tt>scaledToWidth</tt></a> and <a href="QImage.html#scaledToHeight(int, com.trolltech.qt.core.Qt.TransformationMode)"><tt>scaledToHeight</tt></a> functions return scaled copies of the image.</p>
<p>The <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a> function returns a copy of the image that is transformed with the given transformation matrix and transformation mode: Internally, the transformation matrix is adjusted to compensate for unwanted translation, i.e&#x2e; <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a> returns the smallest image containing all transformed points of the original image. The static <a href="QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)"><tt>trueMatrix</tt></a> function returns the actual matrix used for transforming the image.</p>
<p>There are also functions for changing attributes of an image in-place:</p>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Function</th><th>Description</th></tr></thead>
<tr valign="top" class="odd"><td><a href="QImage.html#setAlphaChannel(com.trolltech.qt.gui.QImage)"><tt>setAlphaChannel</tt></a></td><td>Sets the alpha channel of the image.</td></tr>
<tr valign="top" class="even"><td><a href="QImage.html#setDotsPerMeterX(int)"><tt>setDotsPerMeterX</tt></a></td><td>Defines the aspect ratio by setting the number of pixels that fit horizontally in a physical meter.</td></tr>
<tr valign="top" class="odd"><td><a href="QImage.html#setDotsPerMeterY(int)"><tt>setDotsPerMeterY</tt></a></td><td>Defines the aspect ratio by setting the number of pixels that fit vertically in a physical meter.</td></tr>
<tr valign="top" class="even"><td><a href="QImage.html#fill(int)"><tt>fill</tt></a></td><td>Fills the entire image with the given pixel value.</td></tr>
<tr valign="top" class="odd"><td><a href="QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)"><tt>invertPixels</tt></a></td><td>Inverts all pixel values in the image using the given <a href="QImage.html#InvertMode-enum"><tt>InvertMode</tt></a> value.</td></tr>
<tr valign="top" class="even"><td><a href="QImage.html#setColorTable(java.util.List<java.lang.Integer>)"><tt>setColorTable</tt></a></td><td>Sets the color table used to translate color indexes. Only monochrome and 8-bit formats.</td></tr>
<tr valign="top" class="odd"><td><a href="QImage.html#setNumColors(int)"><tt>setNumColors</tt></a></td><td>Resizes the color table. Only monochrome and 8-bit formats.</td></tr>
</table></p>
<a name="legal-information"></a>
<h3>Legal Information</h3>
<p>For smooth scaling, the <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a> functions use code based on smooth scaling algorithm by Daniel M. Duley.</p>
<div style="padding: 0.5em; background: #e0e0e0; color: black"><p>Copyright (C) 2004, 2005 Daniel M. Duley</p>
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
<p>1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>
<p>THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
</div>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QImageReader.html"><tt>QImageReader</tt></a>, 
<a href="QImageWriter.html"><tt>QImageWriter</tt></a>, 
<a href="QPixmap.html"><tt>QPixmap</tt></a>, 
<a href="%2E%2E/svg/QSvgRenderer.html"><tt>QSvgRenderer</tt></a>, 
<CODE>Composition Example</tt></CODE>, 
<CODE>Viewer Example</tt></CODE>, 
<CODE>Example</tt></CODE>, 
<CODE>Example</tt></CODE></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&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The following image formats are available in all versions of Qt.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.InvertMode.html" title="enum in com.trolltech.qt.gui">QImage.InvertMode</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum type is used to describe how pixel values should be inverted in the <a href="QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)"><tt>invertPixels</tt></a> function.</TD>
</TR>
</TABLE>
&nbsp;<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>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<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>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<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>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<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>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<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>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<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>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<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>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<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>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<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>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== 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/QImage.html#QImage()">QImage</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a null image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#QImage(byte[], int, int, com.trolltech.qt.gui.QImage.Format)">QImage</A></B>(byte[]&nbsp;data,
       int&nbsp;width,
       int&nbsp;height,
       <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an image with the given <tt>width</tt>, <tt>height</tt> and
<tt>format</tt>, that uses an existing read-only memory buffer,
<tt>data</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#QImage(int, int, com.trolltech.qt.gui.QImage.Format)">QImage</A></B>(int&nbsp;width,
       int&nbsp;height,
       <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an image with the given <tt>width</tt>, <tt>height</tt> and <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#QImage(com.trolltech.qt.gui.QImage)">QImage</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a shallow copy of the given <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#QImage(com.trolltech.qt.QNativePointer, int, int, int, com.trolltech.qt.gui.QImage.Format)">QImage</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;data,
       int&nbsp;width,
       int&nbsp;height,
       int&nbsp;bytesPerLine,
       <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an image with the given <tt>width</tt>, <tt>height</tt> and <tt>format</tt>, that uses an existing memory buffer, <tt>data</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)">QImage</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
       <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an image with the given <tt>size</tt> and <tt>format</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#QImage(java.lang.String)">QImage</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded constructor provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#QImage(java.lang.String[])">QImage</A></B>(java.lang.String[]&nbsp;xpm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an image from the given <tt>xpm</tt> image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#QImage(java.lang.String, java.lang.String)">QImage</A></B>(java.lang.String&nbsp;fileName,
       java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an image and tries to load the image from the file with the
given <tt>fileName</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#allGray()">allGray</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if all the colors in the image are shades of gray (i.e&#x2e; their red, green and blue components are equal); otherwise false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#alphaChannel()">alphaChannel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the alpha channel of the image as a new grayscale <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> in which each pixel's red, green, and blue values are given the alpha value of the original image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#bits()">bits</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pointer to the first pixel data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#bytesPerLine()">bytesPerLine</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of bytes per image scanline.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#cacheKey()">cacheKey</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a number that identifies the contents of this <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#color(int)">color</A></B>(int&nbsp;i)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color in the color table at index <tt>i</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#colorTable()">colorTable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list of the colors contained in the image's color table, or an empty list if the image does not have a color table</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format)">convertToFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>convertToFormat</tt></a>(<tt>f</tt>, Qt::AutoColor).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, java.util.List)">convertToFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                java.util.List&lt;java.lang.Integer&gt;&nbsp;colorTable)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image converted to the given <tt>format</tt>,
using the specified <tt>colorTable</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, java.util.List, com.trolltech.qt.core.Qt.ImageConversionFlag...)">convertToFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                java.util.List&lt;java.lang.Integer&gt;&nbsp;colorTable,
                <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlag.html" title="enum in com.trolltech.qt.core">Qt.ImageConversionFlag</A>...&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image converted to the given <tt>f</tt>, using the specified <tt>colorTable</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, java.util.List, com.trolltech.qt.core.Qt.ImageConversionFlags)">convertToFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                java.util.List&lt;java.lang.Integer&gt;&nbsp;colorTable,
                <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlags.html" title="class in com.trolltech.qt.core">Qt.ImageConversionFlags</A>&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image converted to the given <tt>f</tt>, using the specified <tt>colorTable</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlag...)">convertToFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlag.html" title="enum in com.trolltech.qt.core">Qt.ImageConversionFlag</A>...&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image in the given <tt>f</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)">convertToFormat</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlags.html" title="class in com.trolltech.qt.core">Qt.ImageConversionFlags</A>&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image in the given <tt>f</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#copy()">copy</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#copy(int, int, int, int)">copy</tt></a>(QRect()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#copy(int, int, int, int)">copy</A></B>(int&nbsp;x,
     int&nbsp;y,
     int&nbsp;w,
     int&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The returned image is copied from the position (<tt>x</tt>, <tt>y</tt>) in this image, and will always have the given <tt>w</tt> and <tt>h</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#copy(com.trolltech.qt.core.QRect)">copy</A></B>(<A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a sub-area of the image as a new image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#copyOfBytes()">copyOfBytes</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#createAlphaMask()">createAlphaMask</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>createAlphaMask</tt></a>(Qt::AutoColor).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlag...)">createAlphaMask</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlag.html" title="enum in com.trolltech.qt.core">Qt.ImageConversionFlag</A>...&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Builds and returns a 1-bpp mask from the alpha buffer in this image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)">createAlphaMask</A></B>(<A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlags.html" title="class in com.trolltech.qt.core">Qt.ImageConversionFlags</A>&nbsp;flags)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Builds and returns a 1-bpp mask from the alpha buffer in this image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#createHeuristicMask()">createHeuristicMask</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#createHeuristicMask(boolean)"><tt>createHeuristicMask</tt></a>(true).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#createHeuristicMask(boolean)">createHeuristicMask</A></B>(boolean&nbsp;clipTight)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and returns a 1-bpp heuristic mask for this image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#createMaskFromColor(int)">createMaskFromColor</A></B>(int&nbsp;color)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#createMaskFromColor(int, com.trolltech.qt.core.Qt.MaskMode)"><tt>createMaskFromColor</tt></a>(<tt>color</tt>, Qt::MaskInColor).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#createMaskFromColor(int, com.trolltech.qt.core.Qt.MaskMode)">createMaskFromColor</A></B>(int&nbsp;color,
                    <A HREF="../../../../com/trolltech/qt/core/Qt.MaskMode.html" title="enum in com.trolltech.qt.core">Qt.MaskMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and returns a mask for this image based on the given <tt>color</tt> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#depth()">depth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the depth of the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#devType()">devType</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#dotsPerMeterX()">dotsPerMeterX</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of pixels that fit horizontally in a physical meter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#dotsPerMeterY()">dotsPerMeterY</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of pixels that fit vertically in a physical meter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;other)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#fill(int)">fill</A></B>(int&nbsp;pixel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fills the entire image with the given <tt>pixel</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#format()">format</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the format of the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<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/QImage.html#fromData(com.trolltech.qt.core.QByteArray)">fromData</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<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/QImage.html#fromData(com.trolltech.qt.core.QByteArray, java.lang.String)">fromData</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data,
         java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<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/QImage.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QImage instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#hasAlphaChannel()">hasAlphaChannel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the image has a format that respects the alpha channel, otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#height()">height</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the height of the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#heightMM()">heightMM</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the height of the paint device in millimeters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#invertPixels()">invertPixels</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)"><tt>invertPixels</tt></a>(InvertRgb).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)">invertPixels</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.InvertMode.html" title="enum in com.trolltech.qt.gui">QImage.InvertMode</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inverts all pixel values in the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#isGrayscale()">isGrayscale</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For 32-bit images, this function is equivalent to <a href="QImage.html#allGray()"><tt>allGray</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#isNull()">isNull</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if it is a null image, otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#load(com.trolltech.qt.core.QIODevice)">load</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#load(com.trolltech.qt.core.QIODevice, java.lang.String)">load</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device,
     java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded function provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#load(java.lang.String)">load</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#load(java.lang.String, java.lang.String)">load</A></B>(java.lang.String&nbsp;fileName,
     java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads an image from the file with the given <tt>fileName</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#loadFromData(byte[])">loadFromData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#loadFromData(byte[], java.lang.String)">loadFromData</A></B>(byte[]&nbsp;data,
             java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads an image from the binary <tt>data</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#loadFromData(com.trolltech.qt.core.QByteArray)">loadFromData</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#loadFromData(com.trolltech.qt.core.QByteArray, java.lang.String)">loadFromData</A></B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data,
             java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#logicalDpiX()">logicalDpiX</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#logicalDpiY()">logicalDpiY</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric)">metric</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPaintDevice.PaintDeviceMetric.html" title="enum in com.trolltech.qt.gui">QPaintDevice.PaintDeviceMetric</A>&nbsp;metric)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the metric information for the given paint device <tt>metric</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#mirrored()">mirrored</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#mirrored(boolean, boolean)">mirrored</tt></a>(false, true).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#mirrored(boolean)">mirrored</A></B>(boolean&nbsp;horizontally)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#mirrored(boolean, boolean)">mirrored</tt></a>(<tt>horizontally</tt>, true).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#mirrored(boolean, boolean)">mirrored</A></B>(boolean&nbsp;horizontally,
         boolean&nbsp;vertically)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a mirror of the image, mirrored in the horizontal and/or the vertical direction depending on whether <tt>horizontally</tt> and <tt>vertically</tt> are set to true or false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#nativePointerArray(com.trolltech.qt.gui.QImage[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>[]&nbsp;array)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns a QNativePointer that is pointing to the specified QImage array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#numBytes()">numBytes</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of bytes occupied by the image data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#numColors()">numColors</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the color table for the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#offset()">offset</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of pixels by which the image is intended to be offset by when positioning relative to other images.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintEngine.html" title="class in com.trolltech.qt.gui">QPaintEngine</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#paintEngine()">paintEngine</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#paintingActive()">paintingActive</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the device is currently being painted on, i.e&#x2e; someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#physicalDpiX()">physicalDpiX</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the horizontal resolution of the device in dots per inch.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#physicalDpiY()">physicalDpiY</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the horizontal resolution of the device in dots per inch.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#pixel(int, int)">pixel</A></B>(int&nbsp;x,
      int&nbsp;y)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color of the pixel at coordinates (<tt>x</tt>, <tt>y</tt>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#pixel(com.trolltech.qt.core.QPoint)">pixel</A></B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;pt)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color of the pixel at the given <tt>pt</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#pixelIndex(int, int)">pixelIndex</A></B>(int&nbsp;x,
           int&nbsp;y)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the pixel index at (<tt>x</tt>, <tt>y</tt>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#pixelIndex(com.trolltech.qt.core.QPoint)">pixelIndex</A></B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;pt)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the pixel index at the given <tt>pt</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a QImage from arg__1.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#rect()">rect</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the enclosing rectangle (0, 0, <a href="QImage.html#width()"><tt>width</tt></a>, <a href="QImage.html#height()"><tt>height</tt></a>) of the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#rgbSwapped()">rgbSwapped</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> in which the values of the red and blue components of all pixels have been swapped, effectively converting an RGB image to an BGR image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#save(com.trolltech.qt.core.QIODevice)">save</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;dev)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded function provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#save(com.trolltech.qt.core.QIODevice, java.lang.String)">save</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;dev,
     java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#save(com.trolltech.qt.core.QIODevice, java.lang.String, int)">save</A></B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;dev,
     java.lang.String&nbsp;format,
     int&nbsp;quality)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#save(java.lang.String)">save</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#save(java.lang.String, java.lang.String)">save</A></B>(java.lang.String&nbsp;fileName,
     java.lang.String&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded method provided for convenience.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#save(java.lang.String, java.lang.String, int)">save</A></B>(java.lang.String&nbsp;fileName,
     java.lang.String&nbsp;format,
     int&nbsp;quality)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the image to the file with the given <tt>fileName</tt>, using the
given image file <tt>format</tt> and <tt>quality</tt> factor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaled(int, int)">scaled</A></B>(int&nbsp;w,
       int&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</tt></a>(<tt>w</tt>, <tt>h</tt>, Qt::IgnoreAspectRatio, Qt::FastTransformation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaled(int, int, com.trolltech.qt.core.Qt.AspectRatioMode)">scaled</A></B>(int&nbsp;w,
       int&nbsp;h,
       <A HREF="../../../../com/trolltech/qt/core/Qt.AspectRatioMode.html" title="enum in com.trolltech.qt.core">Qt.AspectRatioMode</A>&nbsp;aspectMode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</tt></a>(<tt>w</tt>, <tt>h</tt>, <tt>aspectMode</tt>, Qt::FastTransformation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaled(int, int, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</A></B>(int&nbsp;w,
       int&nbsp;h,
       <A HREF="../../../../com/trolltech/qt/core/Qt.AspectRatioMode.html" title="enum in com.trolltech.qt.core">Qt.AspectRatioMode</A>&nbsp;aspectMode,
       <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image scaled to a rectangle with the given <tt>w</tt> and <tt>h</tt> according to the given <tt>aspectMode</tt> and <tt>mode</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaled(com.trolltech.qt.core.QSize)">scaled</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;s)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</tt></a>(<tt>s</tt>, Qt::IgnoreAspectRatio, Qt::FastTransformation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode)">scaled</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;s,
       <A HREF="../../../../com/trolltech/qt/core/Qt.AspectRatioMode.html" title="enum in com.trolltech.qt.core">Qt.AspectRatioMode</A>&nbsp;aspectMode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</tt></a>(<tt>s</tt>, <tt>aspectMode</tt>, Qt::FastTransformation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;s,
       <A HREF="../../../../com/trolltech/qt/core/Qt.AspectRatioMode.html" title="enum in com.trolltech.qt.core">Qt.AspectRatioMode</A>&nbsp;aspectMode,
       <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image scaled to a rectangle defined by the given <tt>s</tt> according to the given <tt>aspectMode</tt> and <tt>mode</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaledToHeight(int)">scaledToHeight</A></B>(int&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#scaledToHeight(int, com.trolltech.qt.core.Qt.TransformationMode)"><tt>scaledToHeight</tt></a>(<tt>h</tt>, Qt::FastTransformation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaledToHeight(int, com.trolltech.qt.core.Qt.TransformationMode)">scaledToHeight</A></B>(int&nbsp;h,
               <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a scaled copy of the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaledToWidth(int)">scaledToWidth</A></B>(int&nbsp;w)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#scaledToWidth(int, com.trolltech.qt.core.Qt.TransformationMode)"><tt>scaledToWidth</tt></a>(<tt>w</tt>, Qt::FastTransformation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#scaledToWidth(int, com.trolltech.qt.core.Qt.TransformationMode)">scaledToWidth</A></B>(int&nbsp;w,
              <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a scaled copy of the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#scanLine(int)">scanLine</A></B>(int&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pointer to the pixel data at the scanline with index <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setAlphaChannel(com.trolltech.qt.gui.QImage)">setAlphaChannel</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;alphaChannel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the alpha channel of this image to the given <tt>alphaChannel</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setColor(int, int)">setColor</A></B>(int&nbsp;i,
         int&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the color at the given <tt>i</tt> in the color table, to the given to <tt>c</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setColorTable(java.util.List)">setColorTable</A></B>(java.util.List&lt;java.lang.Integer&gt;&nbsp;colors)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the color table used to translate color indexes to QRgb values, to the specified <tt>colors</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setDotsPerMeterX(int)">setDotsPerMeterX</A></B>(int&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of pixels that fit horizontally in a physical meter, to <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setDotsPerMeterY(int)">setDotsPerMeterY</A></B>(int&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of pixels that fit vertically in a physical meter, to <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setNumColors(int)">setNumColors</A></B>(int&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resizes the color table to contain <tt>arg__1</tt> entries.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setOffset(com.trolltech.qt.core.QPoint)">setOffset</A></B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the the number of pixels by which the image is intended to be offset by when positioning relative to other images, to <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setPixel(int, int, int)">setPixel</A></B>(int&nbsp;x,
         int&nbsp;y,
         int&nbsp;index_or_rgb)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the pixel index or color at (<tt>x</tt>, <tt>y</tt>) to <tt>index_or_rgb</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setPixel(com.trolltech.qt.core.QPoint, int)">setPixel</A></B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;pt,
         int&nbsp;index_or_rgb)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the pixel index or color at the given <tt>pt</tt> to <tt>index_or_rgb</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#setText(java.lang.String, java.lang.String)">setText</A></B>(java.lang.String&nbsp;key,
        java.lang.String&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the image text to the given <tt>value</tt> and associate it with the given <tt>key</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#size()">size</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the image, i.e&#x2e; its <a href="QImage.html#width()"><tt>width</tt></a> and <a href="QImage.html#height()"><tt>height</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#text()">text</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#text(java.lang.String)">text</tt></a>(QString()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#text(java.lang.String)">text</A></B>(java.lang.String&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the image text associated with the given <tt>key</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;java.lang.String&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#textKeys()">textKeys</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text keys for this image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#transformed(com.trolltech.qt.gui.QMatrix)">transformed</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A>&nbsp;matrix)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)">transformed</tt></a>(<tt>matrix</tt>, Qt::FastTransformation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#transformed(com.trolltech.qt.gui.QMatrix, com.trolltech.qt.core.Qt.TransformationMode)">transformed</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A>&nbsp;matrix,
            <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image that is transformed using the given transformation <tt>matrix</tt> and transformation <tt>mode</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#transformed(com.trolltech.qt.gui.QTransform)">transformed</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A>&nbsp;matrix)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)">transformed</tt></a>(<tt>matrix</tt>, Qt::FastTransformation).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<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/QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)">transformed</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A>&nbsp;matrix,
            <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a copy of the image that is transformed using the given transformation <tt>matrix</tt> and transformation <tt>mode</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#trueMatrix(com.trolltech.qt.gui.QMatrix, int, int)">trueMatrix</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A>&nbsp;arg__1,
           int&nbsp;w,
           int&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the actual matrix used for transforming an image with the given <tt>w</tt>, <tt>h</tt> and <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)">trueMatrix</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A>&nbsp;arg__1,
           int&nbsp;w,
           int&nbsp;h)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the actual matrix used for transforming an image with the given <tt>w</tt>, <tt>h</tt> and <tt>arg__1</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#valid(int, int)">valid</A></B>(int&nbsp;x,
      int&nbsp;y)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if <a href="%2E%2E/core/QPoint.html"><tt>QPoint</tt></a>(<tt>x</tt>, <tt>y</tt>) is a valid coordinate pair within the image; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#valid(com.trolltech.qt.core.QPoint)">valid</A></B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;pt)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if <tt>pt</tt> is a valid coordinate pair within the image; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#width()">width</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the width of the image.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#widthMM()">widthMM</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the width of the paint device in millimeters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QImage.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes thisQImage to arg__1.</TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;<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>
&nbsp;<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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;
<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="QImage(com.trolltech.qt.QNativePointer, int, int, int, com.trolltech.qt.gui.QImage.Format)"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;data,
              int&nbsp;width,
              int&nbsp;height,
              int&nbsp;bytesPerLine,
              <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;format)</PRE>
<DL>
<DD><p>Constructs an image with the given <tt>width</tt>, <tt>height</tt> and <tt>format</tt>, that uses an existing memory buffer, <tt>data</tt>. The <tt>width</tt> and <tt>height</tt> must be specified in pixels. <tt>bytesPerLine</tt> specifies the number of bytes per line (stride).</p>
<p>The buffer must remain valid throughout the life of the <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a>. The image does not delete the buffer at destruction.</p>
<p>If the image is in an indexed color format, set the color table for the image using <a href="QImage.html#setColorTable(java.util.List<java.lang.Integer>)"><tt>setColorTable</tt></a>.</p>
<P>
</DL>
<HR>

<A NAME="QImage(int, int, com.trolltech.qt.gui.QImage.Format)"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>(int&nbsp;width,
              int&nbsp;height,
              <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;format)</PRE>
<DL>
<DD><p>Constructs an image with the given <tt>width</tt>, <tt>height</tt> and <tt>format</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QImage(com.trolltech.qt.gui.QImage)"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Constructs a shallow copy of the given <tt>arg__1</tt>.</p>
<p>For more information about shallow copies, see the Implicit Data Sharing</tt> documentation.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QImage.html#copy(int, int, int, int)"><tt>copy</tt></a></DL>
</DL>
<HR>

<A NAME="QImage()"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>()</PRE>
<DL>
<DD><p>Constructs a null image.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QImage.html#isNull()"><tt>isNull</tt></a></DL>
</DL>
<HR>

<A NAME="QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;size,
              <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;format)</PRE>
<DL>
<DD><p>Constructs an image with the given <tt>size</tt> and <tt>format</tt>.</p>
<P>
</DL>
<HR>

<A NAME="QImage(java.lang.String[])"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>(java.lang.String[]&nbsp;xpm)</PRE>
<DL>
<DD>Constructs an image from the given <tt>xpm</tt> image.
<p>
Make sure that the image is a valid XPM image. Errors are silently
ignored.
<P>
</DL>
<HR>

<A NAME="QImage(byte[], int, int, com.trolltech.qt.gui.QImage.Format)"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>(byte[]&nbsp;data,
              int&nbsp;width,
              int&nbsp;height,
              <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;format)</PRE>
<DL>
<DD>Constructs an image with the given <tt>width</tt>, <tt>height</tt> and
<tt>format</tt>, that uses an existing read-only memory buffer,
<tt>data</tt>. The <tt>width</tt> and <tt>height</tt> must be
specified in pixels, <tt>data</tt> must be 32-bit aligned, and each
scanline of data in the image must also be 32-bit aligned.
<p>
The buffer must remain valid throughout the life of the QImage and all
copies that have not been modified or otherwise detached from the
original buffer. The image does not delete the buffer at destruction.
<p>
If the image is in an indexed color format, set the color table
for the image using setColorTable().
<p>
Unlike the similar QImage constructor that takes a non-const data
buffer, this version will never alter the contents of the buffer. For
example, calling QImage::bits() will return a deep copy of the image,
rather than the buffer passed to the constructor.  This allows for the
efficiency of constructing a QImage from raw data, without the
possibility of the raw data being changed.
<P>
</DL>
<HR>

<A NAME="QImage(java.lang.String, java.lang.String)"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>(java.lang.String&nbsp;fileName,
              java.lang.String&nbsp;format)</PRE>
<DL>
<DD>Constructs an image and tries to load the image from the file with the
given <tt>fileName</tt>.
<p>
The loader attempts to read the image using the specified
<tt>format</tt>. If the <tt>format</tt> is not specified (which is the
default), the loader probes the file for a header to guess the file
format.
<p>
If the loading of the image failed, this object is a null image.
<p>
The file name can either refer to an actual file on disk or to one of
the application's embedded resources. See the
\l{resources.html}{Resource System} overview for details on how to
embed images and other resource files in the application's executable.
<P>
</DL>
<HR>

<A NAME="QImage(java.lang.String)"><!-- --></A><H3>
QImage</H3>
<PRE>
public <B>QImage</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD>This is an overloaded constructor provided for convenience.
<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="allGray()"><!-- --></A><H3>
allGray</H3>
<PRE>
public final boolean <B>allGray</B>()</PRE>
<DL>
<DD><p>Returns true if all the colors in the image are shades of gray (i.e&#x2e; their red, green and blue components are equal); otherwise false.</p>
<p>Note that this function is slow for images without color table.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#isGrayscale()"><tt>isGrayscale</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="alphaChannel()"><!-- --></A><H3>
alphaChannel</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>alphaChannel</B>()</PRE>
<DL>
<DD><p>Returns the alpha channel of the image as a new grayscale <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> in which each pixel's red, green, and blue values are given the alpha value of the original image. The color depth of the returned image is 8-bit.</p>
<p>You can see an example of use of this function in <a href="QPixmap.html"><tt>QPixmap</tt></a>'s alphaChannel(), which works in the same way as this function on QPixmaps.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setAlphaChannel(com.trolltech.qt.gui.QImage)"><tt>setAlphaChannel</tt></a>, 
<a href="QPixmap.html#pixmap-information"><tt>Pixmap sa setAlphaChannel(), hasAlphaChannel(), {QImage#Image Transformations}{Image Transformations}</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bits()"><!-- --></A><H3>
bits</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>bits</B>()</PRE>
<DL>
<DD><p>Returns a pointer to the first pixel data. This is equivalent to <a href="QImage.html#scanLine(int)"><tt>scanLine</tt></a>(0).</p>
<p>Note that <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> uses implicit data sharing</tt>. This function performs a deep copy of the shared pixel data, thus ensuring that this <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> is the only one using the current return value.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#scanLine(int)"><tt>scanLine</tt></a>, 
<a href="QImage.html#numBytes()"><tt>numBytes</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bytesPerLine()"><!-- --></A><H3>
bytesPerLine</H3>
<PRE>
public final int <B>bytesPerLine</B>()</PRE>
<DL>
<DD><p>Returns the number of bytes per image scanline.</p>
<p>This is equivalent to <a href="QImage.html#numBytes()"><tt>numBytes</tt></a>/ <a href="QImage.html#height()"><tt>height</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#scanLine(int)"><tt>scanLine</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="cacheKey()"><!-- --></A><H3>
cacheKey</H3>
<PRE>
public final long <B>cacheKey</B>()</PRE>
<DL>
<DD><p>Returns a number that identifies the contents of this <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> object. Distinct <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> objects can only have the same key if they refer to the same contents.</p>
<p>The key will change when the image is altered.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="color(int)"><!-- --></A><H3>
color</H3>
<PRE>
public final int <B>color</B>(int&nbsp;i)</PRE>
<DL>
<DD><p>Returns the color in the color table at index <tt>i</tt>. The first color is at index 0.</p>
<p>The colors in an image's color table are specified as ARGB quadruplets (QRgb). Use the qAlpha(), qRed(), qGreen(), and qBlue() functions to get the color value components.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setColor(int, int)"><tt>setColor</tt></a>, 
<a href="QImage.html#pixelIndex(com.trolltech.qt.core.QPoint)"><tt>pixelIndex</tt></a>, 
<CODE>Manipulation</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="colorTable()"><!-- --></A><H3>
colorTable</H3>
<PRE>
public final java.util.List&lt;java.lang.Integer&gt; <B>colorTable</B>()</PRE>
<DL>
<DD><p>Returns a list of the colors contained in the image's color table, or an empty list if the image does not have a color table</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setColorTable(java.util.List<java.lang.Integer>)"><tt>setColorTable</tt></a>, 
<a href="QImage.html#numColors()"><tt>numColors</tt></a>, 
<a href="QImage.html#color(int)"><tt>color</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="convertToFormat(com.trolltech.qt.gui.QImage.Format, java.util.List, com.trolltech.qt.core.Qt.ImageConversionFlag...)"><!-- --></A><H3>
convertToFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>convertToFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                                    java.util.List&lt;java.lang.Integer&gt;&nbsp;colorTable,
                                    <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlag.html" title="enum in com.trolltech.qt.core">Qt.ImageConversionFlag</A>...&nbsp;flags)</PRE>
<DL>
<DD><p>Returns a copy of the image converted to the given <tt>f</tt>, using the specified <tt>colorTable</tt>.</p>
<p>Conversion from 32 bit to 8 bit indexed is a slow operation and will use a straightforward nearest color approach, with no dithering.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="convertToFormat(com.trolltech.qt.gui.QImage.Format, java.util.List)"><!-- --></A><H3>
convertToFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>convertToFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                                    java.util.List&lt;java.lang.Integer&gt;&nbsp;colorTable)</PRE>
<DL>
<DD>Returns a copy of the image converted to the given <tt>format</tt>,
using the specified <tt>colorTable</tt>.
<p>
Conversion from 32 bit to 8 bit indexed is a slow operation and
will use a straightforward nearest color approach, with no
dithering.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="convertToFormat(com.trolltech.qt.gui.QImage.Format, java.util.List, com.trolltech.qt.core.Qt.ImageConversionFlags)"><!-- --></A><H3>
convertToFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>convertToFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                                    java.util.List&lt;java.lang.Integer&gt;&nbsp;colorTable,
                                    <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlags.html" title="class in com.trolltech.qt.core">Qt.ImageConversionFlags</A>&nbsp;flags)</PRE>
<DL>
<DD><p>Returns a copy of the image converted to the given <tt>f</tt>, using the specified <tt>colorTable</tt>.</p>
<p>Conversion from 32 bit to 8 bit indexed is a slow operation and will use a straightforward nearest color approach, with no dithering.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlag...)"><!-- --></A><H3>
convertToFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>convertToFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                                    <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlag.html" title="enum in com.trolltech.qt.core">Qt.ImageConversionFlag</A>...&nbsp;flags)</PRE>
<DL>
<DD><p>Returns a copy of the image in the given <tt>f</tt>.</p>
<p>The specified image conversion <tt>flags</tt> control how the image data is handled during the conversion process.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Format</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="convertToFormat(com.trolltech.qt.gui.QImage.Format)"><!-- --></A><H3>
convertToFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>convertToFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>convertToFormat</tt></a>(<tt>f</tt>, Qt::AutoColor).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)"><!-- --></A><H3>
convertToFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>convertToFormat</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A>&nbsp;f,
                                    <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlags.html" title="class in com.trolltech.qt.core">Qt.ImageConversionFlags</A>&nbsp;flags)</PRE>
<DL>
<DD><p>Returns a copy of the image in the given <tt>f</tt>.</p>
<p>The specified image conversion <tt>flags</tt> control how the image data is handled during the conversion process.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Format</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="copy()"><!-- --></A><H3>
copy</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>copy</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#copy(int, int, int, int)">copy</tt></a>(QRect()).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="copy(com.trolltech.qt.core.QRect)"><!-- --></A><H3>
copy</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>copy</B>(<A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A>&nbsp;rect)</PRE>
<DL>
<DD><p>Returns a sub-area of the image as a new image.</p>
<p>The returned image is copied from the position (<tt>rect</tt>.x(), <tt>rect</tt>.y()) in this image, and will always have the size of the given <tt>rect</tt>.</p>
<p>In areas beyond this image, pixels are set to 0. For 32-bit RGB images, this means black; for 32-bit ARGB images, this means transparent black; for 8-bit images, this means the color with index 0 in the color table which can be anything; for 1-bit images, this means Qt::color0.</p>
<p>If the given <tt>rect</tt> is a null rectangle the entire image is copied.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="copy(int, int, int, int)"><!-- --></A><H3>
copy</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>copy</B>(int&nbsp;x,
                         int&nbsp;y,
                         int&nbsp;w,
                         int&nbsp;h)</PRE>
<DL>
<DD><p>The returned image is copied from the position (<tt>x</tt>, <tt>y</tt>) in this image, and will always have the given <tt>w</tt> and <tt>h</tt>. In areas beyond this image, pixels are set to 0.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlag...)"><!-- --></A><H3>
createAlphaMask</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>createAlphaMask</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlag.html" title="enum in com.trolltech.qt.core">Qt.ImageConversionFlag</A>...&nbsp;flags)</PRE>
<DL>
<DD><p>Builds and returns a 1-bpp mask from the alpha buffer in this image. Returns a null image if the image's format is QImage::Format_RGB32.</p>
<p>The <tt>flags</tt> argument is a bitwise-OR of the Qt::ImageConversionFlags, and controls the conversion process. Passing 0 for flags sets all the default options.</p>
<p>The returned image has little-endian bit order (i.e&#x2e; the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the <a href="QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>convertToFormat</tt></a> function.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#createHeuristicMask(boolean)"><tt>createHeuristicMask</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createAlphaMask()"><!-- --></A><H3>
createAlphaMask</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>createAlphaMask</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>createAlphaMask</tt></a>(Qt::AutoColor).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)"><!-- --></A><H3>
createAlphaMask</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>createAlphaMask</B>(<A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlags.html" title="class in com.trolltech.qt.core">Qt.ImageConversionFlags</A>&nbsp;flags)</PRE>
<DL>
<DD><p>Builds and returns a 1-bpp mask from the alpha buffer in this image. Returns a null image if the image's format is QImage::Format_RGB32.</p>
<p>The <tt>flags</tt> argument is a bitwise-OR of the Qt::ImageConversionFlags, and controls the conversion process. Passing 0 for flags sets all the default options.</p>
<p>The returned image has little-endian bit order (i.e&#x2e; the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the <a href="QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>convertToFormat</tt></a> function.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#createHeuristicMask(boolean)"><tt>createHeuristicMask</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createHeuristicMask()"><!-- --></A><H3>
createHeuristicMask</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>createHeuristicMask</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#createHeuristicMask(boolean)"><tt>createHeuristicMask</tt></a>(true).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createHeuristicMask(boolean)"><!-- --></A><H3>
createHeuristicMask</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>createHeuristicMask</B>(boolean&nbsp;clipTight)</PRE>
<DL>
<DD><p>Creates and returns a 1-bpp heuristic mask for this image.</p>
<p>The function works by selecting a color from one of the corners, then chipping away pixels of that color starting at all the edges. The four corners vote for which color is to be masked away. In case of a draw (this generally means that this function is not applicable to the image), the result is arbitrary.</p>
<p>The returned image has little-endian bit order (i.e&#x2e; the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the <a href="QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>convertToFormat</tt></a> function.</p>
<p>If <tt>clipTight</tt> is true (the default) the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels.</p>
<p>Note that this function disregards the alpha buffer.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>createAlphaMask</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="createMaskFromColor(int)"><!-- --></A><H3>
createMaskFromColor</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>createMaskFromColor</B>(int&nbsp;color)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#createMaskFromColor(int, com.trolltech.qt.core.Qt.MaskMode)"><tt>createMaskFromColor</tt></a>(<tt>color</tt>, Qt::MaskInColor).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createMaskFromColor(int, com.trolltech.qt.core.Qt.MaskMode)"><!-- --></A><H3>
createMaskFromColor</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>createMaskFromColor</B>(int&nbsp;color,
                                        <A HREF="../../../../com/trolltech/qt/core/Qt.MaskMode.html" title="enum in com.trolltech.qt.core">Qt.MaskMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Creates and returns a mask for this image based on the given <tt>color</tt> value. If the <tt>mode</tt> is MaskInColor (the default value), all pixels matching <tt>color</tt> will be opaque pixels in the mask. If <tt>mode</tt> is MaskOutColor, all pixels matching the given color will be transparent.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>createAlphaMask</tt></a>, 
<a href="QImage.html#createHeuristicMask(boolean)"><tt>createHeuristicMask</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="depth()"><!-- --></A><H3>
depth</H3>
<PRE>
public final int <B>depth</B>()</PRE>
<DL>
<DD><p>Returns the depth of the image.</p>
<p>The image depth is the number of bits used to encode a single pixel, also called bits per pixel (bpp) or bit planes of an image.</p>
<p>The supported depths are 1, 8 and 32.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#depth()">depth</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>convertToFormat</tt></a>, 
<CODE>Formats</tt></CODE>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="dotsPerMeterX()"><!-- --></A><H3>
dotsPerMeterX</H3>
<PRE>
public final int <B>dotsPerMeterX</B>()</PRE>
<DL>
<DD><p>Returns the number of pixels that fit horizontally in a physical meter. Together with <a href="QImage.html#dotsPerMeterY()"><tt>dotsPerMeterY</tt></a>, this number defines the intended scale and aspect ratio of the image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setDotsPerMeterX(int)"><tt>setDotsPerMeterX</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="dotsPerMeterY()"><!-- --></A><H3>
dotsPerMeterY</H3>
<PRE>
public final int <B>dotsPerMeterY</B>()</PRE>
<DL>
<DD><p>Returns the number of pixels that fit vertically in a physical meter. Together with <a href="QImage.html#dotsPerMeterX()"><tt>dotsPerMeterX</tt></a>, this number defines the intended scale and aspect ratio of the image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setDotsPerMeterY(int)"><tt>setDotsPerMeterY</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="fill(int)"><!-- --></A><H3>
fill</H3>
<PRE>
public final void <B>fill</B>(int&nbsp;pixel)</PRE>
<DL>
<DD><p>Fills the entire image with the given <tt>pixel</tt>.</p>
<p>If the depth of this image is 1, only the lowest bit is used. If you say fill(0), fill(2), etc., the image is filled with 0s. If you say fill(1), fill(3), etc., the image is filled with 1s. If the depth is 8, the lowest 8 bits are used and if the depth is 16 the lowest 16 bits are used.</p>
<p>Note: QImage::pixel() returns the color of the pixel at the given coordinates while QColor::pixel() returns the pixel value of the underlying window system (essentially an index value), so normally you will want to use QImage::pixel() to use a color from an existing image or QColor::rgb() to use a specific color.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#depth()"><tt>depth</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="format()"><!-- --></A><H3>
format</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A> <B>format</B>()</PRE>
<DL>
<DD><p>Returns the format of the image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Formats</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="hasAlphaChannel()"><!-- --></A><H3>
hasAlphaChannel</H3>
<PRE>
public final boolean <B>hasAlphaChannel</B>()</PRE>
<DL>
<DD><p>Returns true if the image has a format that respects the alpha channel, otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#alphaChannel()"><tt>alphaChannel</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="height()"><!-- --></A><H3>
height</H3>
<PRE>
public final int <B>height</B>()</PRE>
<DL>
<DD><p>Returns the height of the image.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#height()">height</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="heightMM()"><!-- --></A><H3>
heightMM</H3>
<PRE>
public final int <B>heightMM</B>()</PRE>
<DL>
<DD><p>Returns the height of the paint device in millimeters.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#heightMM()">heightMM</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#height()"><tt>height</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="invertPixels()"><!-- --></A><H3>
invertPixels</H3>
<PRE>
public final void <B>invertPixels</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)"><tt>invertPixels</tt></a>(InvertRgb).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="invertPixels(com.trolltech.qt.gui.QImage.InvertMode)"><!-- --></A><H3>
invertPixels</H3>
<PRE>
public final void <B>invertPixels</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.InvertMode.html" title="enum in com.trolltech.qt.gui">QImage.InvertMode</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Inverts all pixel values in the image.</p>
<p>The given invert <tt>arg__1</tt> only have a meaning when the image's depth is 32. The default <tt>arg__1</tt> is <a href="QImage.html#InvertMode-enum"><tt>InvertRgb</tt></a>, which leaves the alpha channel unchanged. If the <tt>arg__1</tt> is <a href="QImage.html#InvertMode-enum"><tt>InvertRgba</tt></a>, the alpha bits are also inverted.</p>
<p>Inverting an 8-bit image means to replace all pixels using color index <i>i</i> with a pixel using color index 255 minus <i>i</i>. The same is the case for a 1-bit image. Note that the color table is <i>not</i> changed.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isGrayscale()"><!-- --></A><H3>
isGrayscale</H3>
<PRE>
public final boolean <B>isGrayscale</B>()</PRE>
<DL>
<DD><p>For 32-bit images, this function is equivalent to <a href="QImage.html#allGray()"><tt>allGray</tt></a>.</p>
<p>For 8-bpp images, this function returns true if color(i) is QRgb(i, i, i) for all indexes of the color table; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#allGray()"><tt>allGray</tt></a>, 
<CODE>Formats</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="isNull()"><!-- --></A><H3>
isNull</H3>
<PRE>
public final boolean <B>isNull</B>()</PRE>
<DL>
<DD><p>Returns true if it is a null image, otherwise returns false.</p>
<p>A null image has all parameters set to zero and no allocated data.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="logicalDpiX()"><!-- --></A><H3>
logicalDpiX</H3>
<PRE>
public final int <B>logicalDpiX</B>()</PRE>
<DL>
<DD><p>Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from <a href="QImage.html#widthMM()"><tt>widthMM</tt></a>, but it varies on Windows.</p>
<p>Note that if the <a href="QImage.html#logicalDpiX()"><tt>logicalDpiX</tt></a> doesn't equal the <a href="QImage.html#physicalDpiX()"><tt>physicalDpiX</tt></a>, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the resolution mapping.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#logicalDpiX()">logicalDpiX</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#logicalDpiY()"><tt>logicalDpiY</tt></a>, 
<a href="QImage.html#physicalDpiX()"><tt>physicalDpiX</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="logicalDpiY()"><!-- --></A><H3>
logicalDpiY</H3>
<PRE>
public final int <B>logicalDpiY</B>()</PRE>
<DL>
<DD><p>Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from <a href="QImage.html#heightMM()"><tt>heightMM</tt></a>, but it varies on Windows.</p>
<p>Note that if the <a href="QImage.html#logicalDpiY()"><tt>logicalDpiY</tt></a> doesn't equal the <a href="QImage.html#physicalDpiY()"><tt>physicalDpiY</tt></a>, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the resolution mapping.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#logicalDpiY()">logicalDpiY</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#logicalDpiX()"><tt>logicalDpiX</tt></a>, 
<a href="QImage.html#physicalDpiY()"><tt>physicalDpiY</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="mirrored(boolean)"><!-- --></A><H3>
mirrored</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>mirrored</B>(boolean&nbsp;horizontally)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#mirrored(boolean, boolean)">mirrored</tt></a>(<tt>horizontally</tt>, true).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="mirrored()"><!-- --></A><H3>
mirrored</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>mirrored</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#mirrored(boolean, boolean)">mirrored</tt></a>(false, true).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="mirrored(boolean, boolean)"><!-- --></A><H3>
mirrored</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>mirrored</B>(boolean&nbsp;horizontally,
                             boolean&nbsp;vertically)</PRE>
<DL>
<DD><p>Returns a mirror of the image, mirrored in the horizontal and/or the vertical direction depending on whether <tt>horizontally</tt> and <tt>vertically</tt> are set to true or false.</p>
<p>Note that the original image is not changed.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="numBytes()"><!-- --></A><H3>
numBytes</H3>
<PRE>
public final int <B>numBytes</B>()</PRE>
<DL>
<DD><p>Returns the number of bytes occupied by the image data.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#bytesPerLine()"><tt>bytesPerLine</tt></a>, 
<a href="QImage.html#bits()"><tt>bits</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="numColors()"><!-- --></A><H3>
numColors</H3>
<PRE>
public final int <B>numColors</B>()</PRE>
<DL>
<DD><p>Returns the size of the color table for the image.</p>
<p>Notice that <a href="QImage.html#numColors()"><tt>numColors</tt></a> returns 0 for 32-bpp images because these images do not use color tables, but instead encode pixel values as ARGB quadruplets.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#numColors()">numColors</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setNumColors(int)"><tt>setNumColors</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="offset()"><!-- --></A><H3>
offset</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A> <B>offset</B>()</PRE>
<DL>
<DD><p>Returns the number of pixels by which the image is intended to be offset by when positioning relative to other images.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setOffset(com.trolltech.qt.core.QPoint)"><tt>setOffset</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="writeTo(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
writeTo</H3>
<PRE>
public final void <B>writeTo</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</PRE>
<DL>
<DD>Writes thisQImage to arg__1.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readFrom(com.trolltech.qt.core.QDataStream)"><!-- --></A><H3>
readFrom</H3>
<PRE>
public final void <B>readFrom</B>(<A HREF="../../../../com/trolltech/qt/core/QDataStream.html" title="class in com.trolltech.qt.core">QDataStream</A>&nbsp;arg__1)</PRE>
<DL>
<DD>Reads a QImage from arg__1.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paintingActive()"><!-- --></A><H3>
paintingActive</H3>
<PRE>
public final boolean <B>paintingActive</B>()</PRE>
<DL>
<DD><p>Returns true if the device is currently being painted on, i.e&#x2e; someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#paintingActive()">paintingActive</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QPainter::isActive</tt></DL>
</DD>
</DL>
<HR>

<A NAME="physicalDpiX()"><!-- --></A><H3>
physicalDpiX</H3>
<PRE>
public final int <B>physicalDpiX</B>()</PRE>
<DL>
<DD><p>Returns the horizontal resolution of the device in dots per inch.</p>
<p>Note that if the <a href="QImage.html#physicalDpiX()"><tt>physicalDpiX</tt></a> doesn't equal the <a href="QImage.html#logicalDpiX()"><tt>logicalDpiX</tt></a>, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the resolution mapping.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#physicalDpiX()">physicalDpiX</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#physicalDpiY()"><tt>physicalDpiY</tt></a>, 
<a href="QImage.html#logicalDpiX()"><tt>logicalDpiX</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="physicalDpiY()"><!-- --></A><H3>
physicalDpiY</H3>
<PRE>
public final int <B>physicalDpiY</B>()</PRE>
<DL>
<DD><p>Returns the horizontal resolution of the device in dots per inch.</p>
<p>Note that if the <a href="QImage.html#physicalDpiY()"><tt>physicalDpiY</tt></a> doesn't equal the <a href="QImage.html#logicalDpiY()"><tt>logicalDpiY</tt></a>, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the resolution mapping.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#physicalDpiY()">physicalDpiY</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#physicalDpiX()"><tt>physicalDpiX</tt></a>, 
<a href="QImage.html#logicalDpiY()"><tt>logicalDpiY</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="pixel(com.trolltech.qt.core.QPoint)"><!-- --></A><H3>
pixel</H3>
<PRE>
public final int <B>pixel</B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;pt)</PRE>
<DL>
<DD><p>Returns the color of the pixel at the given <tt>pt</tt>.</p>
<p>If the <tt>pt</tt> is not valid, the results are undefined.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setPixel(int, int, int)"><tt>setPixel</tt></a>, 
<a href="QImage.html#valid(int, int)"><tt>valid</tt></a>, 
<CODE>Manipulation</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="pixel(int, int)"><!-- --></A><H3>
pixel</H3>
<PRE>
public final int <B>pixel</B>(int&nbsp;x,
                       int&nbsp;y)</PRE>
<DL>
<DD><p>Returns the color of the pixel at coordinates (<tt>x</tt>, <tt>y</tt>).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setPixel(int, int, int)"><tt>setPixel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="pixelIndex(int, int)"><!-- --></A><H3>
pixelIndex</H3>
<PRE>
public final int <B>pixelIndex</B>(int&nbsp;x,
                            int&nbsp;y)</PRE>
<DL>
<DD><p>Returns the pixel index at (<tt>x</tt>, <tt>y</tt>).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="pixelIndex(com.trolltech.qt.core.QPoint)"><!-- --></A><H3>
pixelIndex</H3>
<PRE>
public final int <B>pixelIndex</B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;pt)</PRE>
<DL>
<DD><p>Returns the pixel index at the given <tt>pt</tt>.</p>
<p>If <tt>pt</tt> is not valid, or if the image is not a paletted image (<a href="QImage.html#depth()"><tt>depth</tt></a> &gt; 8), the results are undefined.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#valid(int, int)"><tt>valid</tt></a>, 
<a href="QImage.html#depth()"><tt>depth</tt></a>, 
<CODE>Manipulation</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="rect()"><!-- --></A><H3>
rect</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QRect.html" title="class in com.trolltech.qt.core">QRect</A> <B>rect</B>()</PRE>
<DL>
<DD><p>Returns the enclosing rectangle (0, 0, <a href="QImage.html#width()"><tt>width</tt></a>, <a href="QImage.html#height()"><tt>height</tt></a>) of the image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="rgbSwapped()"><!-- --></A><H3>
rgbSwapped</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>rgbSwapped</B>()</PRE>
<DL>
<DD><p>Returns a <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> in which the values of the red and blue components of all pixels have been swapped, effectively converting an RGB image to an BGR image.</p>
<p>The original <a href="QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)"><tt>QImage</tt></a> is not changed.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="scaled(int, int, com.trolltech.qt.core.Qt.AspectRatioMode)"><!-- --></A><H3>
scaled</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaled</B>(int&nbsp;w,
                           int&nbsp;h,
                           <A HREF="../../../../com/trolltech/qt/core/Qt.AspectRatioMode.html" title="enum in com.trolltech.qt.core">Qt.AspectRatioMode</A>&nbsp;aspectMode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</tt></a>(<tt>w</tt>, <tt>h</tt>, <tt>aspectMode</tt>, Qt::FastTransformation).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="scaled(int, int)"><!-- --></A><H3>
scaled</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaled</B>(int&nbsp;w,
                           int&nbsp;h)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</tt></a>(<tt>w</tt>, <tt>h</tt>, Qt::IgnoreAspectRatio, Qt::FastTransformation).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="scaled(int, int, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)"><!-- --></A><H3>
scaled</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaled</B>(int&nbsp;w,
                           int&nbsp;h,
                           <A HREF="../../../../com/trolltech/qt/core/Qt.AspectRatioMode.html" title="enum in com.trolltech.qt.core">Qt.AspectRatioMode</A>&nbsp;aspectMode,
                           <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Returns a copy of the image scaled to a rectangle with the given <tt>w</tt> and <tt>h</tt> according to the given <tt>aspectMode</tt> and <tt>mode</tt>.</p>
<p>If either the <tt>w</tt> or the <tt>h</tt> is zero or negative, this function returns a null image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode)"><!-- --></A><H3>
scaled</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaled</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;s,
                           <A HREF="../../../../com/trolltech/qt/core/Qt.AspectRatioMode.html" title="enum in com.trolltech.qt.core">Qt.AspectRatioMode</A>&nbsp;aspectMode)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</tt></a>(<tt>s</tt>, <tt>aspectMode</tt>, Qt::FastTransformation).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="scaled(com.trolltech.qt.core.QSize)"><!-- --></A><H3>
scaled</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaled</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;s)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</tt></a>(<tt>s</tt>, Qt::IgnoreAspectRatio, Qt::FastTransformation).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)"><!-- --></A><H3>
scaled</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaled</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A>&nbsp;s,
                           <A HREF="../../../../com/trolltech/qt/core/Qt.AspectRatioMode.html" title="enum in com.trolltech.qt.core">Qt.AspectRatioMode</A>&nbsp;aspectMode,
                           <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Returns a copy of the image scaled to a rectangle defined by the given <tt>s</tt> according to the given <tt>aspectMode</tt> and <tt>mode</tt>.</p>
<p align="center"><img src="%2E%2E/images/qimage-scaling.png" /></p><ul>
<li>If <tt>aspectMode</tt> is Qt::IgnoreAspectRatio, the image is scaled to <tt>s</tt>.</li>
<li>If <tt>aspectMode</tt> is Qt::KeepAspectRatio, the image is scaled to a rectangle as large as possible inside <tt>s</tt>, preserving the aspect ratio.</li>
<li>If <tt>aspectMode</tt> is Qt::KeepAspectRatioByExpanding, the image is scaled to a rectangle as small as possible outside <tt>s</tt>, preserving the aspect ratio.</li>
</ul>
<p>If the given <tt>s</tt> is empty, this function returns a null image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#isNull()"><tt>isNull</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="scaledToHeight(int)"><!-- --></A><H3>
scaledToHeight</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaledToHeight</B>(int&nbsp;h)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#scaledToHeight(int, com.trolltech.qt.core.Qt.TransformationMode)"><tt>scaledToHeight</tt></a>(<tt>h</tt>, Qt::FastTransformation).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="scaledToHeight(int, com.trolltech.qt.core.Qt.TransformationMode)"><!-- --></A><H3>
scaledToHeight</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaledToHeight</B>(int&nbsp;h,
                                   <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Returns a scaled copy of the image. The returned image is scaled to the given <tt>h</tt> using the specified transformation <tt>mode</tt>.</p>
<p>This function automatically calculates the width of the image so that the ratio of the image is preserved.</p>
<p>If the given <tt>h</tt> is 0 or negative, a null image is returned.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="scaledToWidth(int)"><!-- --></A><H3>
scaledToWidth</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaledToWidth</B>(int&nbsp;w)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#scaledToWidth(int, com.trolltech.qt.core.Qt.TransformationMode)"><tt>scaledToWidth</tt></a>(<tt>w</tt>, Qt::FastTransformation).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="scaledToWidth(int, com.trolltech.qt.core.Qt.TransformationMode)"><!-- --></A><H3>
scaledToWidth</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>scaledToWidth</B>(int&nbsp;w,
                                  <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Returns a scaled copy of the image. The returned image is scaled to the given <tt>w</tt> using the specified transformation <tt>mode</tt>.</p>
<p>This function automatically calculates the height of the image so that its aspect ratio is preserved.</p>
<p>If the given <tt>w</tt> is 0 or negative, a null image is returned.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="scanLine(int)"><!-- --></A><H3>
scanLine</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>scanLine</B>(int&nbsp;arg__1)</PRE>
<DL>
<DD><p>Returns a pointer to the pixel data at the scanline with index <tt>arg__1</tt>. The first scanline is at index 0.</p>
<p>The scanline data is aligned on a 32-bit boundary.</p>
<p><b>Warning:</b> If you are accessing 32-bpp image data, cast the returned pointer to <tt>QRgb*</tt> (QRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the <tt>uchar*</tt> pointer directly, because the pixel format depends on the byte order on the underlying platform. Use qRed(), qGreen(), qBlue(), and qAlpha() to access the pixels.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#bytesPerLine()"><tt>bytesPerLine</tt></a>, 
<a href="QImage.html#bits()"><tt>bits</tt></a>, 
<CODE>Manipulation</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setAlphaChannel(com.trolltech.qt.gui.QImage)"><!-- --></A><H3>
setAlphaChannel</H3>
<PRE>
public final void <B>setAlphaChannel</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;alphaChannel)</PRE>
<DL>
<DD><p>Sets the alpha channel of this image to the given <tt>alphaChannel</tt>.</p>
<p>If <tt>alphaChannel</tt> is an 8 bit grayscale image, the intensity values are written into this buffer directly. Otherwise, <tt>alphaChannel</tt> is converted to 32 bit and the intensity of the RGB pixel values is used.</p>
<p>Note that the image will be converted to the <a href="QImage.html#Format-enum"><tt>Format_ARGB32_Premultiplied</tt></a> format if the function succeeds.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#alphaChannel()"><tt>alphaChannel</tt></a>, 
<CODE>Transformations</tt></CODE>, 
<CODE>Formats</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setColor(int, int)"><!-- --></A><H3>
setColor</H3>
<PRE>
public final void <B>setColor</B>(int&nbsp;i,
                           int&nbsp;c)</PRE>
<DL>
<DD><p>Sets the color at the given <tt>i</tt> in the color table, to the given to <tt>c</tt>.</p>
<p>The color value is an ARGB quadruplet.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#color(int)"><tt>color</tt></a>, 
<a href="QImage.html#setColorTable(java.util.List<java.lang.Integer>)"><tt>setColorTable</tt></a>, 
<CODE>Manipulation</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setColorTable(java.util.List)"><!-- --></A><H3>
setColorTable</H3>
<PRE>
public final void <B>setColorTable</B>(java.util.List&lt;java.lang.Integer&gt;&nbsp;colors)</PRE>
<DL>
<DD><p>Sets the color table used to translate color indexes to QRgb values, to the specified <tt>colors</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#colorTable()"><tt>colorTable</tt></a>, 
<a href="QImage.html#setColor(int, int)"><tt>setColor</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setDotsPerMeterX(int)"><!-- --></A><H3>
setDotsPerMeterX</H3>
<PRE>
public final void <B>setDotsPerMeterX</B>(int&nbsp;arg__1)</PRE>
<DL>
<DD><p>Sets the number of pixels that fit horizontally in a physical meter, to <tt>arg__1</tt>.</p>
<p>Together with <a href="QImage.html#dotsPerMeterY()"><tt>dotsPerMeterY</tt></a>, this number defines the intended scale and aspect ratio of the image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#dotsPerMeterX()"><tt>dotsPerMeterX</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setDotsPerMeterY(int)"><!-- --></A><H3>
setDotsPerMeterY</H3>
<PRE>
public final void <B>setDotsPerMeterY</B>(int&nbsp;arg__1)</PRE>
<DL>
<DD><p>Sets the number of pixels that fit vertically in a physical meter, to <tt>arg__1</tt>.</p>
<p>Together with <a href="QImage.html#dotsPerMeterX()"><tt>dotsPerMeterX</tt></a>, this number defines the intended scale and aspect ratio of the image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#dotsPerMeterY()"><tt>dotsPerMeterY</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setNumColors(int)"><!-- --></A><H3>
setNumColors</H3>
<PRE>
public final void <B>setNumColors</B>(int&nbsp;arg__1)</PRE>
<DL>
<DD><p>Resizes the color table to contain <tt>arg__1</tt> entries.</p>
<p>If the color table is expanded, all the extra colors will be set to transparent (i.e qRgba(0, 0, 0, 0)).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#numColors()"><tt>numColors</tt></a>, 
<a href="QImage.html#colorTable()"><tt>colorTable</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setOffset(com.trolltech.qt.core.QPoint)"><!-- --></A><H3>
setOffset</H3>
<PRE>
public final void <B>setOffset</B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;arg__1)</PRE>
<DL>
<DD><p>Sets the the number of pixels by which the image is intended to be offset by when positioning relative to other images, to <tt>arg__1</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#offset()"><tt>offset</tt></a>, 
<CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setPixel(com.trolltech.qt.core.QPoint, int)"><!-- --></A><H3>
setPixel</H3>
<PRE>
public final void <B>setPixel</B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;pt,
                           int&nbsp;index_or_rgb)</PRE>
<DL>
<DD><p>Sets the pixel index or color at the given <tt>pt</tt> to <tt>index_or_rgb</tt>.</p>
<p>If the image's format is either monochrome or 8-bit, the given <tt>index_or_rgb</tt> value must be an index in the image's color table, otherwise the parameter must be a QRgb value.</p>
<p>If <tt>pt</tt> is not a valid coordinate pair in the image, or if <tt>index_or_rgb</tt> &gt;= <a href="QImage.html#numColors()"><tt>numColors</tt></a> in the case of monochrome and 8-bit images, the result is undefined.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#pixel(int, int)"><tt>pixel</tt></a>, 
<CODE>Manipulation</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="setPixel(int, int, int)"><!-- --></A><H3>
setPixel</H3>
<PRE>
public final void <B>setPixel</B>(int&nbsp;x,
                           int&nbsp;y,
                           int&nbsp;index_or_rgb)</PRE>
<DL>
<DD><p>Sets the pixel index or color at (<tt>x</tt>, <tt>y</tt>) to <tt>index_or_rgb</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#pixel(int, int)"><tt>pixel</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setText(java.lang.String, java.lang.String)"><!-- --></A><H3>
setText</H3>
<PRE>
public final void <B>setText</B>(java.lang.String&nbsp;key,
                          java.lang.String&nbsp;value)</PRE>
<DL>
<DD><p>Sets the image text to the given <tt>value</tt> and associate it with the given <tt>key</tt>.</p>
<p>If you just want to store a single text block (i.e&#x2e;, a &quot;comment&quot; or just a description), you can either pass an empty key, or use a generic key like &quot;Description&quot;.</p>
<p>The image text is embedded into the image data when you call save() or QImageWriter::write().</p>
<p>Not all image formats support embedded text. You can find out if a specific image or format supports embedding text by using QImageWriter::supportsOption(). We give an example:</p>
<pre>            QImageWriter writer;
            writer.setFormat(&quot;png&quot;);
            if (writer.supportsOption(QImageIOHandler::Description))
                qDebug() &lt;&lt; &quot;Png supports embedded text&quot;;</pre>
<p>You can use QImageWriter::supportedImageFormats() to find out which image formats are available to you.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#text(java.lang.String)"><tt>text</tt></a>, 
<a href="QImage.html#textKeys()"><tt>textKeys</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, i.e&#x2e; its <a href="QImage.html#width()"><tt>width</tt></a> and <a href="QImage.html#height()"><tt>height</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="text()"><!-- --></A><H3>
text</H3>
<PRE>
public final java.lang.String <B>text</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#text(java.lang.String)">text</tt></a>(QString()).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</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&nbsp;key)</PRE>
<DL>
<DD><p>Returns the image text associated with the given <tt>key</tt>. If the specified <tt>key</tt> is an empty string, the whole image text is returned, with each key-text pair separated by a newline.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#setText(java.lang.String, java.lang.String)"><tt>setText</tt></a>, 
<a href="QImage.html#textKeys()"><tt>textKeys</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="textKeys()"><!-- --></A><H3>
textKeys</H3>
<PRE>
public final java.util.List&lt;java.lang.String&gt; <B>textKeys</B>()</PRE>
<DL>
<DD><p>Returns the text keys for this image.</p>
<p>You can use these keys with <a href="QImage.html#text(java.lang.String)"><tt>text</tt></a> to list the image text for a certain key.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#text(java.lang.String)"><tt>text</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="transformed(com.trolltech.qt.gui.QMatrix)"><!-- --></A><H3>
transformed</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>transformed</B>(<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A>&nbsp;matrix)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)">transformed</tt></a>(<tt>matrix</tt>, Qt::FastTransformation).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="transformed(com.trolltech.qt.gui.QMatrix, com.trolltech.qt.core.Qt.TransformationMode)"><!-- --></A><H3>
transformed</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>transformed</B>(<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A>&nbsp;matrix,
                                <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Returns a copy of the image that is transformed using the given transformation <tt>matrix</tt> and transformation <tt>mode</tt>.</p>
<p>The transformation <tt>matrix</tt> is internally adjusted to compensate for unwanted translation; i.e&#x2e; the image produced is the smallest image that contains all the transformed points of the original image. Use the <a href="QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)"><tt>trueMatrix</tt></a> function to retrieve the actual matrix used for transforming an image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)"><tt>trueMatrix</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="transformed(com.trolltech.qt.gui.QTransform)"><!-- --></A><H3>
transformed</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>transformed</B>(<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A>&nbsp;matrix)</PRE>
<DL>
<DD><p>Equivalent to <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)">transformed</tt></a>(<tt>matrix</tt>, Qt::FastTransformation).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><!-- --></A><H3>
transformed</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>transformed</B>(<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A>&nbsp;matrix,
                                <A HREF="../../../../com/trolltech/qt/core/Qt.TransformationMode.html" title="enum in com.trolltech.qt.core">Qt.TransformationMode</A>&nbsp;mode)</PRE>
<DL>
<DD><p>Returns a copy of the image that is transformed using the given transformation <tt>matrix</tt> and transformation <tt>mode</tt>.</p>
<p>The transformation <tt>matrix</tt> is internally adjusted to compensate for unwanted translation; i.e&#x2e; the image produced is the smallest image that contains all the transformed points of the original image. Use the <a href="QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)"><tt>trueMatrix</tt></a> function to retrieve the actual matrix used for transforming an image.</p>
<p>Unlike the other overload, this function can be used to perform perspective transformations on images.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)"><tt>trueMatrix</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="valid(com.trolltech.qt.core.QPoint)"><!-- --></A><H3>
valid</H3>
<PRE>
public final boolean <B>valid</B>(<A HREF="../../../../com/trolltech/qt/core/QPoint.html" title="class in com.trolltech.qt.core">QPoint</A>&nbsp;pt)</PRE>
<DL>
<DD><p>Returns true if <tt>pt</tt> is a valid coordinate pair within the image; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#rect()"><tt>rect</tt></a>, 
<tt>QRect::contains</tt></DL>
</DD>
</DL>
<HR>

<A NAME="valid(int, int)"><!-- --></A><H3>
valid</H3>
<PRE>
public final boolean <B>valid</B>(int&nbsp;x,
                           int&nbsp;y)</PRE>
<DL>
<DD><p>Returns true if <a href="%2E%2E/core/QPoint.html"><tt>QPoint</tt></a>(<tt>x</tt>, <tt>y</tt>) is a valid coordinate pair within the image; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="width()"><!-- --></A><H3>
width</H3>
<PRE>
public final int <B>width</B>()</PRE>
<DL>
<DD><p>Returns the width of the image.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#width()">width</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><CODE>Information</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="widthMM()"><!-- --></A><H3>
widthMM</H3>
<PRE>
public final int <B>widthMM</B>()</PRE>
<DL>
<DD><p>Returns the width of the paint device in millimeters.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#widthMM()">widthMM</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#width()"><tt>width</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="devType()"><!-- --></A><H3>
devType</H3>
<PRE>
public int <B>devType</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#devType()">devType</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric)"><!-- --></A><H3>
metric</H3>
<PRE>
public int <B>metric</B>(<A HREF="../../../../com/trolltech/qt/gui/QPaintDevice.PaintDeviceMetric.html" title="enum in com.trolltech.qt.gui">QPaintDevice.PaintDeviceMetric</A>&nbsp;metric)</PRE>
<DL>
<DD><p>Returns the metric information for the given paint device <tt>metric</tt>.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric)">metric</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>PaintDeviceMetric</tt></DL>
</DD>
</DL>
<HR>

<A NAME="paintEngine()"><!-- --></A><H3>
paintEngine</H3>
<PRE>
public <A HREF="../../../../com/trolltech/qt/gui/QPaintEngine.html" title="class in com.trolltech.qt.gui">QPaintEngine</A> <B>paintEngine</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#paintEngine()">paintEngine</A></CODE> in interface <CODE><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="trueMatrix(com.trolltech.qt.gui.QMatrix, int, int)"><!-- --></A><H3>
trueMatrix</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A> <B>trueMatrix</B>(<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A>&nbsp;arg__1,
                                 int&nbsp;w,
                                 int&nbsp;h)</PRE>
<DL>
<DD><p>Returns the actual matrix used for transforming an image with the given <tt>w</tt>, <tt>h</tt> and <tt>arg__1</tt>.</p>
<p>When transforming an image using the <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a> function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e&#x2e; <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a> returns the smallest image containing all transformed points of the original image. This function returns the modified matrix, which maps points correctly from the original image into the new image.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="trueMatrix(com.trolltech.qt.gui.QTransform, int, int)"><!-- --></A><H3>
trueMatrix</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A> <B>trueMatrix</B>(<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A>&nbsp;arg__1,
                                    int&nbsp;w,
                                    int&nbsp;h)</PRE>
<DL>
<DD><p>Returns the actual matrix used for transforming an image with the given <tt>w</tt>, <tt>h</tt> and <tt>arg__1</tt>.</p>
<p>When transforming an image using the <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a> function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e&#x2e; <a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a> returns the smallest image containing all transformed points of the original image. This function returns the modified matrix, which maps points correctly from the original image into the new image.</p>
<p>Unlike the other overload, this function creates transformation matrices that can be used to perform perspective transformations on images.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)"><tt>transformed</tt></a>, 
<CODE>Transformations</tt></CODE></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QImage instance pointed to by nativePointer
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="nativePointerArray(com.trolltech.qt.gui.QImage[])"><!-- --></A><H3>
nativePointerArray</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>[]&nbsp;array)</PRE>
<DL>
<DD>This function returns a QNativePointer that is pointing to the specified QImage array.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to.
<DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="save(java.lang.String, java.lang.String, int)"><!-- --></A><H3>
save</H3>
<PRE>
public final boolean <B>save</B>(java.lang.String&nbsp;fileName,
                          java.lang.String&nbsp;format,
                          int&nbsp;quality)</PRE>
<DL>
<DD>Saves the image to the file with the given <tt>fileName</tt>, using the
given image file <tt>format</tt> and <tt>quality</tt> factor. If <tt>format</tt> is
null, QImage will attempt to guess the format by looking at <tt>fileName</tt>'s
suffix.
<p>
The <tt>quality</tt> factor must be in the range 0 to 100 or -1. Specify
0 to obtain small compressed files, 100 for large uncompressed
files, and -1 (the default) to use the default settings.
<p>
Returns true if the image was successfully saved; otherwise
returns false.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="save(java.lang.String, java.lang.String)"><!-- --></A><H3>
save</H3>
<PRE>
public final boolean <B>save</B>(java.lang.String&nbsp;fileName,
                          java.lang.String&nbsp;format)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="save(java.lang.String)"><!-- --></A><H3>
save</H3>
<PRE>
public final boolean <B>save</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="copyOfBytes()"><!-- --></A><H3>
copyOfBytes</H3>
<PRE>
public final byte[] <B>copyOfBytes</B>()</PRE>
<DL>
<DD>Returns a copy of the image data.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="save(com.trolltech.qt.core.QIODevice, java.lang.String, int)"><!-- --></A><H3>
save</H3>
<PRE>
public final boolean <B>save</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;dev,
                          java.lang.String&nbsp;format,
                          int&nbsp;quality)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="save(com.trolltech.qt.core.QIODevice, java.lang.String)"><!-- --></A><H3>
save</H3>
<PRE>
public final boolean <B>save</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;dev,
                          java.lang.String&nbsp;format)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="save(com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
save</H3>
<PRE>
public final boolean <B>save</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;dev)</PRE>
<DL>
<DD>This is an overloaded function provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="load(java.lang.String, java.lang.String)"><!-- --></A><H3>
load</H3>
<PRE>
public final boolean <B>load</B>(java.lang.String&nbsp;fileName,
                          java.lang.String&nbsp;format)</PRE>
<DL>
<DD>Loads an image from the file with the given <tt>fileName</tt>. Returns
true if the image was successfully loaded; otherwise returns false.
<p>
The loader attempts to read the image using the specified
<tt>format</tt>. If the <tt>format</tt> is null, the loader probes the
file for a header to guess the file format.
<p>
The file name can either refer to an actual file on disk or to one of
the application's embedded resources. See the
\l{resources.html}{Resource System} overview for details on how to
embed images and other resource files in the application's executable.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="load(java.lang.String)"><!-- --></A><H3>
load</H3>
<PRE>
public final boolean <B>load</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="load(com.trolltech.qt.core.QIODevice, java.lang.String)"><!-- --></A><H3>
load</H3>
<PRE>
public final boolean <B>load</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device,
                          java.lang.String&nbsp;format)</PRE>
<DL>
<DD>This is an overloaded function provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="load(com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
load</H3>
<PRE>
public final boolean <B>load</B>(<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="loadFromData(byte[], java.lang.String)"><!-- --></A><H3>
loadFromData</H3>
<PRE>
public final boolean <B>loadFromData</B>(byte[]&nbsp;data,
                                  java.lang.String&nbsp;format)</PRE>
<DL>
<DD>Loads an image from the binary <tt>data</tt>. Returns true if the image
was successfully loaded; otherwise returns false.
<p>
The loader attempts to read the image using the specified format. If
the <tt>format</tt> is not specified (which is the default), the
loader probes the file for a header to guess the file format.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="loadFromData(byte[])"><!-- --></A><H3>
loadFromData</H3>
<PRE>
public final boolean <B>loadFromData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="loadFromData(com.trolltech.qt.core.QByteArray, java.lang.String)"><!-- --></A><H3>
loadFromData</H3>
<PRE>
public final boolean <B>loadFromData</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data,
                                  java.lang.String&nbsp;format)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="loadFromData(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
loadFromData</H3>
<PRE>
public final boolean <B>loadFromData</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromData(com.trolltech.qt.core.QByteArray, java.lang.String)"><!-- --></A><H3>
fromData</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>fromData</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data,
                              java.lang.String&nbsp;format)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<p>
Loads an image from the given QByteArray <tt>data</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromData(com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
fromData</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> <B>fromData</B>(<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data)</PRE>
<DL>
<DD>This is an overloaded method provided for convenience.
<p>
Loads an image from the given QByteArray <tt>data</tt>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QIconEngineV2.html" title="class in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QImage.Format.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/QImage.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QImage.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>