File: classPLWinBmp.html

package info (click to toggle)
paintlib 2.6.2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,900 kB
  • ctags: 3,875
  • sloc: cpp: 25,209; sh: 10,600; ansic: 1,891; makefile: 119
file content (559 lines) | stat: -rw-r--r-- 25,748 bytes parent folder | download | duplicates (2)
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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
<!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: PLWinBmp 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&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a></div>
<h1>PLWinBmp Class Reference</h1><code>#include &lt;<a class="el" href="plwinbmp_8h-source.html">plwinbmp.h</a>&gt;</code>
<p>
<p>Inheritance diagram for PLWinBmp:
<p><center><img src="classPLWinBmp.png" usemap="#PLWinBmp_map" border="0" alt=""></center>
<map name="PLWinBmp_map">
<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">
<area href="classPLDIBSection.html" alt="PLDIBSection" shape="rect" coords="0,280,89,304">
</map>
<a href="classPLWinBmp-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="a1" doxytag="PLWinBmp::PLWinBmp"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a1">PLWinBmp</a> (const <a class="el" href="classPLWinBmp.html">PLWinBmp</a> &amp;Orig)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a2" doxytag="PLWinBmp::PLWinBmp"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a2">PLWinBmp</a> (const <a class="el" href="classPLBmpBase.html">PLBmpBase</a> &amp;Orig)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a3" doxytag="PLWinBmp::~PLWinBmp"></a>
virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a3">~PLWinBmp</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destroys the bitmap. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a4" doxytag="PLWinBmp::operator="></a>
<a class="el" href="classPLWinBmp.html">PLWinBmp</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a4">operator=</a> (<a class="el" href="classPLBmpBase.html">PLBmpBase</a> const &amp;Orig)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a5" doxytag="PLWinBmp::operator="></a>
<a class="el" href="classPLWinBmp.html">PLWinBmp</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a5">operator=</a> (<a class="el" href="classPLWinBmp.html">PLWinBmp</a> const &amp;Orig)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a6" doxytag="PLWinBmp::AlphaBlt"></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><b>AlphaBlt</b> (<a class="el" href="classPLWinBmp.html">PLWinBmp</a> *pSrPLBmp, int x, int y)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a7" doxytag="PLWinBmp::GetMemUsed"></a>
virtual long&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a7">GetMemUsed</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the amount of memory used by the object. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a8" doxytag="PLWinBmp::GetBytesPerLine"></a>
virtual long&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a8">GetBytesPerLine</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns number of bytes used per line. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a9">CreateRes</a> (HINSTANCE lh_ResInst, int ID)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a10" doxytag="PLWinBmp::CreateFromHBitmap"></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a10">CreateFromHBitmap</a> (HBITMAP hBitMap)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Takes a HBITMAP and converts it to a PLWinBmp. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a11">CreateFromHDIBBitmap</a> (BITMAPINFOHEADER *pBIH, HPALETTE hPal=NULL)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a12" doxytag="PLWinBmp::GetSize"></a>
SIZE&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a12">GetSize</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the size of the bitmap in pixels. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>BITMAPINFOHEADER *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a13">GetBMI</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a14">Draw</a> (HDC hDC, int x, int y, DWORD rop=SRCCOPY)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a15">StretchDraw</a> (HDC hDC, int x, int y, double Factor, DWORD rop=SRCCOPY)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a16">StretchDraw</a> (HDC hDC, int x, int y, int w, int h, DWORD rop=SRCCOPY)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a17" doxytag="PLWinBmp::DrawExtract"></a>
virtual BOOL&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a17">DrawExtract</a> (HDC hDC, POINT pntDest, RECT rcSrc)</td></tr>

