~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qbitmap-qt3.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/image/qbitmap.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: Qt 3 Support Members for QBitmap</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">Qt 3 Support Members for QBitmap</h1>
 
21
<p><b>The following class members are part of the Qt 3 support layer.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
 
22
<p><ul><li><a href="qbitmap.html">QBitmap class reference</a></li></ul></p>
 
23
<h3>Public Functions</h3>
 
24
<ul>
 
25
<li><div class="fn"/><b><a href="qbitmap-qt3.html#QBitmap-5">QBitmap</a></b> ( int <i>w</i>, int <i>h</i>, bool <i>clear</i> )</li>
 
26
<li><div class="fn"/><b><a href="qbitmap-qt3.html#QBitmap-6">QBitmap</a></b> ( const QSize &amp; <i>size</i>, bool <i>clear</i> )</li>
 
27
<li><div class="fn"/><b><a href="qbitmap-qt3.html#QBitmap-7">QBitmap</a></b> ( int <i>width</i>, int <i>height</i>, const uchar * <i>bits</i>, bool <i>isXbitmap</i> = false )</li>
 
28
<li><div class="fn"/><b><a href="qbitmap-qt3.html#QBitmap-8">QBitmap</a></b> ( const QImage &amp; <i>image</i> )</li>
 
29
<li><div class="fn"/><b><a href="qbitmap-qt3.html#QBitmap-10">QBitmap</a></b> ( const QSize &amp; <i>size</i>, const uchar * <i>bits</i>, bool <i>isXbitmap</i> = false )</li>
 
30
<li><div class="fn"/>QBitmap <b><a href="qbitmap-qt3.html#xForm">xForm</a></b> ( const QMatrix &amp; <i>matrix</i> ) const</li>
 
31
<li><div class="fn"/>QBitmap &amp; <b><a href="qbitmap-qt3.html#operator-eq-2">operator=</a></b> ( const QImage &amp; <i>image</i> )</li>
 
32
</ul>
 
33
<ul>
 
34
<li><div class="fn"/>11 public functions inherited from <a href="qpixmap.html#public-functions">QPixmap</a></li>
 
35
<li><div class="fn"/>8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
 
36
</ul>
 
37
<hr />
 
38
<h2>Member Function Documentation</h2>
 
39
<h3 class="fn"><a name="QBitmap-5"></a>QBitmap::QBitmap ( int <i>w</i>, int <i>h</i>, bool <i>clear</i> )</h3>
 
40
<p>Use the <a href="qbitmap.html">QBitmap</a>(<i>w</i>, <i>h</i>) constructor. If <i>clear</i> is true, call <a href="qbitmap.html#clear">clear</a>() afterward.</p>
 
41
<p>See also <a href="qbitmap.html#clear">clear</a>().</p>
 
42
<h3 class="fn"><a name="QBitmap-6"></a>QBitmap::QBitmap ( const <a href="qsize.html">QSize</a> &amp; <i>size</i>, bool <i>clear</i> )</h3>
 
43
<p>Use the <a href="qbitmap.html">QBitmap</a>(<i>size</i>) constructor. If <i>clear</i> is true, call <a href="qbitmap.html#clear">clear</a>() afterward.</p>
 
44
<p>See also <a href="qbitmap.html#clear">clear</a>().</p>
 
45
<h3 class="fn"><a name="QBitmap-7"></a>QBitmap::QBitmap ( int <i>width</i>, int <i>height</i>, const <a href="qtglobal.html#uchar-typedef">uchar</a> * <i>bits</i>, bool <i>isXbitmap</i> = false )</h3>
 
46
<p>Constructs a bitmap with the given <i>width</i> and <i>height</i>, and sets the contents to the <i>bits</i> supplied.</p>
 
47
<p>The <i>isXbitmap</i> flag should be true if <i>bits</i> was generated by the <a href="winsystem.html#x11">X11</a> bitmap program. The X bitmap bit order is little endian. The <a href="qimage.html">QImage</a> documentation discusses bit order of monochrome images. Opposed to <a href="qimage.html">QImage</a>, the data has to be byte aligned.</p>
 
48
<p>Example (creates an arrow bitmap):</p>
 
49
<pre>&nbsp;   uchar arrow_bits[] = { 0x3f, 0x1f, 0x0f, 0x1f, 0x3b, 0x71, 0xe0, 0xc0 };
 
50
    QBitmap bm(8, 8, arrow_bits, true);</pre>
 
51
<h3 class="fn"><a name="QBitmap-8"></a>QBitmap::QBitmap ( const <a href="qimage.html">QImage</a> &amp; <i>image</i> )</h3>
 
52
<p>Constructs a bitmap that is a copy of the <i>image</i> given.</p>
 
53
<p>Dithering will be performed if the image has a <a href="qimage.html#depth">QImage::depth</a>() greater than 1.</p>
 
54
<h3 class="fn"><a name="QBitmap-10"></a>QBitmap::QBitmap ( const <a href="qsize.html">QSize</a> &amp; <i>size</i>, const <a href="qtglobal.html#uchar-typedef">uchar</a> * <i>bits</i>, bool <i>isXbitmap</i> = false )</h3>
 
55
<p>Constructs a bitmap with the given <i>size</i>, and sets the contents to the <i>bits</i> supplied.</p>
 
56
<p>The <i>isXbitmap</i> flag should be true if <i>bits</i> was generated by the <a href="winsystem.html#x11">X11</a> bitmap program. The X bitmap bit order is little endian. The <a href="qimage.html">QImage</a> documentation discusses bit order of monochrome images.</p>
 
57
<h3 class="fn"><a name="xForm"></a>QBitmap QBitmap::xForm ( const <a href="qmatrix.html">QMatrix</a> &amp; <i>matrix</i> ) const</h3>
 
58
<p>Use transform(<i>matrix</i>) instead.</p>
 
59
<h3 class="fn"><a name="operator-eq-2"></a>QBitmap &amp; QBitmap::operator= ( const <a href="qimage.html">QImage</a> &amp; <i>image</i> )</h3>
 
60
<p>This is an overloaded member function, provided for convenience. It behaves essentially like the above function.</p>
 
61
<p>Converts the image <i>image</i> to a bitmap, and assigns the result to this bitmap. Returns a reference to the bitmap.</p>
 
62
<p>Dithering will be performed if the image has a <a href="qimage.html#depth">QImage::depth</a>() greater than 1.</p>
 
63
<p /><address><hr /><div align="center">
 
64
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
65
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
66
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
67
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
68
</tr></table></div></address></body>
 
69
</html>