<class name="QPixmap" doc="/**
&lt;p&gt;The &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; class is an off-screen image representation that 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&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPixmap.html#QPixmap()&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&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#QPixmap()&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#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;, ensuring a depth of 1. The &lt;a href=&quot;QPixmap.html#isQBitmap()&quot;&gt;&lt;tt&gt;isQBitmap&lt;/tt&gt;&lt;/a&gt; function returns true if a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; object is really a bitmap, otherwise returns false. 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;A &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; can easily be displayed on the screen using &lt;a href=&quot;QLabel.html&quot;&gt;&lt;tt&gt;QLabel&lt;/tt&gt;&lt;/a&gt; or one of &lt;a href=&quot;QAbstractButton.html&quot;&gt;&lt;tt&gt;QAbstractButton&lt;/tt&gt;&lt;/a&gt;'s subclasses (such as &lt;a href=&quot;QPushButton.html&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QToolButton.html&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;). &lt;a href=&quot;QLabel.html&quot;&gt;&lt;tt&gt;QLabel&lt;/tt&gt;&lt;/a&gt; has a pixmap property, whereas &lt;a href=&quot;QAbstractButton.html&quot;&gt;&lt;tt&gt;QAbstractButton&lt;/tt&gt;&lt;/a&gt; has an icon property. And because &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&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 pixmaps.&lt;/p&gt;
&lt;p&gt;In addition to the ordinary constructors, a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; can be constructed using the static &lt;a href=&quot;QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWidget&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt; functions which creates a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; and paints the given widget, or window, in it.&lt;/p&gt;
&lt;p&gt;Note that the pixel data in a pixmap is internal and is managed by the underlying window system. Pixels can only be accessed through &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; functions or by converting the &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; to a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;. Depending on the system, &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; is stored using a RGB32 or a premultiplied alpha format. If the image has an alpha channel, and if the system allows, the preferred format is premultiplied alpha. Note also that &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;, unlike &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;, may be hardware dependent. On X11 and Mac, a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; is stored on the server side while a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; is stored on the client side (on Windows, these two classes have an equivalent internal representation, i.e&amp;#x2e; both &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; are stored on the client side and don't use any GDI resources).&lt;/p&gt;
&lt;p&gt;There are functions to convert between &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;. Typically, the &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; class is used to load an image file, optionally manipulating the image data, before the &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; object is converted into a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; to be shown on screen. Alternatively, if no manipulation is desired, the image file can be loaded directly into a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;. On Windows, the &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; class also supports conversion between &lt;tt&gt;HBITMAP&lt;/tt&gt; and &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; provides a collection of functions that can be used to obtain a variety of information about the pixmap. In addition, there are several functions that enables transformation of the pixmap.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; objects can be passed around by value since the &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; class uses implicit data sharing. For more information, see the Implicit Data Sharing&lt;/tt&gt; documentation. &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; objects can also be streamed.&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;#pixmap-information&quot;&gt;Pixmap Information&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pixmap-conversion&quot;&gt;Pixmap Conversion&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pixmap-transformations&quot;&gt;Pixmap Transformations&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;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; provides several ways of reading an image file: The file can be loaded when constructing the &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; object, or by using the load() or loadFromData() functions later on. 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;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&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;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;even&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;pixmap-information&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Pixmap Information&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; provides a collection of functions that can be used to obtain a variety of information about the pixmap:&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;QPixmap.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPixmap.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPixmap.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; functions provide information about the pixmap's size. The &lt;a href=&quot;QPixmap.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt; function returns the image's enclosing rectangle.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Alpha component&lt;/td&gt;&lt;td&gt;The &lt;a href=&quot;QPixmap.html#hasAlphaChannel()&quot;&gt;&lt;tt&gt;hasAlphaChannel&lt;/tt&gt;&lt;/a&gt; returns true if the pixmap has a format that respects the alpha channel, otherwise returns false, while the &lt;a href=&quot;QPixmap.html#hasAlpha()&quot;&gt;&lt;tt&gt;hasAlpha&lt;/tt&gt;&lt;/a&gt; function returns true if the pixmap has an alpha channel &lt;i&gt;or&lt;/i&gt; a mask (otherwise false).&lt;p&gt;The &lt;a href=&quot;QPixmap.html#alphaChannel()&quot;&gt;&lt;tt&gt;alphaChannel&lt;/tt&gt;&lt;/a&gt; function returns the alpha channel as a new &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; object, while the &lt;a href=&quot;QPixmap.html#mask()&quot;&gt;&lt;tt&gt;mask&lt;/tt&gt;&lt;/a&gt; function returns the mask as a &lt;a href=&quot;QBitmap.html&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; object. The alpha channel and mask can be set using the &lt;a href=&quot;QPixmap.html#setAlphaChannel(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setAlphaChannel&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPixmap.html#setMask(com.trolltech.qt.gui.QBitmap)&quot;&gt;&lt;tt&gt;setMask&lt;/tt&gt;&lt;/a&gt; functions, respectively.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Low-level information&lt;/td&gt;&lt;td&gt;The &lt;a href=&quot;QPixmap.html#depth()&quot;&gt;&lt;tt&gt;depth&lt;/tt&gt;&lt;/a&gt; function returns the depth of the pixmap. The &lt;a href=&quot;QPixmap.html#defaultDepth()&quot;&gt;&lt;tt&gt;defaultDepth&lt;/tt&gt;&lt;/a&gt; function returns the default depth, i.e&amp;#x2e; the depth used by the application on the given screen.&lt;p&gt;The &lt;a href=&quot;QPixmap.html#cacheKey()&quot;&gt;&lt;tt&gt;cacheKey&lt;/tt&gt;&lt;/a&gt; function returns a number that uniquely identifies the contents of the &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
&lt;p&gt;The x11Info() function returns information about the configuration of the X display used to display the widget. The x11PictureHandle() function returns the X11 Picture handle of the pixmap for XRender support. Note that the two latter functions are only available on x11.&lt;/p&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;a name=&quot;pixmap-conversion&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Pixmap Conversion&lt;/h3&gt;
&lt;p&gt;A &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; object can be converted into a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; using the &lt;a href=&quot;QPixmap.html#toImage()&quot;&gt;&lt;tt&gt;toImage&lt;/tt&gt;&lt;/a&gt; function. Likewise, a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; can be converted into a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; using the &lt;a href=&quot;QPixmap.html#fromImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;fromImage&lt;/tt&gt;&lt;/a&gt;. If this is too expensive an operation, you can use QBitmap::fromImage() instead.&lt;/p&gt;
&lt;p&gt;In addition, on Windows, the &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; class supports conversion to and from HBitmap: the toWinHBITMAP() function creates a HBITMAP equivalent to the &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;, based on the given HBitmapFormat, and returns the HBITMAP handle. The fromWinHBITMAP() function returns a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; that is equivalent to the given bitmap which has the specified format.&lt;/p&gt;
&lt;a name=&quot;pixmap-transformations&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Pixmap Transformations&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; supports a number of functions for creating a new pixmap that is a transformed version of the original: The &lt;a href=&quot;QPixmap.html#createHeuristicMask(boolean)&quot;&gt;&lt;tt&gt;createHeuristicMask&lt;/tt&gt;&lt;/a&gt; function creates and returns a 1-bpp heuristic mask (i.e&amp;#x2e; a &lt;a href=&quot;QBitmap.html&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt;) for this pixmap. It works by selecting a color from one of the corners and then chipping away pixels of that color, starting at all the edges. The &lt;a href=&quot;QPixmap.html#createMaskFromColor(com.trolltech.qt.gui.QColor, com.trolltech.qt.core.Qt.MaskMode)&quot;&gt;&lt;tt&gt;createMaskFromColor&lt;/tt&gt;&lt;/a&gt; function creates and returns a mask (i.e&amp;#x2e; a &lt;a href=&quot;QBitmap.html&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt;) for the pixmap based on a given color.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPixmap.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;, &lt;a href=&quot;QPixmap.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;QPixmap.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 pixmap, while the &lt;a href=&quot;QPixmap.html#copy(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;copy&lt;/tt&gt;&lt;/a&gt; function creates a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; that is a plain copy of the original one.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPixmap.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 pixmap 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;QPixmap.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 pixmap containing all transformed points of the original pixmap. The static &lt;a href=&quot;QPixmap.html#trueMatrix(com.trolltech.qt.gui.QMatrix, int, int)&quot;&gt;&lt;tt&gt;trueMatrix&lt;/tt&gt;&lt;/a&gt; function returns the actual matrix used for transforming the pixmap.&lt;/p&gt;
&lt;p&gt;There are also functions for changing attributes of a pixmap. in-place: The &lt;a href=&quot;QPixmap.html#fill(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;fill&lt;/tt&gt;&lt;/a&gt; function fills the entire image with the given color, the &lt;a href=&quot;QPixmap.html#setMask(com.trolltech.qt.gui.QBitmap)&quot;&gt;&lt;tt&gt;setMask&lt;/tt&gt;&lt;/a&gt; function sets a mask bitmap, and the &lt;a href=&quot;QPixmap.html#setAlphaChannel(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setAlphaChannel&lt;/tt&gt;&lt;/a&gt; function sets the pixmap's alpha channel.&lt;/p&gt;

@see &lt;a href=&quot;QBitmap.html&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&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; */">
    <method name="public QPixmap(int w, int h)" doc="/**
&lt;p&gt;Constructs a pixmap with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The content of the pixmap is uninitialized. If either &lt;tt&gt;w&lt;/tt&gt; or &lt;tt&gt;h&lt;/tt&gt; is zero, a null pixmap is constructed.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QPixmap(com.trolltech.qt.gui.QPixmap arg__1)" doc="/**
&lt;p&gt;Constructs a pixmap that is a copy of the given &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#copy(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;copy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QPixmap(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Constructs a pixmap of the given &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QPixmap()" doc="/**
&lt;p&gt;Constructs a null pixmap.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap alphaChannel()" doc="/**
&lt;p&gt;Returns the alpha channel of the pixmap as a new grayscale &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; in which each pixel's red, green, and blue values are given the alpha value of the original pixmap. The color depth of the returned pixmap is the system depth on X11 and 8-bit on Windows and Mac OS X.&lt;/p&gt;
&lt;p&gt;You can use this function while debugging to get a visible image of the alpha channel. If the pixmap doesn't have an alpha channel, i.e&amp;#x2e;, the alpha channel's value for all pixels equals 0xff), a null pixmap is returned. You can check this with the &lt;tt&gt;isNull()&lt;/tt&gt; function.&lt;/p&gt;
&lt;p&gt;We show an example:&lt;/p&gt;
&lt;pre&gt;            pixmap = QPixmap(100, 100);
            pixmap.fill(Qt::transparent);

            QRadialGradient gradient(50, 50, 50, 50, 50);
            gradient.setColorAt(0, QColor::fromRgbF(1, 0, 0, 1));
            gradient.setColorAt(1, QColor::fromRgbF(0, 0, 0, 0));
            QPainter painter(&amp;amp;pixmap);
            painter.fillRect(0, 0, 100, 100, gradient);

            channelImage = pixmap.alphaChannel();
            update();&lt;/pre&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/alphachannelimage.png&quot; alt=&quot;The pixmap and channelImage QPixmaps&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QPixmap.html#setAlphaChannel(com.trolltech.qt.gui.QPixmap)&quot;&gt;&lt;tt&gt;setAlphaChannel&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Information&lt;/tt&gt; */"/>
    <method name="public final long cacheKey()" doc="/**
&lt;p&gt;Returns a number that identifies this &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;. Distinct &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; objects can only have the same cache key if they refer to the same contents.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPixmap.html#cacheKey()&quot;&gt;&lt;tt&gt;cacheKey&lt;/tt&gt;&lt;/a&gt; will change when the pixmap is altered.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap copy(int x, int y, int width, int height)" doc="/**
&lt;p&gt;Returns a deep copy of the subset of the pixmap that is specified by the rectangle &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;( &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;width&lt;/tt&gt;, &lt;tt&gt;height&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap copy(com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;Returns a deep copy of the subset of the pixmap that is specified by the given &lt;tt&gt;rect&lt;/tt&gt;. For more information on deep copies, see the Implicit Data Sharing&lt;/tt&gt; documentation.&lt;/p&gt;
&lt;p&gt;If the given &lt;tt&gt;rect&lt;/tt&gt; is empty, the whole image is copied.&lt;/p&gt;

@see &lt;tt&gt;operator=&lt;/tt&gt;
@see &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap copy()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#copy(com.trolltech.qt.core.QRect)&quot;&gt;copy&lt;/tt&gt;&lt;/a&gt;(QRect()). */"/>
    <method name="public final com.trolltech.qt.gui.QBitmap createHeuristicMask(boolean clipTight)" doc="/**
&lt;p&gt;Creates and returns a heuristic mask for this pixmap.&lt;/p&gt;
&lt;p&gt;The function works by selecting a color from one of the corners and then chipping away pixels of that color, starting at all the edges. 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;The mask may not be perfect but it should be reasonable, so you can do things such as the following:&lt;/p&gt;
&lt;pre&gt;    QPixmap myPixmap;
    myPixmap-&amp;gt;setMask(myPixmap-&amp;gt;createHeuristicMask());&lt;/pre&gt;
&lt;p&gt;This function is slow because it involves converting to/from a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;, and non-trivial computations.&lt;/p&gt;

@see &lt;tt&gt;QImage::createHeuristicMask&lt;/tt&gt;
@see &lt;a href=&quot;QPixmap.html#createMaskFromColor(com.trolltech.qt.gui.QColor, com.trolltech.qt.core.Qt.MaskMode)&quot;&gt;&lt;tt&gt;createMaskFromColor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBitmap createHeuristicMask()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#createHeuristicMask(boolean)&quot;&gt;&lt;tt&gt;createHeuristicMask&lt;/tt&gt;&lt;/a&gt;(true). */"/>
    <method name="public final com.trolltech.qt.gui.QBitmap createMaskFromColor(com.trolltech.qt.gui.QColor maskColor)" doc="/**
&lt;p&gt;Creates and returns a mask for this pixmap based on the given &lt;tt&gt;maskColor&lt;/tt&gt;. Same as calling &lt;a href=&quot;QPixmap.html#createMaskFromColor(com.trolltech.qt.gui.QColor, com.trolltech.qt.core.Qt.MaskMode)&quot;&gt;&lt;tt&gt;createMaskFromColor&lt;/tt&gt;&lt;/a&gt;(maskColor, Qt::MaskInColor)&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#createHeuristicMask(boolean)&quot;&gt;&lt;tt&gt;createHeuristicMask&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImage::createMaskFromColor&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBitmap createMaskFromColor(com.trolltech.qt.gui.QColor maskColor, com.trolltech.qt.core.Qt.MaskMode mode)" doc="/**
&lt;p&gt;Creates and returns a mask for this pixmap based on the given &lt;tt&gt;maskColor&lt;/tt&gt;. If the &lt;tt&gt;mode&lt;/tt&gt; is Qt::MaskInColor, all pixels matching the maskColor will be opaque. If &lt;tt&gt;mode&lt;/tt&gt; is Qt::MaskOutColor, all pixels matching the maskColor will be transparent.&lt;/p&gt;
&lt;p&gt;This function is slow because it involves converting to/from a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#createHeuristicMask(boolean)&quot;&gt;&lt;tt&gt;createHeuristicMask&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QImage::createMaskFromColor&lt;/tt&gt; */"/>
    <method name="public final int depth()" doc="/**
&lt;p&gt;Returns the depth of the pixmap.&lt;/p&gt;
&lt;p&gt;The pixmap depth is also called bits per pixel (bpp) or bit planes of a pixmap. A null pixmap has depth 0.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#defaultDepth()&quot;&gt;&lt;tt&gt;defaultDepth&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Information&lt;/tt&gt; */"/>
    <method name="public final void fill(com.trolltech.qt.gui.QColor fillColor)" doc="/**
&lt;p&gt;Fills the pixmap with the given &lt;tt&gt;fillColor&lt;/tt&gt;.&lt;/p&gt;

@see Pixmap Transformations&lt;/tt&gt; */"/>
    <method name="public final void fill()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#fill(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;fill&lt;/tt&gt;&lt;/a&gt;(Qt::white). */"/>
    <method name="public final void fill(com.trolltech.qt.gui.QWidget widget, int xofs, int yofs)" doc="/**
&lt;p&gt;Fills the pixmap with the &lt;tt&gt;widget&lt;/tt&gt;'s background color or pixmap. The given point, (&lt;tt&gt;xofs&lt;/tt&gt;, &lt;tt&gt;yofs&lt;/tt&gt;), defines an offset in widget coordinates to which the pixmap's top-left pixel will be mapped to.&lt;/p&gt;
 */"/>
    <method name="public final void fill(com.trolltech.qt.gui.QWidget widget, com.trolltech.qt.core.QPoint ofs)" doc="/**
&lt;p&gt;Fills the pixmap with the &lt;tt&gt;widget&lt;/tt&gt;'s background color or pixmap according to the given offset.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;%2E%2E/core/QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt; &lt;tt&gt;ofs&lt;/tt&gt; defines a point in widget coordinates to which the pixmap's top-left pixel will be mapped to. This is only significant if the widget has a background pixmap; otherwise the pixmap will simply be filled with the background color of the widget.&lt;/p&gt;
 */"/>
    <method name="public final boolean hasAlpha()" doc="/**
&lt;p&gt;Returns true if this pixmap has an alpha channel, &lt;i&gt;or&lt;/i&gt; has a mask, otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#hasAlphaChannel()&quot;&gt;&lt;tt&gt;hasAlphaChannel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.html#alphaChannel()&quot;&gt;&lt;tt&gt;alphaChannel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.html#mask()&quot;&gt;&lt;tt&gt;mask&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasAlphaChannel()" doc="/**
&lt;p&gt;Returns true if the pixmap has a format that respects the alpha channel, otherwise returns false.&lt;/p&gt;

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

@see &lt;a href=&quot;QPixmap.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see Pixmap 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;QPixmap.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if this is a null pixmap; otherwise returns false.&lt;/p&gt;
&lt;p&gt;A null pixmap has zero width, zero height and no contents. You cannot draw in a null pixmap.&lt;/p&gt;
 */"/>
    <method name="public final boolean isQBitmap()" doc="/**
&lt;p&gt;Returns true if this is a &lt;a href=&quot;QBitmap.html&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt;; otherwise returns false.&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;QPixmap.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;QPixmap.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QPixmap.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;QPixmap.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.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;QPixmap.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;QPixmap.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QPixmap.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;QPixmap.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBitmap mask()" doc="/**
&lt;p&gt;Returns the mask, or a null bitmap if no mask has been set.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#setMask(com.trolltech.qt.gui.QBitmap)&quot;&gt;&lt;tt&gt;setMask&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Information&lt;/tt&gt; */"/>
    <method name="public final int numColors()" doc="/**
&lt;p&gt;Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case INT_MAX is returned instead.&lt;/p&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;QPixmap.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QPixmap.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;QPixmap.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.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;QPixmap.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QPixmap.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;QPixmap.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect rect()" doc="/**
&lt;p&gt;Returns the pixmap's enclosing rectangle.&lt;/p&gt;

@see Pixmap Information&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap 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 pixmap 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 pixmap.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap scaled(int w, int h, com.trolltech.qt.core.Qt.AspectRatioMode aspectMode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.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.QPixmap scaled(int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.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.QPixmap 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;Scales the pixmap to the given &lt;tt&gt;s&lt;/tt&gt;, using the aspect ratio and transformation modes specified by &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 pixmap 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 pixmap 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 pixmap 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 pixmap.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap scaled(com.trolltech.qt.core.QSize s, com.trolltech.qt.core.Qt.AspectRatioMode aspectMode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.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.QPixmap scaled(com.trolltech.qt.core.QSize s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.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.QPixmap 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;. The width of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;h&lt;/tt&gt; is 0 or negative, a null pixmap is returned.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap scaledToHeight(int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.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.QPixmap 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;. The height of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;w&lt;/tt&gt; is 0 or negative, a null pixmap is returned.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Transformations&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap scaledToWidth(int w)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.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 void setAlphaChannel(com.trolltech.qt.gui.QPixmap arg__1)" doc="/**
&lt;p&gt;Sets the alpha channel of this pixmap to the given &lt;tt&gt;arg__1&lt;/tt&gt; by converting the &lt;tt&gt;arg__1&lt;/tt&gt; into 32 bit and using the intensity of the RGB pixel values.&lt;/p&gt;
&lt;p&gt;The effect of this function is undefined when the pixmap is being painted on.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#alphaChannel()&quot;&gt;&lt;tt&gt;alphaChannel&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Transformations&lt;/tt&gt; */"/>
    <method name="public final void setMask(com.trolltech.qt.gui.QBitmap arg__1)" doc="/**
&lt;p&gt;Sets a mask bitmap.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;arg__1&lt;/tt&gt; bitmap defines the clip mask for this pixmap. Every pixel in &lt;tt&gt;arg__1&lt;/tt&gt; corresponds to a pixel in this pixmap. Pixel value 1 means opaque and pixel value 0 means transparent. The mask must have the same size as this pixmap.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Setting the mask on a pixmap will cause any alpha channel data to be cleared. For example:&lt;/p&gt;
&lt;pre&gt;            QPixmap alpha(&amp;quot;image-with-alpha.png&amp;quot;);
            QPixmap alphacopy = alpha;
            alphacopy.setMask(alphacopy.mask());&lt;/pre&gt;
&lt;p&gt;Now, alpha and alphacopy are visually different.&lt;/p&gt;
&lt;p&gt;Setting a null mask resets the mask.&lt;/p&gt;
&lt;p&gt;The effect of this function is undefined when the pixmap is being painted on.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#mask()&quot;&gt;&lt;tt&gt;mask&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Transformations&lt;/tt&gt;
@see &lt;a href=&quot;QBitmap.html&quot;&gt;&lt;tt&gt;QBitmap&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 pixmap.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Information&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QImage toImage()" doc="/**
&lt;p&gt;Converts the pixmap to a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;. Returns a null image if the conversion fails.&lt;/p&gt;
&lt;p&gt;If the pixmap has 1-bit depth, the returned image will also be 1 bit deep. If the pixmap has 2- to 8-bit depth, the returned image has 8-bit depth. If the pixmap has greater than 8-bit depth, the returned image has 32-bit depth.&lt;/p&gt;
&lt;p&gt;Note that for the moment, alpha masks on monochrome images are ignored.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#fromImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;fromImage&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImage.html#image-formats&quot;&gt;Image Formats&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap transformed(com.trolltech.qt.gui.QMatrix arg__1, com.trolltech.qt.core.Qt.TransformationMode mode)" doc="/**
&lt;p&gt;This convenience function loads the &lt;tt&gt;arg__1&lt;/tt&gt; into a &lt;a href=&quot;QTransform.html&quot;&gt;&lt;tt&gt;QTransform&lt;/tt&gt;&lt;/a&gt; and calls the overloaded function.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap transformed(com.trolltech.qt.gui.QTransform arg__1, com.trolltech.qt.core.Qt.TransformationMode mode)" doc="/**
&lt;p&gt;Returns a copy of the pixmap that is transformed using the given transformation &lt;tt&gt;arg__1&lt;/tt&gt; and transformation &lt;tt&gt;mode&lt;/tt&gt;. The original pixmap is not changed.&lt;/p&gt;
&lt;p&gt;The transformation &lt;tt&gt;arg__1&lt;/tt&gt; is internally adjusted to compensate for unwanted translation; i.e&amp;#x2e; the pixmap produced is the smallest pixmap that contains all the transformed points of the original pixmap. Use the &lt;a href=&quot;QPixmap.html#trueMatrix(com.trolltech.qt.gui.QMatrix, int, int)&quot;&gt;&lt;tt&gt;trueMatrix&lt;/tt&gt;&lt;/a&gt; function to retrieve the actual matrix used for transforming the pixmap.&lt;/p&gt;
&lt;p&gt;This function is slow because it involves transformation to a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;, non-trivial computations and a transformation back to a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#trueMatrix(com.trolltech.qt.gui.QMatrix, int, int)&quot;&gt;&lt;tt&gt;trueMatrix&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Transformations&lt;/tt&gt; */"/>
    <method name="public final int width()" doc="/**
&lt;p&gt;Returns the width of the pixmap.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see Pixmap 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;QPixmap.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 arg__1)" doc="/**
&lt;p&gt;Returns the metric information for the given paint device &lt;tt&gt;arg__1&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 native static int defaultDepth()" doc="/**
&lt;p&gt;Returns the default pixmap depth used by the application.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#depth()&quot;&gt;&lt;tt&gt;depth&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Information&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap fromImage(com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Converts the given &lt;tt&gt;image&lt;/tt&gt; to a pixmap using the specified &lt;tt&gt;flags&lt;/tt&gt; to control the conversion. The &lt;tt&gt;flags&lt;/tt&gt; argument is a bitwise-OR of the &lt;tt&gt;Qt::ImageConversionFlags&lt;/tt&gt;. Passing 0 for &lt;tt&gt;flags&lt;/tt&gt; sets all the default options.&lt;/p&gt;
&lt;p&gt;In case of monochrome and 8-bit images, the image is first converted to a 32-bit pixmap and then filled with the colors in the color table. If this is too expensive an operation, you can use QBitmap::fromImage() instead.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#toImage()&quot;&gt;&lt;tt&gt;toImage&lt;/tt&gt;&lt;/a&gt;
@see Pixmap Conversion&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap fromImage(com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#fromImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.core.Qt.ImageConversionFlags)&quot;&gt;&lt;tt&gt;fromImage&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;image&lt;/tt&gt;, Qt::AutoColor). */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWidget(com.trolltech.qt.gui.QWidget widget, com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;Creates a pixmap and paints the given &lt;tt&gt;widget&lt;/tt&gt;, restricted by the given &lt;tt&gt;rect&lt;/tt&gt;, in it. If the &lt;tt&gt;widget&lt;/tt&gt; has any children, then they are also painted in the appropriate positions.&lt;/p&gt;
&lt;p&gt;If no rectangle is specified (the default) the entire widget is painted.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;widget&lt;/tt&gt; is 0, the specified rectangle doesn't overlap the widget's rectangle, or an error occurs, the function will return a null &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;. If the rectangle is a superset of the given &lt;tt&gt;widget&lt;/tt&gt;, the areas outside the &lt;tt&gt;widget&lt;/tt&gt; are covered with the widget's background.&lt;/p&gt;
&lt;p&gt;This function actually asks &lt;tt&gt;widget&lt;/tt&gt; to paint itself (and its children to paint themselves) by calling paintEvent() with painter redirection turned on. But &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; also provides the &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt; function which is a bit faster grabbing pixels directly off the screen. In addition, if there are overlaying windows, &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt;, unlike &lt;a href=&quot;QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWidget&lt;/tt&gt;&lt;/a&gt;, will see them.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not call this function from QWidget::paintEvent().&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWidget(com.trolltech.qt.gui.QWidget widget, int x, int y, int w, int h)" doc="/**
&lt;p&gt;Creates a pixmap and paints the given &lt;tt&gt;widget&lt;/tt&gt;, restricted by &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;), in it.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not call this function from QWidget::paintEvent().&lt;/p&gt;
 */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWidget(com.trolltech.qt.gui.QWidget widget, int x, int y, int w)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;widget&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, -1). */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWidget(com.trolltech.qt.gui.QWidget widget, int x, int y)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;widget&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, -1, -1). */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWidget(com.trolltech.qt.gui.QWidget widget, int x)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;widget&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, 0, -1, -1). */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWidget(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;widget&lt;/tt&gt;, 0, 0, -1, -1). */"/>
    <method name="public native static com.trolltech.qt.gui.QPixmap grabWindow(long arg__1, int x, int y, int w, int h)" doc="/**
