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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paintlib: PLDIBSection class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a></div>
<h1>PLDIBSection Class Reference</h1><code>#include <<a class="el" href="pldibsect_8h-source.html">pldibsect.h</a>></code>
<p>
<p>Inheritance diagram for PLDIBSection:
<p><center><img src="classPLDIBSection.png" usemap="#PLDIBSection_map" border="0" alt=""></center>
<map name="PLDIBSection_map">
<area href="classPLWinBmp.html" alt="PLWinBmp" shape="rect" coords="0,224,89,248">
<area href="classPLBmp.html" alt="PLBmp" shape="rect" coords="0,168,89,192">
<area href="classPLBmpBase.html" alt="PLBmpBase" shape="rect" coords="0,112,89,136">
<area href="classPLBmpInfo.html" alt="PLBmpInfo" shape="rect" coords="0,56,89,80">
</map>
<a href="classPLDIBSection-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a0" doxytag="PLDIBSection::PLDIBSection"></a>
</td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a0">PLDIBSection</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an empty bitmap. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a1" doxytag="PLDIBSection::~PLDIBSection"></a>
virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a1">~PLDIBSection</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroys the bitmap. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a2" doxytag="PLDIBSection::PLDIBSection"></a>
</td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a2">PLDIBSection</a> (const <a class="el" href="classPLBmpBase.html">PLBmpBase</a> &Orig)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a3" doxytag="PLDIBSection::PLDIBSection"></a>
</td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a3">PLDIBSection</a> (const <a class="el" href="classPLDIBSection.html">PLDIBSection</a> &Orig)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a4" doxytag="PLDIBSection::operator="></a>
<a class="el" href="classPLDIBSection.html">PLDIBSection</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a4">operator=</a> (<a class="el" href="classPLBmpBase.html">PLBmpBase</a> const &Orig)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a5" doxytag="PLDIBSection::operator="></a>
<a class="el" href="classPLDIBSection.html">PLDIBSection</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a5">operator=</a> (<a class="el" href="classPLDIBSection.html">PLDIBSection</a> const &Orig)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a6">Detach</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a7">Draw</a> (HDC hDC, int x, int y, DWORD rop=SRCCOPY)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a8" doxytag="PLDIBSection::DrawExtract"></a>
virtual BOOL </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a8">DrawExtract</a> (HDC hDC, POINT pntDest, RECT rcSrc)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a portion of the bitmap on the given device context. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>HBITMAP </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#a9">GetHandle</a> ()</td></tr>
<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#b0">internalCreate</a> (LONG Width, LONG Height, const PLPixelFormat &pf)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#b1">internalCreate</a> (BITMAPINFOHEADER *pBMI)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b2" doxytag="PLDIBSection::freeMembers"></a>
virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#b2">freeMembers</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes memory allocated by member variables. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual HANDLE </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#b3">createCopyHandle</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b4" doxytag="PLDIBSection::initPointers"></a>
virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLDIBSection.html#b4">initPointers</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set color table pointer & pointer to bits based on m_pBMI. <br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This is a windows DIBSection wrapped in a PLBmp-derived class. It can be used just like a <a class="el" href="classPLWinBmp.html">PLWinBmp</a> can be used. In addition, PLDIBSection can give access to the bitmap as a GDI bitmap handle. This bitmap handle can be selected into a device context. All normal GDI drawing functions can be used to write on the bitmap in this way.<p>
Internally, PLDIBSections are stored with header and bits in two separate buffers.
<p>
<p>
Definition at line <a class="el" href="pldibsect_8h-source.html#l00027">27</a> of file <a class="el" href="pldibsect_8h-source.html">pldibsect.h</a>.<hr><h2>Member Function Documentation</h2>
<a name="b3" doxytag="PLDIBSection::createCopyHandle"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> virtual HANDLE PLDIBSection::createCopyHandle </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [protected, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Creates a copy of the current bitmap in a global memory block and returns a handle to this block.
<p>
Reimplemented from <a class="el" href="classPLWinBmp.html">PLWinBmp</a>. </td>
</tr>
</table>
<a name="a6" doxytag="PLDIBSection::Detach"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> virtual void PLDIBSection::Detach </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Calling this function causes the windows DIBSection to be detached from the PLDIBSection object. The bitmap data are not deleted in this function. This means that the bitmap handle and the bitmap memory (bits and BMI) must be deleted by some other object. The PLDIBSection object is in the same state as after a constructor call after this function is called. </td>
</tr>
</table>
<a name="a7" doxytag="PLDIBSection::Draw"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> virtual void PLDIBSection::Draw </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">HDC </td>
<td class="mdname" nowrap> <em>hDC</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>x</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>y</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>DWORD </td>
<td class="mdname" nowrap> <em>rop</em> = SRCCOPY</td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Draws the bitmap on the given device context using BitBlt.
<p>
Reimplemented from <a class="el" href="classPLWinBmp.html#a14">PLWinBmp</a>. </td>
</tr>
</table>
<a name="a9" doxytag="PLDIBSection::GetHandle"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> HBITMAP PLDIBSection::GetHandle </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns a GDI handle to the bitmap. This handle can be selected into a DC and used in normal GDI operations. Under Windows NT, GDI operations can be queued. This means that a program running under NT must call GdiFlush() before the DIBSection can be used again after <a class="el" href="classPLDIBSection.html#a9">GetHandle()</a> has been called. See the documentation for GdiFlush() for details. </td>
</tr>
</table>
<a name="b1" doxytag="PLDIBSection::internalCreate"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> virtual void PLDIBSection::internalCreate </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">BITMAPINFOHEADER * </td>
<td class="mdname1" valign="top" nowrap> <em>pBMI</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [protected, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Creates a <a class="el" href="classPLWinBmp.html">PLWinBmp</a> from an existing bitmap pointer. Assumes that no memory is allocated before the call.
<p>
Reimplemented from <a class="el" href="classPLWinBmp.html#b1">PLWinBmp</a>. </td>
</tr>
</table>
<a name="b0" doxytag="PLDIBSection::internalCreate"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> virtual void PLDIBSection::internalCreate </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">LONG </td>
<td class="mdname" nowrap> <em>Width</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>LONG </td>
<td class="mdname" nowrap> <em>Height</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const PLPixelFormat & </td>
<td class="mdname" nowrap> <em>pf</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [protected, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Create a new empty DIB. Bits are uninitialized. Assumes that no memory is allocated before the call.
<p>
Reimplemented from <a class="el" href="classPLWinBmp.html#b0">PLWinBmp</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pldibsect_8h-source.html">pldibsect.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:41 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.2 </small></address>
</body>
</html>
|