<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 16:58:36 CEST 2007 --> <TITLE> QBitmap </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.gui.QBitmap class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QBitmap"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/gui/QApplication.Type.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QBoxLayout.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/gui/QBitmap.html" target="_top"><B>FRAMES</B></A> <A HREF="QBitmap.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.trolltech.qt.gui</FONT> <BR> Class QBitmap</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">com.trolltech.qt.gui.QPixmap</A> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.gui.QBitmap</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>QBitmap</B><DT>extends <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></DL> </PRE> <P> <p>The <a href="QBitmap.html#QBitmap(int, int)"><tt>QBitmap</tt></a> class provides monochrome (1-bit depth) pixmaps.</p> <p>The <a href="QBitmap.html#QBitmap(int, int)"><tt>QBitmap</tt></a> class is a monochrome off-screen paint device used mainly for creating custom <a href="QCursor.html"><tt>QCursor</tt></a> and <a href="QBrush.html"><tt>QBrush</tt></a> objects, constructing <a href="QRegion.html"><tt>QRegion</tt></a> objects, and for setting masks for pixmaps and widgets.</p> <p><a href="QBitmap.html#QBitmap(int, int)"><tt>QBitmap</tt></a> is a <a href="QPixmap.html#QPixmap()"><tt>QPixmap</tt></a> 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.</p> <p>Use the <a href="QColor.html"><tt>QColor</tt></a> objects Qt::color0 and Qt::color1 when drawing on a <a href="QBitmap.html#QBitmap(int, int)"><tt>QBitmap</tt></a> object (or a <a href="QPixmap.html#QPixmap()"><tt>QPixmap</tt></a> object with depth 1).</p> <p>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 <a href="QBitmap.html#clear()"><tt>clear</tt></a> 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.</p> <p>The <a href="QBitmap.html#QBitmap(int, int)"><tt>QBitmap</tt></a> class provides the <a href="QBitmap.html#transformed(com.trolltech.qt.gui.QMatrix)"><tt>transformed</tt></a> function returning a transformed copy of the bitmap; use the <a href="QMatrix.html"><tt>QMatrix</tt></a> argument to translate, scale, shear, and rotate the bitmap. In addition, <a href="QBitmap.html#QBitmap(int, int)"><tt>QBitmap</tt></a> provides the static fromData() function which returns a bitmap constructed from the given <tt>uchar</tt> data, and the static <a href="QBitmap.html#fromImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>fromImage</tt></a> function returning a converted copy of a <a href="QImage.html"><tt>QImage</tt></a> object.</p> <p>Just like the <a href="QPixmap.html#QPixmap()"><tt>QPixmap</tt></a> class, <a href="QBitmap.html#QBitmap(int, int)"><tt>QBitmap</tt></a> is optimized by the use of implicit data sharing. For more information, see the {Implicit Data Sharing} documentation.</p> <P> <P> <DL> <DT><B>See Also:</B><DD><a href="QPixmap.html#QPixmap()"><tt>QPixmap</tt></a>, <a href="QImage.html"><tt>QImage</tt></a>, <a href="QImageReader.html"><tt>QImageReader</tt></a>, <a href="QImageWriter.html"><tt>QImageWriter</tt></a></DL> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <A NAME="nested_class_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Nested Class Summary</B></FONT></TH> </TR> </TABLE> <A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A><<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#QBitmap()">QBitmap</A></B>()</CODE> <BR> Constructs a null bitmap.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#QBitmap(int, int)">QBitmap</A></B>(int w, int h)</CODE> <BR> Constructs a bitmap with the given <tt>w</tt> and <tt>h</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#QBitmap(com.trolltech.qt.gui.QPixmap)">QBitmap</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> arg__1)</CODE> <BR> Constructs a bitmap that is a copy of the given <tt>arg__1</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#QBitmap(com.trolltech.qt.core.QSize)">QBitmap</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> arg__1)</CODE> <BR> Constructs a bitmap with the given <tt>arg__1</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#QBitmap(java.lang.String)">QBitmap</A></B>(java.lang.String fileName)</CODE> <BR> This is an overloaded constructor provided for convenience.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#QBitmap(java.lang.String, java.lang.String)">QBitmap</A></B>(java.lang.String fileName, java.lang.String format)</CODE> <BR> Constructs a bitmap from the file specified by the given <tt>fileName</tt>.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#clear()">clear</A></B>()</CODE> <BR> Clears the bitmap, setting all its bits to Qt::color0.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#fromData(com.trolltech.qt.core.QSize, byte[])">fromData</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> size, byte[] bits)</CODE> <BR> This is an overloaded constructor provided for convenience.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#fromData(com.trolltech.qt.core.QSize, byte[], com.trolltech.qt.gui.QImage.Format)">fromData</A></B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> size, byte[] bits, <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A> monoFormat)</CODE> <BR> Constructs a bitmap with the given <tt>size</tt>, and sets the contents to the <tt>bits</tt> supplied.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#fromImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.core.Qt.ImageConversionFlags)">fromImage</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> image, <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlags.html" title="class in com.trolltech.qt.core">Qt.ImageConversionFlags</A> flags)</CODE> <BR> Returns a copy of the given <tt>image</tt> converted to a bitmap using the specified image conversion <tt>flags</tt>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</CODE> <BR> This function returns the QBitmap instance pointed to by nativePointer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#nativePointerArray(com.trolltech.qt.gui.QBitmap[])">nativePointerArray</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A>[] array)</CODE> <BR> This function returns a QNativePointer that is pointing to the specified QBitmap array.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#transformed(com.trolltech.qt.gui.QMatrix)">transformed</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A> arg__1)</CODE> <BR> This convenience function converts the <tt>arg__1</tt> to a <a href="QTransform.html"><tt>QTransform</tt></a> and calls the overloaded function.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QBitmap.html#transformed(com.trolltech.qt.gui.QTransform)">transformed</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A> matrix)</CODE> <BR> Returns a copy of this bitmap, transformed according to the given <tt>matrix</tt>.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.gui.QPixmap"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.gui.<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#alphaChannel()">alphaChannel</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#cacheKey()">cacheKey</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#copy()">copy</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#copy(int, int, int, int)">copy</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#copy(com.trolltech.qt.core.QRect)">copy</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#createHeuristicMask()">createHeuristicMask</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#createHeuristicMask(boolean)">createHeuristicMask</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#createMaskFromColor(com.trolltech.qt.gui.QColor)">createMaskFromColor</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#createMaskFromColor(com.trolltech.qt.gui.QColor, com.trolltech.qt.core.Qt.MaskMode)">createMaskFromColor</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#defaultDepth()">defaultDepth</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#depth()">depth</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#devType()">devType</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#fill()">fill</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#fill(com.trolltech.qt.gui.QColor)">fill</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#fill(com.trolltech.qt.gui.QWidget, int, int)">fill</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#fill(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)">fill</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#fromImage(com.trolltech.qt.gui.QImage)">fromImage</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#fromImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.core.Qt.ImageConversionFlag...)">fromImage</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget)">grabWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int)">grabWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int)">grabWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int)">grabWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, int, int, int, int)">grabWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QRect)">grabWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWindow(long)">grabWindow</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWindow(long, int)">grabWindow</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWindow(long, int, int)">grabWindow</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWindow(long, int, int, int)">grabWindow</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#grabWindow(long, int, int, int, int)">grabWindow</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#hasAlpha()">hasAlpha</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#hasAlphaChannel()">hasAlphaChannel</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#height()">height</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#heightMM()">heightMM</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#isNull()">isNull</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#isQBitmap()">isQBitmap</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#load(java.lang.String)">load</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#load(java.lang.String, java.lang.String)">load</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#load(java.lang.String, java.lang.String, com.trolltech.qt.core.Qt.ImageConversionFlag...)">load</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#load(java.lang.String, java.lang.String, com.trolltech.qt.core.Qt.ImageConversionFlags)">load</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#loadFromData(byte[])">loadFromData</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#loadFromData(byte[], java.lang.String)">loadFromData</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#loadFromData(byte[], java.lang.String, com.trolltech.qt.core.Qt.ImageConversionFlag...)">loadFromData</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#loadFromData(byte[], java.lang.String, com.trolltech.qt.core.Qt.ImageConversionFlags)">loadFromData</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#loadFromData(com.trolltech.qt.core.QByteArray)">loadFromData</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#loadFromData(com.trolltech.qt.core.QByteArray, java.lang.String)">loadFromData</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#loadFromData(com.trolltech.qt.core.QByteArray, java.lang.String, com.trolltech.qt.core.Qt.ImageConversionFlag...)">loadFromData</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#loadFromData(com.trolltech.qt.core.QByteArray, java.lang.String, com.trolltech.qt.core.Qt.ImageConversionFlags)">loadFromData</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#logicalDpiX()">logicalDpiX</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#logicalDpiY()">logicalDpiY</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#mask()">mask</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric)">metric</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#nativePointerArray(com.trolltech.qt.gui.QPixmap[])">nativePointerArray</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#numColors()">numColors</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#paintEngine()">paintEngine</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#paintingActive()">paintingActive</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#physicalDpiX()">physicalDpiX</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#physicalDpiY()">physicalDpiY</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#readFrom(com.trolltech.qt.core.QDataStream)">readFrom</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#rect()">rect</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#save(com.trolltech.qt.core.QIODevice)">save</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#save(com.trolltech.qt.core.QIODevice, java.lang.String)">save</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#save(com.trolltech.qt.core.QIODevice, java.lang.String, int)">save</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#save(java.lang.String)">save</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#save(java.lang.String, java.lang.String)">save</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#save(java.lang.String, java.lang.String, int)">save</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaled(int, int)">scaled</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaled(int, int, com.trolltech.qt.core.Qt.AspectRatioMode)">scaled</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaled(int, int, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaled(com.trolltech.qt.core.QSize)">scaled</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode)">scaled</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaled(com.trolltech.qt.core.QSize, com.trolltech.qt.core.Qt.AspectRatioMode, com.trolltech.qt.core.Qt.TransformationMode)">scaled</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaledToHeight(int)">scaledToHeight</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaledToHeight(int, com.trolltech.qt.core.Qt.TransformationMode)">scaledToHeight</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaledToWidth(int)">scaledToWidth</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#scaledToWidth(int, com.trolltech.qt.core.Qt.TransformationMode)">scaledToWidth</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#setAlphaChannel(com.trolltech.qt.gui.QPixmap)">setAlphaChannel</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#setMask(com.trolltech.qt.gui.QBitmap)">setMask</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#size()">size</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#toImage()">toImage</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#transformed(com.trolltech.qt.gui.QMatrix, com.trolltech.qt.core.Qt.TransformationMode)">transformed</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#transformed(com.trolltech.qt.gui.QTransform, com.trolltech.qt.core.Qt.TransformationMode)">transformed</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#trueMatrix(com.trolltech.qt.gui.QMatrix, int, int)">trueMatrix</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#trueMatrix(com.trolltech.qt.gui.QTransform, int, int)">trueMatrix</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#width()">width</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#widthMM()">widthMM</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html#writeTo(com.trolltech.qt.core.QDataStream)">writeTo</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="QBitmap(com.trolltech.qt.gui.QPixmap)"><!-- --></A><H3> QBitmap</H3> <PRE> public <B>QBitmap</B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A> arg__1)</PRE> <DL> <DD><p>Constructs a bitmap that is a copy of the given <tt>arg__1</tt>.</p> <p>If the pixmap has a depth greater than 1, the resulting bitmap will be dithered automatically.</p> <P> <DL> <DT><B>See Also:</B><DD><tt>QPixmap::depth</tt>, <a href="QBitmap.html#fromImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.core.Qt.ImageConversionFlags)"><tt>fromImage</tt></a>, <tt>fromData</tt></DL> </DL> <HR> <A NAME="QBitmap(com.trolltech.qt.core.QSize)"><!-- --></A><H3> QBitmap</H3> <PRE> public <B>QBitmap</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> arg__1)</PRE> <DL> <DD><p>Constructs a bitmap with the given <tt>arg__1</tt>. The pixels in the bitmap are uninitialized.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QBitmap.html#clear()"><tt>clear</tt></a></DL> </DL> <HR> <A NAME="QBitmap()"><!-- --></A><H3> QBitmap</H3> <PRE> public <B>QBitmap</B>()</PRE> <DL> <DD><p>Constructs a null bitmap.</p> <P> <DL> <DT><B>See Also:</B><DD><tt>QPixmap::isNull</tt></DL> </DL> <HR> <A NAME="QBitmap(int, int)"><!-- --></A><H3> QBitmap</H3> <PRE> public <B>QBitmap</B>(int w, int h)</PRE> <DL> <DD><p>Constructs a bitmap with the given <tt>w</tt> and <tt>h</tt>. The pixels inside are uninitialized.</p> <P> <DL> <DT><B>See Also:</B><DD><a href="QBitmap.html#clear()"><tt>clear</tt></a></DL> </DL> <HR> <A NAME="QBitmap(java.lang.String, java.lang.String)"><!-- --></A><H3> QBitmap</H3> <PRE> public <B>QBitmap</B>(java.lang.String fileName, java.lang.String format)</PRE> <DL> <DD>Constructs a bitmap from the file specified by the given <tt>fileName</tt>. If the file does not exist, or has an unknown format, the bitmap becomes a null bitmap. <p> The <tt>fileName</tt> and <tt>format</tt> parameters are passed on to the QPixmap::load() function. If the file format uses more than 1 bit per pixel, the resulting bitmap will be dithered automatically. <P> </DL> <HR> <A NAME="QBitmap(java.lang.String)"><!-- --></A><H3> QBitmap</H3> <PRE> public <B>QBitmap</B>(java.lang.String fileName)</PRE> <DL> <DD>This is an overloaded constructor provided for convenience. <P> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="clear()"><!-- --></A><H3> clear</H3> <PRE> public final void <B>clear</B>()</PRE> <DL> <DD><p>Clears the bitmap, setting all its bits to Qt::color0.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="transformed(com.trolltech.qt.gui.QTransform)"><!-- --></A><H3> transformed</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A> <B>transformed</B>(<A HREF="../../../../com/trolltech/qt/gui/QTransform.html" title="class in com.trolltech.qt.gui">QTransform</A> matrix)</PRE> <DL> <DD><p>Returns a copy of this bitmap, transformed according to the given <tt>matrix</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><tt>QPixmap::transformed</tt></DL> </DD> </DL> <HR> <A NAME="transformed(com.trolltech.qt.gui.QMatrix)"><!-- --></A><H3> transformed</H3> <PRE> public final <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A> <B>transformed</B>(<A HREF="../../../../com/trolltech/qt/gui/QMatrix.html" title="class in com.trolltech.qt.gui">QMatrix</A> arg__1)</PRE> <DL> <DD><p>This convenience function converts the <tt>arg__1</tt> to a <a href="QTransform.html"><tt>QTransform</tt></a> and calls the overloaded function.</p> <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="fromImage(com.trolltech.qt.gui.QImage, com.trolltech.qt.core.Qt.ImageConversionFlags)"><!-- --></A><H3> fromImage</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A> <B>fromImage</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A> image, <A HREF="../../../../com/trolltech/qt/core/Qt.ImageConversionFlags.html" title="class in com.trolltech.qt.core">Qt.ImageConversionFlags</A> flags)</PRE> <DL> <DD><p>Returns a copy of the given <tt>image</tt> converted to a bitmap using the specified image conversion <tt>flags</tt>.</p> <P> <DD><DL> <DT><B>See Also:</B><DD><tt>fromData</tt></DL> </DD> </DL> <HR> <A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3> fromNativePointer</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> nativePointer)</PRE> <DL> <DD>This function returns the QBitmap instance pointed to by nativePointer <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL> </DD> </DL> <HR> <A NAME="nativePointerArray(com.trolltech.qt.gui.QBitmap[])"><!-- --></A><H3> nativePointerArray</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A> <B>nativePointerArray</B>(<A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A>[] array)</PRE> <DL> <DD>This function returns a QNativePointer that is pointing to the specified QBitmap array. <P> <DD><DL> <DT><B>Parameters:</B><DD><CODE>array</CODE> - the array that the returned pointer will point to. <DT><B>Returns:</B><DD>a QNativePointer that is pointing to the specified array.</DL> </DD> </DL> <HR> <A NAME="fromData(com.trolltech.qt.core.QSize, byte[], com.trolltech.qt.gui.QImage.Format)"><!-- --></A><H3> fromData</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A> <B>fromData</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> size, byte[] bits, <A HREF="../../../../com/trolltech/qt/gui/QImage.Format.html" title="enum in com.trolltech.qt.gui">QImage.Format</A> monoFormat)</PRE> <DL> <DD>Constructs a bitmap with the given <tt>size</tt>, and sets the contents to the <tt>bits</tt> supplied. <p> The bitmap data has to be byte aligned and provided in in the bit order specified by <tt>monoFormat</tt>. The mono format must be either QImage::Format_Mono or QImage::Format_MonoLSB. Use QImage::Format_Mono to specify data on the XBM format. <P> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="fromData(com.trolltech.qt.core.QSize, byte[])"><!-- --></A><H3> fromData</H3> <PRE> public static <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A> <B>fromData</B>(<A HREF="../../../../com/trolltech/qt/core/QSize.html" title="class in com.trolltech.qt.core">QSize</A> size, byte[] bits)</PRE> <DL> <DD>This is an overloaded constructor provided for convenience. <P> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/gui/QApplication.Type.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/gui/QBoxLayout.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/gui/QBitmap.html" target="_top"><B>FRAMES</B></A> <A HREF="QBitmap.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>