&lt;p&gt;Creates and returns a pixmap constructed by grabbing the contents of the given &lt;tt&gt;arg__1&lt;/tt&gt; restricted by &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;).&lt;/p&gt;
&lt;p&gt;The arguments (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) specify the offset in the window, whereas (&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;) specify the area to be copied. If &lt;tt&gt;w&lt;/tt&gt; is negative, the function copies everything to the right border of the window. If &lt;tt&gt;h&lt;/tt&gt; is negative, the function copies everything to the bottom of the window.&lt;/p&gt;
&lt;p&gt;The window system identifier (&lt;tt&gt;WId&lt;/tt&gt;) can be retrieved using the QWidget::winId() function. The rationale for using a window identifier and not a &lt;a href=&quot;QWidget.html&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;, is to enable grabbing of windows that are not part of the application, window system frames, and so on.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt; function grabs pixels from the screen, not from the window, i.e&amp;#x2e; if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.&lt;/p&gt;
&lt;p&gt;Note on X11that if the given &lt;tt&gt;arg__1&lt;/tt&gt; doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will &lt;i&gt;not&lt;/i&gt; get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-screenshot.html&quot;&gt;Screenshot Example&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWindow(long arg__1, int x, int y, int w)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, -1). */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWindow(long arg__1, int x, int y)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, -1, -1). */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWindow(long arg__1, int x)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, 0, -1, -1). */"/>
    <method name="public static com.trolltech.qt.gui.QPixmap grabWindow(long arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QPixmap.html#grabWindow(long, int, int, int, int)&quot;&gt;&lt;tt&gt;grabWindow&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, 0, 0, -1, -1). */"/>
    <method name="public static com.trolltech.qt.gui.QTransform trueMatrix(com.trolltech.qt.gui.QTransform m, int w, int h)" doc="/**
&lt;p&gt;Returns the actual matrix used for transforming a pixmap with the given &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt; and &lt;tt&gt;m&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When transforming a pixmap using the &lt;a href=&quot;QPixmap.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;QPixmap.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 pixmap containing all transformed points of the original pixmap. This function returns the modified matrix, which maps points correctly from the original pixmap into the new pixmap.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.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 Pixmap Transformations&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QMatrix trueMatrix(com.trolltech.qt.gui.QMatrix m, int w, int h)" doc="/**
&lt;p&gt;This convenience function loads the matrix &lt;tt&gt;m&lt;/tt&gt; into a &lt;a href=&quot;QTransform.html&quot;&gt;&lt;tt&gt;QTransform&lt;/tt&gt;&lt;/a&gt; and calls the overloaded function with the &lt;a href=&quot;QTransform.html&quot;&gt;&lt;tt&gt;QTransform&lt;/tt&gt;&lt;/a&gt; and the width &lt;tt&gt;w&lt;/tt&gt; and the height &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
</class>
