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

    value = qRgb(189, 149, 39); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; 0xffbd9527
    image.setPixel(1, 1, value);

    value = qRgb(122, 163, 39); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; 0xff7aa327
    image.setPixel(0, 1, value);
    image.setPixel(1, 0, value);

    value = qRgb(237, 187, 51); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; 0xffedba31
    image.setPixel(2, 1, value);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th colspan=&quot;2&quot;&gt;32-bit&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;In case of a 8-bit and monchrome images , the pixel value is only an index from the image's color table. So the &lt;a href=&quot;QImage.html#setPixel(int, int, int)&quot;&gt;&lt;tt&gt;setPixel&lt;/tt&gt;&lt;/a&gt; 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&amp;#x2e; it can only change the pixel's index value. To alter or add a color to an image's color table, use the &lt;a href=&quot;QImage.html#setColor(int, int)&quot;&gt;&lt;tt&gt;setColor&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;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 &lt;a href=&quot;QImage.html#setColor(int, int)&quot;&gt;&lt;tt&gt;setColor&lt;/tt&gt;&lt;/a&gt; function. For example:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qimage-8bit_scaled.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;pre&gt;    QImage image(3, 3, QImage::Format_Indexed8);
    QRgb value;

    value = qRgb(122, 163, 39); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; 0xff7aa327
    image.setColor(0, value);

    value = qRgb(237, 187, 51); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; 0xffedba31
    image.setColor(1, value);

    value = qRgb(189, 149, 39); &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; 0xffbd9527
    image.setColor(2, value);

    image.setPixel(0, 1, 0);
    image.setPixel(1, 0, 0);
    image.setPixel(1, 1, 2);
    image.setPixel(2, 1, 1);&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th colspan=&quot;2&quot;&gt;8-bit&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; also provide the &lt;a href=&quot;QImage.html#scanLine(int)&quot;&gt;&lt;tt&gt;scanLine&lt;/tt&gt;&lt;/a&gt; function which returns a pointer to the pixel data at the scanline with the given index, and the &lt;a href=&quot;QImage.html#bits()&quot;&gt;&lt;tt&gt;bits&lt;/tt&gt;&lt;/a&gt; function which returns a pointer to the first pixel data (this is equivalent to &lt;tt&gt;scanLine(0)&lt;/tt&gt;).&lt;/p&gt;
&lt;a name=&quot;image-formats&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Image Formats&lt;/h3&gt;
&lt;p&gt;Each pixel stored in a &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; is represented by an integer. The size of the integer varies depending on the format. &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; supports several image formats described by the &lt;a href=&quot;QImage.html#Format-enum&quot;&gt;Format&lt;/tt&gt;&lt;/a&gt; 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 &lt;a href=&quot;QImage.html#Format-enum&quot;&gt;Format&lt;/tt&gt;&lt;/a&gt; enum.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;8-bit images are stored using 8-bit indexes into a color table, i.e&amp;#x2e; they have a single byte per pixel. The color table is a QVector&amp;lt;QRgb&amp;gt;, and the QRgb typedef is equivalent to an unsigned int containing an ARGB quadruplet on the format 0xAARRGGBB.&lt;/p&gt;
&lt;p&gt;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&amp;#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.&lt;/p&gt;
&lt;p&gt;An image's format can be retrieved using the &lt;a href=&quot;QImage.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; function. Use the &lt;a href=&quot;QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;convertToFormat&lt;/tt&gt;&lt;/a&gt; functions to convert an image into another format. The &lt;a href=&quot;QImage.html#allGray()&quot;&gt;&lt;tt&gt;allGray&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImage.html#isGrayscale()&quot;&gt;&lt;tt&gt;isGrayscale&lt;/tt&gt;&lt;/a&gt; functions tell whether a color image can safely be converted to a grayscale image.&lt;/p&gt;
&lt;a name=&quot;image-transformations&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Image Transformations&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; supports a number of functions for creating a new image that is a transformed version of the original: The &lt;a href=&quot;QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;createAlphaMask&lt;/tt&gt;&lt;/a&gt; function builds and returns a 1-bpp mask from the alpha buffer in this image, and the &lt;a href=&quot;QImage.html#createHeuristicMask(boolean)&quot;&gt;&lt;tt&gt;createHeuristicMask&lt;/tt&gt;&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QImage.html#mirrored(boolean, boolean)&quot;&gt;&lt;tt&gt;mirrored&lt;/tt&gt;&lt;/a&gt; function returns a mirror of the image in the desired direction, the &lt;a href=&quot;QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;scaled&lt;/tt&gt;&lt;/a&gt; returns a copy of the image scaled to a rectangle of the desired measures, the &lt;a href=&quot;QImage.html#rgbSwapped()&quot;&gt;&lt;tt&gt;rgbSwapped&lt;/tt&gt;&lt;/a&gt; function constructs a BGR image from a RGB image, and the &lt;a href=&quot;QImage.html#alphaChannel()&quot;&gt;&lt;tt&gt;alphaChannel&lt;/tt&gt;&lt;/a&gt; function constructs an image from this image's alpha channel.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QImage.html#scaledToWidth(int, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;scaledToWidth&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImage.html#scaledToHeight(int, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;scaledToHeight&lt;/tt&gt;&lt;/a&gt; functions return scaled copies of the image.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt; 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&amp;#x2e; &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt; returns the smallest image containing all transformed points of the original image. The static &lt;a href=&quot;QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)&quot;&gt;&lt;tt&gt;trueMatrix&lt;/tt&gt;&lt;/a&gt; function returns the actual matrix used for transforming the image.&lt;/p&gt;
&lt;p&gt;There are also functions for changing attributes of an image in-place:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Function&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QImage.html#setAlphaChannel(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;setAlphaChannel&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Sets the alpha channel of the image.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QImage.html#setDotsPerMeterX(int)&quot;&gt;&lt;tt&gt;setDotsPerMeterX&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Defines the aspect ratio by setting the number of pixels that fit horizontally in a physical meter.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QImage.html#setDotsPerMeterY(int)&quot;&gt;&lt;tt&gt;setDotsPerMeterY&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Defines the aspect ratio by setting the number of pixels that fit vertically in a physical meter.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QImage.html#fill(int)&quot;&gt;&lt;tt&gt;fill&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Fills the entire image with the given pixel value.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)&quot;&gt;&lt;tt&gt;invertPixels&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Inverts all pixel values in the image using the given &lt;a href=&quot;QImage.html#InvertMode-enum&quot;&gt;&lt;tt&gt;InvertMode&lt;/tt&gt;&lt;/a&gt; value.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QImage.html#setColorTable(java.util.List&lt;java.lang.Integer&gt;)&quot;&gt;&lt;tt&gt;setColorTable&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Sets the color table used to translate color indexes. Only monochrome and 8-bit formats.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;a href=&quot;QImage.html#setNumColors(int)&quot;&gt;&lt;tt&gt;setNumColors&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Resizes the color table. Only monochrome and 8-bit formats.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;a name=&quot;legal-information&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Legal Information&lt;/h3&gt;
&lt;p&gt;For smooth scaling, the &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt; functions use code based on smooth scaling algorithm by Daniel M. Duley.&lt;/p&gt;
&lt;div style=&quot;padding: 0.5em; background: #e0e0e0; color: black&quot;&gt;&lt;p&gt;Copyright (C) 2004, 2005 Daniel M. Duley&lt;/p&gt;
&lt;p&gt;Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/div&gt;
@see &lt;a href=&quot;QImageReader.html&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/svg/QSvgRenderer.html&quot;&gt;&lt;tt&gt;QSvgRenderer&lt;/tt&gt;&lt;/a&gt;
@see Image Composition Example&lt;/tt&gt;
@see Image Viewer Example&lt;/tt&gt;
@see Scribble Example&lt;/tt&gt;
@see Pixelator Example&lt;/tt&gt; */">
    <method name="public QImage(com.trolltech.qt.QNativePointer data, int width, int height, int bytesPerLine, com.trolltech.qt.gui.QImage.Format format)" doc="/**
