File: qbitmap-qt3.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (106 lines) | stat: -rw-r--r-- 8,572 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qbitmap.cpp -->
  <title>Qt 4.8: Qt 3 Support Members for QBitmap</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QBitmap</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<h1 class="title">Qt 3 Support Members for QBitmap</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qbitmap.html">QBitmap class reference</a></li></ul></p>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbitmap-qt3.html#QBitmap-6">QBitmap</a></b> ( int <i>width</i>, int <i>height</i>, bool <i>clear</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbitmap-qt3.html#QBitmap-7">QBitmap</a></b> ( const QSize &amp; <i>size</i>, bool <i>clear</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbitmap-qt3.html#QBitmap-8">QBitmap</a></b> ( int <i>width</i>, int <i>height</i>, const uchar * <i>bits</i>, bool <i>isXbitmap</i> = false )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbitmap-qt3.html#QBitmap-9">QBitmap</a></b> ( const QImage &amp; <i>image</i> )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> </td><td class="memItemRight bottomAlign"><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 )</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QBitmap </td><td class="memItemRight bottomAlign"><b><a href="qbitmap-qt3.html#xForm">xForm</a></b> ( const QMatrix &amp; <i>matrix</i> ) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> QBitmap &amp; </td><td class="memItemRight bottomAlign"><b><a href="qbitmap-qt3.html#operator-eq-2">operator=</a></b> ( const QImage &amp; <i>image</i> )</td></tr>
</table>
<ul>
<li class="fn">13 public functions inherited from <a href="qpixmap.html#public-functions">QPixmap</a></li>
<li class="fn">8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<h2>Member Function Documentation</h2>
<!-- $$$QBitmap$$$QBitmapintintbool -->
<h3 class="fn"><a name="QBitmap-6"></a>QBitmap::<span class="name">QBitmap</span> ( <span class="type">int</span> <i>width</i>, <span class="type">int</span> <i>height</i>, <span class="type">bool</span> <i>clear</i> )</h3>
<p>Constructs a bitmap with the given <i>width</i> and <i>height</i>. If <i>clear</i> is true, the bits are initialized to <a href="qt.html#GlobalColor-enum">Qt::color0</a>.</p>
<p>Use the corresponding <a href="qbitmap.html#QBitmap">QBitmap</a>() constructor instead, and then call the <a href="qbitmap.html#clear">clear</a>() function if the <i>clear</i> parameter is true.</p>
<!-- @@@QBitmap -->
<!-- $$$QBitmap$$$QBitmapconstQSize&bool -->
<h3 class="fn"><a name="QBitmap-7"></a>QBitmap::<span class="name">QBitmap</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> &amp; <i>size</i>, <span class="type">bool</span> <i>clear</i> )</h3>
<p>Constructs a bitmap with the given <i>size</i>. If <i>clear</i> is true, the bits are initialized to <a href="qt.html#GlobalColor-enum">Qt::color0</a>.</p>
<p>Use the corresponding <a href="qbitmap.html#QBitmap">QBitmap</a>() constructor instead, and then call the <a href="qbitmap.html#clear">clear</a>() function if the <i>clear</i> parameter is true.</p>
<!-- @@@QBitmap -->
<!-- $$$QBitmap$$$QBitmapintintconstuchar*bool -->
<h3 class="fn"><a name="QBitmap-8"></a>QBitmap::<span class="name">QBitmap</span> ( <span class="type">int</span> <i>width</i>, <span class="type">int</span> <i>height</i>, const <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> * <i>bits</i>, <span class="type">bool</span> <i>isXbitmap</i> = false )</h3>
<p>Constructs a bitmap with the given <i>width</i> and <i>height</i>, and sets the contents to the <i>bits</i> supplied. The <i>isXbitmap</i> flag should be true if <i>bits</i> was generated by the X11 bitmap program.</p>
<p>Use the static <a href="qbitmap.html#fromData">fromData</a>() function instead. If <i>isXbitmap</i> is true, use the default bit order(QImage_FormatMonoLSB) otherwise use <a href="qimage.html#Format-enum">QImage::Format_Mono</a>.</p>
<!-- @@@QBitmap -->
<!-- $$$QBitmap$$$QBitmapconstQImage& -->
<h3 class="fn"><a name="QBitmap-9"></a>QBitmap::<span class="name">QBitmap</span> ( const <span class="type"><a href="qimage.html">QImage</a></span> &amp; <i>image</i> )</h3>
<p>Constructs a bitmap that is a copy of the given <i>image</i>.</p>
<p>Use the static <a href="qbitmap.html#fromImage">fromImage</a>() function instead.</p>
<!-- @@@QBitmap -->
<!-- $$$QBitmap$$$QBitmapconstQSize&constuchar*bool -->
<h3 class="fn"><a name="QBitmap-10"></a>QBitmap::<span class="name">QBitmap</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> &amp; <i>size</i>, const <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> * <i>bits</i>, <span class="type">bool</span> <i>isXbitmap</i> = false )</h3>
<p>This is an overloaded function.</p>
<p>Constructs a bitmap with the given <i>size</i>, and sets the contents to the <i>bits</i> supplied. The <i>isXbitmap</i> flag should be true if <i>bits</i> was generated by the X11 bitmap program.</p>
<p>Use the static <a href="qbitmap.html#fromData">fromData</a>() function instead. If <i>isXbitmap</i> is true, use the default bit order(QImage_FormatMonoLSB) otherwise use <a href="qimage.html#Format-enum">QImage::Format_Mono</a>.</p>
<!-- @@@QBitmap -->
<!-- $$$xForm[overload1]$$$xFormconstQMatrix& -->
<h3 class="fn"><a name="xForm"></a><span class="type">QBitmap</span> QBitmap::<span class="name">xForm</span> ( const <span class="type"><a href="qmatrix.html">QMatrix</a></span> &amp; <i>matrix</i> ) const</h3>
<p>Returns a copy of this bitmap, transformed according to the given <i>matrix</i>.</p>
<p>Use <a href="qbitmap.html#transformed">transformed</a>() instead.</p>
<!-- @@@xForm -->
<!-- $$$operator=$$$operator=constQImage& -->
<h3 class="fn"><a name="operator-eq-2"></a><span class="type">QBitmap</span> &amp; QBitmap::<span class="name">operator=</span> ( const <span class="type"><a href="qimage.html">QImage</a></span> &amp; <i>image</i> )</h3>
<p>This is an overloaded function.</p>
<p>Converts the given <i>image</i> to a bitmap, and assigns the result to this bitmap. Returns a reference to the bitmap.</p>
<p>Use the static <a href="qbitmap.html#fromImage">fromImage</a>() function instead.</p>
<!-- @@@operator= -->
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>