<tr><td class="mdescLeft">&nbsp;</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><a name="a18" doxytag="PLWinBmp::ToClipboard"></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a18">ToClipboard</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Puts a copy of the bitmap in the clipboard. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a19">FromClipboard</a> (UINT uFormat=CF_BITMAP)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>BYTE *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a20">GetBits</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a21" doxytag="PLWinBmp::CopyPalette"></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a21">CopyPalette</a> (<a class="el" href="classPLWinBmp.html">PLWinBmp</a> *pSrPLBmp)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copies the palette over from pSrPLBmp. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a22" doxytag="PLWinBmp::TracePalette"></a>
void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#a22">TracePalette</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Traces the values in the palette via <a class="el" href="pldebug_8h.html#a1">PLTRACE()</a>;. <br><br></td></tr>
<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="e0" doxytag="PLWinBmp::GetMemNeeded"></a>
long&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#e0">GetMemNeeded</a> (LONG width, LONG height, WORD BitsPerPixel)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns memory needed by a bitmap with the specified attributes. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="e1" doxytag="PLWinBmp::GetBitsMemNeeded"></a>
long&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#e1">GetBitsMemNeeded</a> (LONG width, LONG height, WORD BitsPerPixel)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns memory needed by bitmap bits. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="e2" doxytag="PLWinBmp::GetLineMemNeeded"></a>
int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#e2">GetLineMemNeeded</a> (LONG width, WORD BitsPerPixel)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns memory needed by one line. <br><br></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&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#b0">internalCreate</a> (LONG Width, LONG Height, const PLPixelFormat &amp;pf)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#b1">internalCreate</a> (BITMAPINFOHEADER *pBMI)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b2" doxytag="PLWinBmp::freeMembers"></a>
virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#b2">freeMembers</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deletes memory allocated by member variables. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b3" doxytag="PLWinBmp::initLineArray"></a>
virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLWinBmp.html#b3">initLineArray</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initializes internal table of line addresses. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b4" doxytag="PLWinBmp::createCopyHandle"></a>
virtual HANDLE&nbsp;</td><td class="memItemRight" valign=bottom><b>createCopyHandle</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b5" doxytag="PLWinBmp::initPointers"></a>
virtual void&nbsp;</td><td class="memItemRight" valign=bottom><b>initPointers</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b6" doxytag="PLWinBmp::pixelFormatFromBMI"></a>
const PLPixelFormat &amp;&nbsp;</td><td class="memItemRight" valign=bottom><b>pixelFormatFromBMI</b> (const BITMAPINFOHEADER *pBMI) const</td></tr>

<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="p0" doxytag="PLWinBmp::m_pBMI"></a>
BITMAPINFOHEADER *&nbsp;</td><td class="memItemRight" valign=bottom><b>m_pBMI</b></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a name="p1" doxytag="PLWinBmp::m_pBits"></a>
BYTE *&nbsp;</td><td class="memItemRight" valign=bottom><b>m_pBits</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This is the windows version of <a class="el" href="classPLBmp.html">PLBmp</a>. The internal storage format is a windows DIB. It supports all color depths allowed by windows: 1, 8, 16, 24, and 32 bpp.<p>
The subset of the windows DIB format supported is as follows: The DIB is stored so that header, palette, and bits are in one buffer. The bottom line is stored first (biHeight must be &gt; 0) and the data is uncompressed (BI_RGB). Color tables for 16, 24, and 32 bpp are not supported. biClrUsed is always 0. The palette mode is DIB_RGB_COLORS. DIB_PAL_COLORS is not supported.<p>
Note that almost all real-life DIBs conform to this subset anyway, so there shouldn't be any problems.<p>
<em>In the current version, some functions (notably CreateCopy) only support 1, 8 and 32 bpp. Sorry!</em> 
<p>

<p>
Definition at line <a class="el" href="plwinbmp_8h-source.html#l00040">40</a> of file <a class="el" href="plwinbmp_8h-source.html">plwinbmp.h</a>.<hr><h2>Member Function Documentation</h2>
<a name="a11" doxytag="PLWinBmp::CreateFromHDIBBitmap"></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"> void PLWinBmp::CreateFromHDIBBitmap </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">BITMAPINFOHEADER *&nbsp;</td>
          <td class="mdname" nowrap> <em>pBIH</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>HPALETTE&nbsp;</td>
          <td class="mdname" nowrap> <em>hPal</em> = NULL</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Takes an existing device-independent bitmap and converts it to a PLWinBmp.     </td>
  </tr>