&lt;p&gt;Constructs an image with the given &lt;tt&gt;width&lt;/tt&gt;, &lt;tt&gt;height&lt;/tt&gt; and &lt;tt&gt;format&lt;/tt&gt;, that uses an existing memory buffer, &lt;tt&gt;data&lt;/tt&gt;. The &lt;tt&gt;width&lt;/tt&gt; and &lt;tt&gt;height&lt;/tt&gt; must be specified in pixels. &lt;tt&gt;bytesPerLine&lt;/tt&gt; specifies the number of bytes per line (stride).&lt;/p&gt;
&lt;p&gt;The buffer must remain valid throughout the life of the &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;. The image does not delete the buffer at destruction.&lt;/p&gt;
&lt;p&gt;If the image is in an indexed color format, set the color table for the image using &lt;a href=&quot;QImage.html#setColorTable(java.util.List&lt;java.lang.Integer&gt;)&quot;&gt;&lt;tt&gt;setColorTable&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public QImage(int width, int height, com.trolltech.qt.gui.QImage.Format format)" doc="/**
&lt;p&gt;Constructs an image with the given &lt;tt&gt;width&lt;/tt&gt;, &lt;tt&gt;height&lt;/tt&gt; and &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QImage(com.trolltech.qt.gui.QImage arg__1)" doc="/**
&lt;p&gt;Constructs a shallow copy of the given &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;For more information about shallow copies, see the Implicit Data Sharing&lt;/tt&gt; documentation.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#copy(int, int, int, int)&quot;&gt;&lt;tt&gt;copy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QImage()" doc="/**
&lt;p&gt;Constructs a null image.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QImage(com.trolltech.qt.core.QSize size, com.trolltech.qt.gui.QImage.Format format)" doc="/**
&lt;p&gt;Constructs an image with the given &lt;tt&gt;size&lt;/tt&gt; and &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean allGray()" doc="/**
&lt;p&gt;Returns true if all the colors in the image are shades of gray (i.e&amp;#x2e; their red, green and blue components are equal); otherwise false.&lt;/p&gt;
&lt;p&gt;Note that this function is slow for images without color table.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#isGrayscale()&quot;&gt;&lt;tt&gt;isGrayscale&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage alphaChannel()" doc="/**
&lt;p&gt;Returns the alpha channel of the image as a new grayscale &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;You can see an example of use of this function in &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;'s alphaChannel(), which works in the same way as this function on QPixmaps.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setAlphaChannel(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;setAlphaChannel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#hasAlphaChannel()&quot;&gt;&lt;tt&gt;hasAlphaChannel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.html#pixmap-information&quot;&gt;Pixmap&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.QNativePointer bits()" doc="/**
&lt;p&gt;Returns a pointer to the first pixel data. This is equivalent to &lt;a href=&quot;QImage.html#scanLine(int)&quot;&gt;&lt;tt&gt;scanLine&lt;/tt&gt;&lt;/a&gt;(0).&lt;/p&gt;
&lt;p&gt;Note that &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; uses implicit data sharing&lt;/tt&gt;. This function performs a deep copy of the shared pixel data, thus ensuring that this &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; is the only one using the current return value.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#scanLine(int)&quot;&gt;&lt;tt&gt;scanLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#numBytes()&quot;&gt;&lt;tt&gt;numBytes&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int bytesPerLine()" doc="/**
&lt;p&gt;Returns the number of bytes per image scanline.&lt;/p&gt;
&lt;p&gt;This is equivalent to &lt;a href=&quot;QImage.html#numBytes()&quot;&gt;&lt;tt&gt;numBytes&lt;/tt&gt;&lt;/a&gt;/ &lt;a href=&quot;QImage.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#scanLine(int)&quot;&gt;&lt;tt&gt;scanLine&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final long cacheKey()" doc="/**
&lt;p&gt;Returns a number that identifies the contents of this &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; object. Distinct &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; objects can only have the same key if they refer to the same contents.&lt;/p&gt;
&lt;p&gt;The key will change when the image is altered.&lt;/p&gt;
 */"/>
    <method name="public final int color(int i)" doc="/**
