Sophie

Sophie

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

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

<class name="QBitmap" doc="/**
&lt;p&gt;The &lt;a href=&quot;QBitmap.html#QBitmap(int, int)&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; class provides monochrome (1-bit depth) pixmaps.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QBitmap.html#QBitmap(int, int)&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; class is a monochrome off-screen paint device used mainly for creating custom &lt;a href=&quot;QCursor.html&quot;&gt;&lt;tt&gt;QCursor&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt; objects, constructing &lt;a href=&quot;QRegion.html&quot;&gt;&lt;tt&gt;QRegion&lt;/tt&gt;&lt;/a&gt; objects, and for setting masks for pixmaps and widgets.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QBitmap.html#QBitmap(int, int)&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; is a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; subclass ensuring a depth of 1, except for null objects which have a depth of 0. If a pixmap with a depth greater than 1 is assigned to a bitmap, the bitmap will be dithered automatically.&lt;/p&gt;
&lt;p&gt;Use the &lt;a href=&quot;QColor.html&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; objects Qt::color0 and Qt::color1 when drawing on a &lt;a href=&quot;QBitmap.html#QBitmap(int, int)&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; object (or a &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; object with depth 1).&lt;/p&gt;
&lt;p&gt;Painting with Qt::color0 sets the bitmap bits to 0, and painting with Qt::color1 sets the bits to 1. For a bitmap, 0-bits indicate background (or transparent pixels) and 1-bits indicate foreground (or opaque pixels). Use the &lt;a href=&quot;QBitmap.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt; function to set all the bits to Qt::color0. Note that using the Qt::black and Qt::white colors make no sense because the QColor::pixel() value is not necessarily 0 for black and 1 for white.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QBitmap.html#QBitmap(int, int)&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; class provides the &lt;a href=&quot;QBitmap.html#transformed(com.trolltech.qt.gui.QMatrix)&quot;&gt;&lt;tt&gt;transformed&lt;/tt&gt;&lt;/a&gt; function returning a transformed copy of the bitmap; use the &lt;a href=&quot;QMatrix.html&quot;&gt;&lt;tt&gt;QMatrix&lt;/tt&gt;&lt;/a&gt; argument to translate, scale, shear, and rotate the bitmap. In addition, &lt;a href=&quot;QBitmap.html#QBitmap(int, int)&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; provides the static fromData() function which returns a bitmap constructed from the given &lt;tt&gt;uchar&lt;/tt&gt; data, and the static &lt;a href=&quot;QBitmap.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; function returning a converted copy of a &lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
&lt;p&gt;Just like the &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; class, &lt;a href=&quot;QBitmap.html#QBitmap(int, int)&quot;&gt;&lt;tt&gt;QBitmap&lt;/tt&gt;&lt;/a&gt; is optimized by the use of implicit data sharing. For more information, see the {Implicit Data Sharing} documentation.&lt;/p&gt;

@see &lt;a href=&quot;QPixmap.html#QPixmap()&quot;&gt;&lt;tt&gt;QPixmap&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 QBitmap(com.trolltech.qt.gui.QPixmap arg__1)" doc="/**
&lt;p&gt;Constructs a bitmap that is a copy of the given &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the pixmap has a depth greater than 1, the resulting bitmap will be dithered automatically.&lt;/p&gt;

@see &lt;tt&gt;QPixmap::depth&lt;/tt&gt;
@see &lt;a href=&quot;QBitmap.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;tt&gt;fromData&lt;/tt&gt; */"/>
    <method name="public QBitmap(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Constructs a bitmap with the given &lt;tt&gt;arg__1&lt;/tt&gt;. The pixels in the bitmap are uninitialized.&lt;/p&gt;

@see &lt;a href=&quot;QBitmap.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QBitmap()" doc="/**
&lt;p&gt;Constructs a null bitmap.&lt;/p&gt;

@see &lt;tt&gt;QPixmap::isNull&lt;/tt&gt; */"/>
    <method name="public QBitmap(int w, int h)" doc="/**
&lt;p&gt;Constructs a bitmap with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;. The pixels inside are uninitialized.&lt;/p&gt;

@see &lt;a href=&quot;QBitmap.html#clear()&quot;&gt;&lt;tt&gt;clear&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clear()" doc="/**
&lt;p&gt;Clears the bitmap, setting all its bits to Qt::color0.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QBitmap transformed(com.trolltech.qt.gui.QTransform matrix)" doc="/**
&lt;p&gt;Returns a copy of this bitmap, transformed according to the given &lt;tt&gt;matrix&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QPixmap::transformed&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QBitmap transformed(com.trolltech.qt.gui.QMatrix arg__1)" doc="/**
&lt;p&gt;This convenience function converts the &lt;tt&gt;arg__1&lt;/tt&gt; to 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 static com.trolltech.qt.gui.QBitmap fromImage(com.trolltech.qt.gui.QImage image, com.trolltech.qt.core.Qt.ImageConversionFlags flags)" doc="/**
&lt;p&gt;Returns a copy of the given &lt;tt&gt;image&lt;/tt&gt; converted to a bitmap using the specified image conversion &lt;tt&gt;flags&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;fromData&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QBitmap fromImage(com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QBitmap.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). */"/>
</class>