</table>
<a name="a9" doxytag="PLWinBmp::CreateRes"></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 PLWinBmp::CreateRes </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">HINSTANCE&nbsp;</td>
          <td class="mdname" nowrap> <em>lh_ResInst</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>ID</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Loads a bitmap from a windows resource (.rc or .res linked to the exe). Fails if the bitmap is compressed.     </td>
  </tr>
</table>
<a name="a14" doxytag="PLWinBmp::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 PLWinBmp::Draw </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">HDC&nbsp;</td>
          <td class="mdname" nowrap> <em>hDC</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>DWORD&nbsp;</td>
          <td class="mdname" nowrap> <em>rop</em> = SRCCOPY</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draws the bitmap on the given device context using StretchDIBits. 
<p>
Reimplemented in <a class="el" href="classPLDIBSection.html#a7">PLDIBSection</a>.    </td>
  </tr>
</table>
<a name="a19" doxytag="PLWinBmp::FromClipboard"></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"> bool PLWinBmp::FromClipboard </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">UINT&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>uFormat</em> = CF_BITMAP          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Reads the clipboard into the bitmap. uFormat can be either CF_BITMAP or CF_DIB.     </td>
  </tr>
</table>
<a name="a20" doxytag="PLWinBmp::GetBits"></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"> BYTE* PLWinBmp::GetBits </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets a pointer to the bitmap bits. (Usually, using <a class="el" href="classPLBmpBase.html#a15">GetLineArray()</a> is much easier!)     </td>
  </tr>
</table>
<a name="a13" doxytag="PLWinBmp::GetBMI"></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"> BITMAPINFOHEADER* PLWinBmp::GetBMI </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Access the windows bitmap structure. Using this structure, all standard DIB manipulations can be performed.     </td>
  </tr>
</table>
<a name="b1" doxytag="PLWinBmp::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 PLWinBmp::internalCreate </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">BITMAPINFOHEADER *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pBMI</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [protected, virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Creates a PLWinBmp from an existing bitmap pointer. Assumes that no memory is allocated before the call. 
<p>
Reimplemented in <a class="el" href="classPLDIBSection.html#b1">PLDIBSection</a>.    </td>
  </tr>
</table>
<a name="b0" doxytag="PLWinBmp::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 PLWinBmp::internalCreate </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">LONG&nbsp;</td>
          <td class="mdname" nowrap> <em>Width</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>LONG&nbsp;</td>
          <td class="mdname" nowrap> <em>Height</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const PLPixelFormat &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>pf</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</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>
      &nbsp;
    </td>
    <td>

<p>
Create a new empty DIB. Bits are uninitialized. Assumes that no memory is allocated before the call. 
<p>
Reimplemented in <a class="el" href="classPLDIBSection.html#b0">PLDIBSection</a>.    </td>
  </tr>
</table>
<a name="a16" doxytag="PLWinBmp::StretchDraw"></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 PLWinBmp::StretchDraw </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">HDC&nbsp;</td>
          <td class="mdname" nowrap> <em>hDC</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>w</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>h</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>DWORD&nbsp;</td>
          <td class="mdname" nowrap> <em>rop</em> = SRCCOPY</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draws the bitmap on the given device context using StretchDIBits. Scales the bitmap so w is the width and h the height.     </td>
  </tr>
</table>
<a name="a15" doxytag="PLWinBmp::StretchDraw"></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 PLWinBmp::StretchDraw </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">HDC&nbsp;</td>
          <td class="mdname" nowrap> <em>hDC</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>double&nbsp;</td>
          <td class="mdname" nowrap> <em>Factor</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>DWORD&nbsp;</td>
          <td class="mdname" nowrap> <em>rop</em> = SRCCOPY</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Draws the bitmap on the given device context using StretchDIBits. Scales the bitmap by Factor.     </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="plwinbmp_8h-source.html">plwinbmp.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:42 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>