&lt;p&gt;Returns the color in the color table at index &lt;tt&gt;i&lt;/tt&gt;. The first color is at index 0.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setColor(int, int)&quot;&gt;&lt;tt&gt;setColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#pixelIndex(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;pixelIndex&lt;/tt&gt;&lt;/a&gt;
@see Pixel Manipulation&lt;/tt&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.Integer&gt; colorTable()" doc="/**
&lt;p&gt;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&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setColorTable(java.util.List&lt;java.lang.Integer&gt;)&quot;&gt;&lt;tt&gt;setColorTable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#numColors()&quot;&gt;&lt;tt&gt;numColors&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#color(int)&quot;&gt;&lt;tt&gt;color&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage convertToFormat(com.trolltech.qt.gui.QImage.Format f, java.util.List&lt;java.lang.Integer&gt; colorTable, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Returns a copy of the image converted to the given &lt;tt&gt;f&lt;/tt&gt;, using the specified &lt;tt&gt;colorTable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Conversion from 32 bit to 8 bit indexed is a slow operation and will use a straightforward nearest color approach, with no dithering.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QImage convertToFormat(com.trolltech.qt.gui.QImage.Format f, java.util.List&lt;java.lang.Integer&gt; colorTable)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;convertToFormat&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;f&lt;/tt&gt;, &lt;tt&gt;colorTable&lt;/tt&gt;, Qt::AutoColor). */"/>
    <method name="public final com.trolltech.qt.gui.QImage convertToFormat(com.trolltech.qt.gui.QImage.Format f, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Returns a copy of the image in the given &lt;tt&gt;f&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The specified image conversion &lt;tt&gt;flags&lt;/tt&gt; control how the image data is handled during the conversion process.&lt;/p&gt;

@see Image Format&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage convertToFormat(com.trolltech.qt.gui.QImage.Format f)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;convertToFormat&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;f&lt;/tt&gt;, Qt::AutoColor). */"/>
    <method name="public final com.trolltech.qt.gui.QImage copy(com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;Returns a sub-area of the image as a new image.&lt;/p&gt;
&lt;p&gt;The returned image is copied from the position (&lt;tt&gt;rect&lt;/tt&gt;.x(), &lt;tt&gt;rect&lt;/tt&gt;.y()) in this image, and will always have the size of the given &lt;tt&gt;rect&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;If the given &lt;tt&gt;rect&lt;/tt&gt; is a null rectangle the entire image is copied.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage copy()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#copy(int, int, int, int)&quot;&gt;copy&lt;/tt&gt;&lt;/a&gt;(QRect()). */"/>
    <method name="public final com.trolltech.qt.gui.QImage copy(int x, int y, int w, int h)" doc="/**
&lt;p&gt;The returned image is copied from the position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) in this image, and will always have the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;. In areas beyond this image, pixels are set to 0.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QImage createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;flags&lt;/tt&gt; argument is a bitwise-OR of the Qt::ImageConversionFlags, and controls the conversion process. Passing 0 for flags sets all the default options.&lt;/p&gt;
&lt;p&gt;The returned image has little-endian bit order (i.e&amp;#x2e; the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the &lt;a href=&quot;QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;convertToFormat&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#createHeuristicMask(boolean)&quot;&gt;&lt;tt&gt;createHeuristicMask&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage createAlphaMask()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;createAlphaMask&lt;/tt&gt;&lt;/a&gt;(Qt::AutoColor). */"/>
    <method name="public final com.trolltech.qt.gui.QImage createHeuristicMask(boolean clipTight)" doc="/**
&lt;p&gt;Creates and returns a 1-bpp heuristic mask for this image.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The returned image has little-endian bit order (i.e&amp;#x2e; the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the &lt;a href=&quot;QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;convertToFormat&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;clipTight&lt;/tt&gt; is true (the default) the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels.&lt;/p&gt;
&lt;p&gt;Note that this function disregards the alpha buffer.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;createAlphaMask&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage createHeuristicMask()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#createHeuristicMask(boolean)&quot;&gt;&lt;tt&gt;createHeuristicMask&lt;/tt&gt;&lt;/a&gt;(true). */"/>
    <method name="public final com.trolltech.qt.gui.QImage createMaskFromColor(int color, com.trolltech.qt.core.Qt.MaskMode mode)" doc="/**
&lt;p&gt;Creates and returns a mask for this image based on the given &lt;tt&gt;color&lt;/tt&gt; value. If the &lt;tt&gt;mode&lt;/tt&gt; is MaskInColor (the default value), all pixels matching &lt;tt&gt;color&lt;/tt&gt; will be opaque pixels in the mask. If &lt;tt&gt;mode&lt;/tt&gt; is MaskOutColor, all pixels matching the given color will be transparent.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#createAlphaMask(com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;createAlphaMask&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#createHeuristicMask(boolean)&quot;&gt;&lt;tt&gt;createHeuristicMask&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage createMaskFromColor(int color)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#createMaskFromColor(int, com.trolltech.qt.core.Qt.MaskMode)&quot;&gt;&lt;tt&gt;createMaskFromColor&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;color&lt;/tt&gt;, Qt::MaskInColor). */"/>
    <method name="public final int depth()" doc="/**
&lt;p&gt;Returns the depth of the image.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The supported depths are 1, 8 and 32.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;convertToFormat&lt;/tt&gt;&lt;/a&gt;
@see Image Formats&lt;/tt&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final int dotsPerMeterX()" doc="/**
&lt;p&gt;Returns the number of pixels that fit horizontally in a physical meter. Together with &lt;a href=&quot;QImage.html#dotsPerMeterY()&quot;&gt;&lt;tt&gt;dotsPerMeterY&lt;/tt&gt;&lt;/a&gt;, this number defines the intended scale and aspect ratio of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setDotsPerMeterX(int)&quot;&gt;&lt;tt&gt;setDotsPerMeterX&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final int dotsPerMeterY()" doc="/**
&lt;p&gt;Returns the number of pixels that fit vertically in a physical meter. Together with &lt;a href=&quot;QImage.html#dotsPerMeterX()&quot;&gt;&lt;tt&gt;dotsPerMeterX&lt;/tt&gt;&lt;/a&gt;, this number defines the intended scale and aspect ratio of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setDotsPerMeterY(int)&quot;&gt;&lt;tt&gt;setDotsPerMeterY&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final void fill(int pixel)" doc="/**
&lt;p&gt;Fills the entire image with the given &lt;tt&gt;pixel&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#depth()&quot;&gt;&lt;tt&gt;depth&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage.Format format()" doc="/**
&lt;p&gt;Returns the format of the image.&lt;/p&gt;

@see Image Formats&lt;/tt&gt; */"/>
    <method name="public final boolean hasAlphaChannel()" doc="/**
&lt;p&gt;Returns true if the image has a format that respects the alpha channel, otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#alphaChannel()&quot;&gt;&lt;tt&gt;alphaChannel&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final int height()" doc="/**
&lt;p&gt;Returns the height of the image.&lt;/p&gt;

@see Image Information&lt;/tt&gt; */"/>
    <method name="public final int heightMM()" doc="/**
&lt;p&gt;Returns the height of the paint device in millimeters.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void invertPixels(com.trolltech.qt.gui.QImage.InvertMode arg__1)" doc="/**
&lt;p&gt;Inverts all pixel values in the image.&lt;/p&gt;
&lt;p&gt;The given invert &lt;tt&gt;arg__1&lt;/tt&gt; only have a meaning when the image's depth is 32. The default &lt;tt&gt;arg__1&lt;/tt&gt; is &lt;a href=&quot;QImage.html#InvertMode-enum&quot;&gt;&lt;tt&gt;InvertRgb&lt;/tt&gt;&lt;/a&gt;, which leaves the alpha channel unchanged. If the &lt;tt&gt;arg__1&lt;/tt&gt; is &lt;a href=&quot;QImage.html#InvertMode-enum&quot;&gt;&lt;tt&gt;InvertRgba&lt;/tt&gt;&lt;/a&gt;, the alpha bits are also inverted.&lt;/p&gt;
&lt;p&gt;Inverting an 8-bit image means to replace all pixels using color index &lt;i&gt;i&lt;/i&gt; with a pixel using color index 255 minus &lt;i&gt;i&lt;/i&gt;. The same is the case for a 1-bit image. Note that the color table is &lt;i&gt;not&lt;/i&gt; changed.&lt;/p&gt;

@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final void invertPixels()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)&quot;&gt;&lt;tt&gt;invertPixels&lt;/tt&gt;&lt;/a&gt;(InvertRgb). */"/>
    <method name="public final boolean isGrayscale()" doc="/**
&lt;p&gt;For 32-bit images, this function is equivalent to &lt;a href=&quot;QImage.html#allGray()&quot;&gt;&lt;tt&gt;allGray&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#allGray()&quot;&gt;&lt;tt&gt;allGray&lt;/tt&gt;&lt;/a&gt;
@see Image Formats&lt;/tt&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if it is a null image, otherwise returns false.&lt;/p&gt;
&lt;p&gt;A null image has all parameters set to zero and no allocated data.&lt;/p&gt;
 */"/>
    <method name="public final int logicalDpiX()" doc="/**
&lt;p&gt;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 &lt;a href=&quot;QImage.html#widthMM()&quot;&gt;&lt;tt&gt;widthMM&lt;/tt&gt;&lt;/a&gt;, but it varies on Windows.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QImage.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QImage.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int logicalDpiY()" doc="/**
&lt;p&gt;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 &lt;a href=&quot;QImage.html#heightMM()&quot;&gt;&lt;tt&gt;heightMM&lt;/tt&gt;&lt;/a&gt;, but it varies on Windows.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QImage.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QImage.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage mirrored(boolean horizontally, boolean vertically)" doc="/**
&lt;p&gt;Returns a mirror of the image, mirrored in the horizontal and/or the vertical direction depending on whether &lt;tt&gt;horizontally&lt;/tt&gt; and &lt;tt&gt;vertically&lt;/tt&gt; are set to true or false.&lt;/p&gt;
&lt;p&gt;Note that the original image is not changed.&lt;/p&gt;

@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage mirrored(boolean horizontally)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#mirrored(boolean, boolean)&quot;&gt;mirrored&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;horizontally&lt;/tt&gt;, true). */"/>
    <method name="public final com.trolltech.qt.gui.QImage mirrored()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#mirrored(boolean, boolean)&quot;&gt;mirrored&lt;/tt&gt;&lt;/a&gt;(false, true). */"/>
    <method name="public final int numBytes()" doc="/**
&lt;p&gt;Returns the number of bytes occupied by the image data.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#bytesPerLine()&quot;&gt;&lt;tt&gt;bytesPerLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#bits()&quot;&gt;&lt;tt&gt;bits&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final int numColors()" doc="/**
&lt;p&gt;Returns the size of the color table for the image.&lt;/p&gt;
&lt;p&gt;Notice that &lt;a href=&quot;QImage.html#numColors()&quot;&gt;&lt;tt&gt;numColors&lt;/tt&gt;&lt;/a&gt; returns 0 for 32-bpp images because these images do not use color tables, but instead encode pixel values as ARGB quadruplets.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setNumColors(int)&quot;&gt;&lt;tt&gt;setNumColors&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint offset()" doc="/**
&lt;p&gt;Returns the number of pixels by which the image is intended to be offset by when positioning relative to other images.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setOffset(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setOffset&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final boolean paintingActive()" doc="/**
&lt;p&gt;Returns true if the device is currently being painted on, i.e&amp;#x2e; someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.&lt;/p&gt;

@see &lt;tt&gt;QPainter::isActive&lt;/tt&gt; */"/>
    <method name="public final int physicalDpiX()" doc="/**
&lt;p&gt;Returns the horizontal resolution of the device in dots per inch.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QImage.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QImage.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int physicalDpiY()" doc="/**
&lt;p&gt;Returns the horizontal resolution of the device in dots per inch.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QImage.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QImage.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int pixel(com.trolltech.qt.core.QPoint pt)" doc="/**
&lt;p&gt;Returns the color of the pixel at the given &lt;tt&gt;pt&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;pt&lt;/tt&gt; is not valid, the results are undefined.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setPixel(int, int, int)&quot;&gt;&lt;tt&gt;setPixel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#valid(int, int)&quot;&gt;&lt;tt&gt;valid&lt;/tt&gt;&lt;/a&gt;
@see Pixel Manipulation&lt;/tt&gt; */"/>
    <method name="public final int pixel(int x, int y)" doc="/**
&lt;p&gt;Returns the color of the pixel at coordinates (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setPixel(int, int, int)&quot;&gt;&lt;tt&gt;setPixel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int pixelIndex(int x, int y)" doc="/**
&lt;p&gt;Returns the pixel index at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final int pixelIndex(com.trolltech.qt.core.QPoint pt)" doc="/**
&lt;p&gt;Returns the pixel index at the given &lt;tt&gt;pt&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;pt&lt;/tt&gt; is not valid, or if the image is not a paletted image (&lt;a href=&quot;QImage.html#depth()&quot;&gt;&lt;tt&gt;depth&lt;/tt&gt;&lt;/a&gt; &amp;gt; 8), the results are undefined.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#valid(int, int)&quot;&gt;&lt;tt&gt;valid&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#depth()&quot;&gt;&lt;tt&gt;depth&lt;/tt&gt;&lt;/a&gt;
@see Pixel Manipulation&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect rect()" doc="/**
&lt;p&gt;Returns the enclosing rectangle (0, 0, &lt;a href=&quot;QImage.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QImage.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;) of the image.&lt;/p&gt;

@see Image Information&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage rgbSwapped()" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;The original &lt;a href=&quot;QImage.html#QImage(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QImage.Format)&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; is not changed.&lt;/p&gt;

@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaled(int w, int h, com.trolltech.qt.core.Qt.AspectRatioMode aspectMode, com.trolltech.qt.core.Qt.TransformationMode mode)" doc="/**
&lt;p&gt;Returns a copy of the image scaled to a rectangle with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt; according to the given &lt;tt&gt;aspectMode&lt;/tt&gt; and &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If either the &lt;tt&gt;w&lt;/tt&gt; or the &lt;tt&gt;h&lt;/tt&gt; is zero or negative, this function returns a null image.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaled(int w, int h, com.trolltech.qt.core.Qt.AspectRatioMode aspectMode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;scaled&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;aspectMode&lt;/tt&gt;, Qt::FastTransformation). */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaled(int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;scaled&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, Qt::IgnoreAspectRatio, Qt::FastTransformation). */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaled(com.trolltech.qt.core.QSize s, com.trolltech.qt.core.Qt.AspectRatioMode aspectMode, com.trolltech.qt.core.Qt.TransformationMode mode)" doc="/**
&lt;p&gt;Returns a copy of the image scaled to a rectangle defined by the given &lt;tt&gt;s&lt;/tt&gt; according to the given &lt;tt&gt;aspectMode&lt;/tt&gt; and &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qimage-scaling.png&quot; /&gt;&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;If &lt;tt&gt;aspectMode&lt;/tt&gt; is Qt::IgnoreAspectRatio, the image is scaled to &lt;tt&gt;s&lt;/tt&gt;.&lt;/li&gt;
&lt;li&gt;If &lt;tt&gt;aspectMode&lt;/tt&gt; is Qt::KeepAspectRatio, the image is scaled to a rectangle as large as possible inside &lt;tt&gt;s&lt;/tt&gt;, preserving the aspect ratio.&lt;/li&gt;
&lt;li&gt;If &lt;tt&gt;aspectMode&lt;/tt&gt; is Qt::KeepAspectRatioByExpanding, the image is scaled to a rectangle as small as possible outside &lt;tt&gt;s&lt;/tt&gt;, preserving the aspect ratio.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the given &lt;tt&gt;s&lt;/tt&gt; is empty, this function returns a null image.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaled(com.trolltech.qt.core.QSize s, com.trolltech.qt.core.Qt.AspectRatioMode aspectMode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;scaled&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;s&lt;/tt&gt;, &lt;tt&gt;aspectMode&lt;/tt&gt;, Qt::FastTransformation). */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaled(com.trolltech.qt.core.QSize s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;scaled&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;s&lt;/tt&gt;, Qt::IgnoreAspectRatio, Qt::FastTransformation). */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaledToHeight(int h, com.trolltech.qt.core.Qt.TransformationMode mode)" doc="/**
&lt;p&gt;Returns a scaled copy of the image. The returned image is scaled to the given &lt;tt&gt;h&lt;/tt&gt; using the specified transformation &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function automatically calculates the width of the image so that the ratio of the image is preserved.&lt;/p&gt;
&lt;p&gt;If the given &lt;tt&gt;h&lt;/tt&gt; is 0 or negative, a null image is returned.&lt;/p&gt;

@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaledToHeight(int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#scaledToHeight(int, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;scaledToHeight&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, Qt::FastTransformation). */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaledToWidth(int w, com.trolltech.qt.core.Qt.TransformationMode mode)" doc="/**
&lt;p&gt;Returns a scaled copy of the image. The returned image is scaled to the given &lt;tt&gt;w&lt;/tt&gt; using the specified transformation &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This function automatically calculates the height of the image so that its aspect ratio is preserved.&lt;/p&gt;
&lt;p&gt;If the given &lt;tt&gt;w&lt;/tt&gt; is 0 or negative, a null image is returned.&lt;/p&gt;

@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage scaledToWidth(int w)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#scaledToWidth(int, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;scaledToWidth&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, Qt::FastTransformation). */"/>
    <method name="public final com.trolltech.qt.QNativePointer scanLine(int arg__1)" doc="/**
&lt;p&gt;Returns a pointer to the pixel data at the scanline with index &lt;tt&gt;arg__1&lt;/tt&gt;. The first scanline is at index 0.&lt;/p&gt;
&lt;p&gt;The scanline data is aligned on a 32-bit boundary.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If you are accessing 32-bpp image data, cast the returned pointer to &lt;tt&gt;QRgb*&lt;/tt&gt; (QRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the &lt;tt&gt;uchar*&lt;/tt&gt; 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.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#bytesPerLine()&quot;&gt;&lt;tt&gt;bytesPerLine&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#bits()&quot;&gt;&lt;tt&gt;bits&lt;/tt&gt;&lt;/a&gt;
@see Pixel Manipulation&lt;/tt&gt; */"/>
    <method name="public final void setAlphaChannel(com.trolltech.qt.gui.QImage alphaChannel)" doc="/**
&lt;p&gt;Sets the alpha channel of this image to the given &lt;tt&gt;alphaChannel&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;alphaChannel&lt;/tt&gt; is an 8 bit grayscale image, the intensity values are written into this buffer directly. Otherwise, &lt;tt&gt;alphaChannel&lt;/tt&gt; is converted to 32 bit and the intensity of the RGB pixel values is used.&lt;/p&gt;
&lt;p&gt;Note that the image will be converted to the &lt;a href=&quot;QImage.html#Format-enum&quot;&gt;&lt;tt&gt;Format_ARGB32_Premultiplied&lt;/tt&gt;&lt;/a&gt; format if the function succeeds.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#alphaChannel()&quot;&gt;&lt;tt&gt;alphaChannel&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt;
@see Image Formats&lt;/tt&gt; */"/>
    <method name="public final void setColor(int i, int c)" doc="/**
&lt;p&gt;Sets the color at the given &lt;tt&gt;i&lt;/tt&gt; in the color table, to the given to &lt;tt&gt;c&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The color value is an ARGB quadruplet.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#color(int)&quot;&gt;&lt;tt&gt;color&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#setColorTable(java.util.List&lt;java.lang.Integer&gt;)&quot;&gt;&lt;tt&gt;setColorTable&lt;/tt&gt;&lt;/a&gt;
@see Pixel Manipulation&lt;/tt&gt; */"/>
    <method name="public final void setColorTable(java.util.List&lt;java.lang.Integer&gt; colors)" doc="/**
&lt;p&gt;Sets the color table used to translate color indexes to QRgb values, to the specified &lt;tt&gt;colors&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#colorTable()&quot;&gt;&lt;tt&gt;colorTable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#setColor(int, int)&quot;&gt;&lt;tt&gt;setColor&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final void setDotsPerMeterX(int arg__1)" doc="/**
&lt;p&gt;Sets the number of pixels that fit horizontally in a physical meter, to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Together with &lt;a href=&quot;QImage.html#dotsPerMeterY()&quot;&gt;&lt;tt&gt;dotsPerMeterY&lt;/tt&gt;&lt;/a&gt;, this number defines the intended scale and aspect ratio of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#dotsPerMeterX()&quot;&gt;&lt;tt&gt;dotsPerMeterX&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final void setDotsPerMeterY(int arg__1)" doc="/**
&lt;p&gt;Sets the number of pixels that fit vertically in a physical meter, to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Together with &lt;a href=&quot;QImage.html#dotsPerMeterX()&quot;&gt;&lt;tt&gt;dotsPerMeterX&lt;/tt&gt;&lt;/a&gt;, this number defines the intended scale and aspect ratio of the image.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#dotsPerMeterY()&quot;&gt;&lt;tt&gt;dotsPerMeterY&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final void setNumColors(int arg__1)" doc="/**
&lt;p&gt;Resizes the color table to contain &lt;tt&gt;arg__1&lt;/tt&gt; entries.&lt;/p&gt;
&lt;p&gt;If the color table is expanded, all the extra colors will be set to transparent (i.e qRgba(0, 0, 0, 0)).&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#numColors()&quot;&gt;&lt;tt&gt;numColors&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#colorTable()&quot;&gt;&lt;tt&gt;colorTable&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final void setOffset(com.trolltech.qt.core.QPoint arg__1)" doc="/**
&lt;p&gt;Sets the the number of pixels by which the image is intended to be offset by when positioning relative to other images, to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#offset()&quot;&gt;&lt;tt&gt;offset&lt;/tt&gt;&lt;/a&gt;
@see Image Information&lt;/tt&gt; */"/>
    <method name="public final void setPixel(com.trolltech.qt.core.QPoint pt, int index_or_rgb)" doc="/**
&lt;p&gt;Sets the pixel index or color at the given &lt;tt&gt;pt&lt;/tt&gt; to &lt;tt&gt;index_or_rgb&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the image's format is either monochrome or 8-bit, the given &lt;tt&gt;index_or_rgb&lt;/tt&gt; value must be an index in the image's color table, otherwise the parameter must be a QRgb value.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;pt&lt;/tt&gt; is not a valid coordinate pair in the image, or if &lt;tt&gt;index_or_rgb&lt;/tt&gt; &amp;gt;= &lt;a href=&quot;QImage.html#numColors()&quot;&gt;&lt;tt&gt;numColors&lt;/tt&gt;&lt;/a&gt; in the case of monochrome and 8-bit images, the result is undefined.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#pixel(int, int)&quot;&gt;&lt;tt&gt;pixel&lt;/tt&gt;&lt;/a&gt;
@see Pixel Manipulation&lt;/tt&gt; */"/>
    <method name="public final void setPixel(int x, int y, int index_or_rgb)" doc="/**
&lt;p&gt;Sets the pixel index or color at (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) to &lt;tt&gt;index_or_rgb&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#pixel(int, int)&quot;&gt;&lt;tt&gt;pixel&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(java.lang.String key, java.lang.String value)" doc="/**
&lt;p&gt;Sets the image text to the given &lt;tt&gt;value&lt;/tt&gt; and associate it with the given &lt;tt&gt;key&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If you just want to store a single text block (i.e&amp;#x2e;, a &amp;quot;comment&amp;quot; or just a description), you can either pass an empty key, or use a generic key like &amp;quot;Description&amp;quot;.&lt;/p&gt;
&lt;p&gt;The image text is embedded into the image data when you call save() or QImageWriter::write().&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;pre&gt;            QImageWriter writer;
            writer.setFormat(&amp;quot;png&amp;quot;);
            if (writer.supportsOption(QImageIOHandler::Description))
                qDebug() &amp;lt;&amp;lt; &amp;quot;Png supports embedded text&amp;quot;;&lt;/pre&gt;
&lt;p&gt;You can use QImageWriter::supportedImageFormats() to find out which image formats are available to you.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#text(java.lang.String)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#textKeys()&quot;&gt;&lt;tt&gt;textKeys&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize size()" doc="/**
&lt;p&gt;Returns the size of the image, i.e&amp;#x2e; its &lt;a href=&quot;QImage.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImage.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see Image Information&lt;/tt&gt; */"/>
    <method name="public final java.lang.String text(java.lang.String key)" doc="/**
&lt;p&gt;Returns the image text associated with the given &lt;tt&gt;key&lt;/tt&gt;. If the specified &lt;tt&gt;key&lt;/tt&gt; is an empty string, the whole image text is returned, with each key-text pair separated by a newline.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#setText(java.lang.String, java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#textKeys()&quot;&gt;&lt;tt&gt;textKeys&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#text(java.lang.String)&quot;&gt;text&lt;/tt&gt;&lt;/a&gt;(QString()). */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; textKeys()" doc="/**
&lt;p&gt;Returns the text keys for this image.&lt;/p&gt;
&lt;p&gt;You can use these keys with &lt;a href=&quot;QImage.html#text(java.lang.String)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; to list the image text for a certain key.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#text(java.lang.String)&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage transformed(com.trolltech.qt.gui.QMatrix matrix, com.trolltech.qt.core.Qt.TransformationMode mode)" doc="/**
&lt;p&gt;Returns a copy of the image that is transformed using the given transformation &lt;tt&gt;matrix&lt;/tt&gt; and transformation &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The transformation &lt;tt&gt;matrix&lt;/tt&gt; is internally adjusted to compensate for unwanted translation; i.e&amp;#x2e; the image produced is the smallest image that contains all the transformed points of the original image. Use the &lt;a href=&quot;QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)&quot;&gt;&lt;tt&gt;trueMatrix&lt;/tt&gt;&lt;/a&gt; function to retrieve the actual matrix used for transforming an image.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)&quot;&gt;&lt;tt&gt;trueMatrix&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage transformed(com.trolltech.qt.gui.QMatrix matrix)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;transformed&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;matrix&lt;/tt&gt;, Qt::FastTransformation). */"/>
    <method name="public final com.trolltech.qt.gui.QImage transformed(com.trolltech.qt.gui.QTransform matrix, com.trolltech.qt.core.Qt.TransformationMode mode)" doc="/**
&lt;p&gt;Returns a copy of the image that is transformed using the given transformation &lt;tt&gt;matrix&lt;/tt&gt; and transformation &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The transformation &lt;tt&gt;matrix&lt;/tt&gt; is internally adjusted to compensate for unwanted translation; i.e&amp;#x2e; the image produced is the smallest image that contains all the transformed points of the original image. Use the &lt;a href=&quot;QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)&quot;&gt;&lt;tt&gt;trueMatrix&lt;/tt&gt;&lt;/a&gt; function to retrieve the actual matrix used for transforming an image.&lt;/p&gt;
&lt;p&gt;Unlike the other overload, this function can be used to perform perspective transformations on images.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)&quot;&gt;&lt;tt&gt;trueMatrix&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage transformed(com.trolltech.qt.gui.QTransform matrix)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;transformed&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;matrix&lt;/tt&gt;, Qt::FastTransformation). */"/>
    <method name="public final boolean valid(com.trolltech.qt.core.QPoint pt)" doc="/**
&lt;p&gt;Returns true if &lt;tt&gt;pt&lt;/tt&gt; is a valid coordinate pair within the image; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QRect::contains&lt;/tt&gt; */"/>
    <method name="public final boolean valid(int x, int y)" doc="/**
&lt;p&gt;Returns true if &lt;a href=&quot;%2E%2E/core/QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) is a valid coordinate pair within the image; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final int width()" doc="/**
&lt;p&gt;Returns the width of the image.&lt;/p&gt;

@see Image Information&lt;/tt&gt; */"/>
    <method name="public final int widthMM()" doc="/**
&lt;p&gt;Returns the width of the paint device in millimeters.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public int devType()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public int metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric metric)" doc="/**
&lt;p&gt;Returns the metric information for the given paint device &lt;tt&gt;metric&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;PaintDeviceMetric&lt;/tt&gt; */"/>
    <method name="public com.trolltech.qt.gui.QPaintEngine paintEngine()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QMatrix trueMatrix(com.trolltech.qt.gui.QMatrix arg__1, int w, int h)" doc="/**
&lt;p&gt;Returns the actual matrix used for transforming an image with the given &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt; and &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When transforming an image using the &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt; function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e&amp;#x2e; &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt; 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.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QTransform trueMatrix(com.trolltech.qt.gui.QTransform arg__1, int w, int h)" doc="/**
&lt;p&gt;Returns the actual matrix used for transforming an image with the given &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt; and &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When transforming an image using the &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt; function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e&amp;#x2e; &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt; 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.&lt;/p&gt;
&lt;p&gt;Unlike the other overload, this function creates transformation matrices that can be used to perform perspective transformations on images.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt;
@see Image Transformations&lt;/tt&gt; */"/>
    <enum name="InvertMode" doc="/**
&lt;p&gt;This enum type is used to describe how pixel values should be inverted in the &lt;a href=&quot;QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)&quot;&gt;&lt;tt&gt;invertPixels&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#invertPixels(com.trolltech.qt.gui.QImage.InvertMode)&quot;&gt;&lt;tt&gt;invertPixels&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="InvertRgb" doc="/**
&lt;p&gt;Invert only the RGB values and leave the alpha channel unchanged.&lt;/p&gt;
 */"/>
        <enum-value name="InvertRgba" doc="/**
&lt;p&gt;Invert all channels, including the alpha channel.&lt;/p&gt;
 */"/>
</enum>
    <enum name="Format" doc="/**
&lt;p&gt;The following image formats are available in all versions of Qt:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Format_Invalid&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The image is invalid.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Format_Mono&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The image is stored using 1-bit per pixel. Bytes are packed with the most significant bit (MSB) first.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Format_MonoLSB&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The image is stored using 1-bit per pixel. Bytes are packed with the less significant bit (LSB) first.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Format_Indexed8&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;3&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The image is stored using 8-bit indexes into a colormap.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Format_RGB32&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;4&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The image is stored using a 32-bit RGB format (0xffRRGGBB).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Format_ARGB32&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;5&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The image is stored using a 32-bit ARGB format (0xAARRGGBB).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Format_ARGB32_Premultiplied&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;6&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The image is stored using a premultiplied 32-bit ARGB format (0xAARRGGBB), i.e&amp;#x2e; the red, green, and blue channels are multiplied by the alpha component divided by 255. (If RR, GG, or BB has a higher value than the alpha channel, the results are undefined.) Certain operations (such as image composition using alpha blending) are faster using premultiplied ARGB32 than with plain ARGB32.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The following image format is specific to Qtopia Core&lt;/tt&gt;:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Format_RGB16&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;7&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;The image is stored using a 16-bit RGB format (5-6-5).&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;

@see &lt;a href=&quot;QImage.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#convertToFormat(com.trolltech.qt.gui.QImage.Format, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;convertToFormat&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Format_Invalid" doc="/**
&lt;p&gt;The image is invalid.&lt;/p&gt;
 */"/>
        <enum-value name="Format_Mono" doc="/**
&lt;p&gt;The image is stored using 1-bit per pixel. Bytes are packed with the most significant bit (MSB) first.&lt;/p&gt;
 */"/>
        <enum-value name="Format_MonoLSB" doc="/**
&lt;p&gt;The image is stored using 1-bit per pixel. Bytes are packed with the less significant bit (LSB) first.&lt;/p&gt;
 */"/>
        <enum-value name="Format_Indexed8" doc="/**
&lt;p&gt;The image is stored using 8-bit indexes into a colormap.&lt;/p&gt;
 */"/>
        <enum-value name="Format_RGB32" doc="/**
&lt;p&gt;The image is stored using a 32-bit RGB format (0xffRRGGBB).&lt;/p&gt;
 */"/>
        <enum-value name="Format_ARGB32" doc="/**
&lt;p&gt;The image is stored using a 32-bit ARGB format (0xAARRGGBB).&lt;/p&gt;
 */"/>
        <enum-value name="Format_ARGB32_Premultiplied" doc="/**
&lt;p&gt;The image is stored using a premultiplied 32-bit ARGB format (0xAARRGGBB), i.e&amp;#x2e; the red, green, and blue channels are multiplied by the alpha component divided by 255. (If RR, GG, or BB has a higher value than the alpha channel, the results are undefined.) Certain operations (such as image composition using alpha blending) are faster using premultiplied ARGB32 than with plain ARGB32.&lt;/p&gt;
 */"/>
        <enum-value name="Format_RGB16" doc="/**
&lt;p&gt;The image is stored using a 16-bit RGB format (5-6-5).&lt;/p&gt;
 */"/>
        <enum-value name="NImageFormats" doc="/**
Internal. */"/>
</enum>
</class>
