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 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649
|
<!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: PLBmpBase 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>PLBmpBase Class Reference</h1><code>#include <<a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>></code>
<p>
<p>Inheritance diagram for PLBmpBase:
<p><center><img src="classPLBmpBase.png" usemap="#PLBmpBase_map" border="0" alt=""></center>
<map name="PLBmpBase_map">
<area href="classPLBmpInfo.html" alt="PLBmpInfo" shape="rect" coords="166,56,267,80">
<area href="classPLBmp.html" alt="PLBmp" shape="rect" coords="111,168,212,192">
<area href="classPLSubBmp.html" alt="PLSubBmp" shape="rect" coords="222,168,323,192">
<area href="classPLAnyBmp.html" alt="PLAnyBmp" shape="rect" coords="0,224,101,248">
<area href="classPLDirectFBBmp.html" alt="PLDirectFBBmp" shape="rect" coords="111,224,212,248">
<area href="classPLWinBmp.html" alt="PLWinBmp" shape="rect" coords="222,224,323,248">
<area href="classPLDIBSection.html" alt="PLDIBSection" shape="rect" coords="222,280,323,304">
</map>
<a href="classPLBmpBase-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="PLBmpBase::PLBmpBase"></a>
</td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a0">PLBmpBase</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Empty constructor. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a1" doxytag="PLBmpBase::~PLBmpBase"></a>
virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a1">~PLBmpBase</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Empty destructor. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool const </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a2">operator==</a> (<a class="el" href="classPLBmpBase.html">PLBmpBase</a> const &Other)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a3">CopyPixels</a> (const <a class="el" href="classPLBmpBase.html">PLBmpBase</a> &SrcBmp)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a4">SetGrayPalette</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a5" doxytag="PLBmpBase::SetPalette"></a>
void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a5">SetPalette</a> (<a class="el" href="classPLPixel32.html">PLPixel32</a> *pPal)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the color table to pPal. The contents of pPal are copied. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a6">SetPaletteEntry</a> (PLBYTE Entry, PLBYTE r, PLBYTE g, PLBYTE b, PLBYTE a)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a7">SetPaletteEntry</a> (PLBYTE Entry, <a class="el" href="classPLPixel32.html">PLPixel32</a> Value)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a8">SetHasAlpha</a> (bool b)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a9">SetAlphaChannel</a> (<a class="el" href="classPLBmpBase.html">PLBmpBase</a> *pAlphaBmp)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a10" doxytag="PLBmpBase::SetPixel"></a>
void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a10">SetPixel</a> (int x, int y, <a class="el" href="classPLPixel32.html">PLPixel32</a> pixel)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Slow but simple function to set a single pixel. 32 bpp only. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a11" doxytag="PLBmpBase::GetPixel"></a>
<a class="el" href="classPLPixel32.html">PLPixel32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a11">GetPixel</a> (int x, int y) const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Slow but simple function to get a single pixel. 32 bpp only. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>PLBYTE </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a12">FindNearestColor</a> (<a class="el" href="classPLPixel32.html">PLPixel32</a> cr)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a13">GetNumColors</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classPLPixel32.html">PLPixel32</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a14">GetPalette</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>PLBYTE ** </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a15">GetLineArray</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classPLPixel32.html">PLPixel32</a> ** </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a16">GetLineArray32</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classPLPixel24.html">PLPixel24</a> ** </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a17">GetLineArray24</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classPLPixel16.html">PLPixel16</a> ** </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a18">GetLineArray16</a> () const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a19">AlmostEqual</a> (const <a class="el" href="classPLBmpBase.html">PLBmpBase</a> &Bmp, int epsilon) const</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a20" doxytag="PLBmpBase::SetResolution"></a>
void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a20">SetResolution</a> (const <a class="el" href="classPLPoint.html">PLPoint</a> &Resolution)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the bitmap resolution in pixels per inch. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#a21">SetQuantizationMode</a> (int DitherType, int DitherPaletteType)</td></tr>
<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b0" doxytag="PLBmpBase::initLocals"></a>
virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classPLBmpBase.html#b0">initLocals</a> (PLLONG Width, PLLONG Height, const PLPixelFormat &pf)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Can be called from internalCreate() to initialize object state. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b1" doxytag="PLBmpBase::create8BPPCopy"></a>
void </td><td class="memItemRight" valign=bottom><b>create8BPPCopy</b> (const <a class="el" href="classPLBmpBase.html">PLBmpBase</a> &rSrcBmp)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="b2" doxytag="PLBmpBase::create1BPPCopy"></a>
void </td><td class="memItemRight" valign=bottom><b>create1BPPCopy</b> (const <a class="el" href="classPLBmpBase.html">PLBmpBase</a> &rSrcBmp)</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="PLBmpBase::m_pClrTab"></a>
<a class="el" href="classPLPixel32.html">PLPixel32</a> * </td><td class="memItemRight" valign=bottom><b>m_pClrTab</b></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="p1" doxytag="PLBmpBase::m_pLineArray"></a>
PLBYTE ** </td><td class="memItemRight" valign=bottom><b>m_pLineArray</b></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="p2" doxytag="PLBmpBase::m_DitherType"></a>
int </td><td class="memItemRight" valign=bottom><b>m_DitherType</b></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="p3" doxytag="PLBmpBase::m_DitherPaletteType"></a>
int </td><td class="memItemRight" valign=bottom><b>m_DitherPaletteType</b></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Base class for <a class="el" href="classPLBmp.html">PLBmp</a> and <a class="el" href="classPLSubBmp.html">PLSubBmp</a>. PLBmpBase supports all operations on a bitmap that <a class="el" href="classPLBmp.html">PLBmp</a> supports except those that depend on being able to change the size or bpp.
<p>
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00026">26</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>.<hr><h2>Member Function Documentation</h2>
<a name="a19" doxytag="PLBmpBase::AlmostEqual"></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 PLBmpBase::AlmostEqual </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classPLBmpBase.html">PLBmpBase</a> & </td>
<td class="mdname" nowrap> <em>Bmp</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>epsilon</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns true if Bmp and this are almost equal. The comparison is done by comparing the pixels in the bitmaps component-wise. If all components are closer than epsilon, the bitmaps are considered almost equal. </td>
</tr>
</table>
<a name="a3" doxytag="PLBmpBase::CopyPixels"></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 PLBmpBase::CopyPixels </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classPLBmpBase.html">PLBmpBase</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>SrcBmp</em> </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>
BitBlts SrcBmp on the current bitmap. Color depth conversion is performed as nessesary. </td>
</tr>
</table>
<a name="a12" doxytag="PLBmpBase::FindNearestColor"></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"> PLBYTE PLBmpBase::FindNearestColor </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classPLPixel32.html">PLPixel32</a> </td>
<td class="mdname1" valign="top" nowrap> <em>cr</em> </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>
Find the nearest color to cr in the palette used by this bitmap Only works for 8 bpp bitmaps. </td>
</tr>
</table>
<a name="a15" doxytag="PLBmpBase::GetLineArray"></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"> PLBYTE ** PLBmpBase::GetLineArray </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns pointer to an array containing the starting addresses of the bitmap lines. This array should be used whenever the bitmap bits need to be manipulated directly.
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00257">257</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>.
<p>
Referenced by <a class="el" href="plfilterfillrect_8h-source.html#l00052">PLFilterFillRect< PixelC >::ApplyInPlace()</a>, and <a class="el" href="plbmpbase_8h-source.html#l00228">GetPixel()</a>. </td>
</tr>
</table>
<a name="a18" doxytag="PLBmpBase::GetLineArray16"></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"> <a class="el" href="classPLPixel16.html">PLPixel16</a> ** PLBmpBase::GetLineArray16 </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns pointer to an array containing the starting addresses of the bitmap lines. This array should be used whenever the bitmap bits need to be manipulated directly.
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00280">280</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>. </td>
</tr>
</table>
<a name="a17" doxytag="PLBmpBase::GetLineArray24"></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"> <a class="el" href="classPLPixel24.html">PLPixel24</a> ** PLBmpBase::GetLineArray24 </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns pointer to an array containing the starting addresses of the bitmap lines. This array should be used whenever the bitmap bits need to be manipulated directly.
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00272">272</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>. </td>
</tr>
</table>
<a name="a16" doxytag="PLBmpBase::GetLineArray32"></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"> <a class="el" href="classPLPixel32.html">PLPixel32</a> ** PLBmpBase::GetLineArray32 </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns pointer to an array containing the starting addresses of the bitmap lines. This array should be used whenever the bitmap bits need to be manipulated directly.
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00264">264</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>.
<p>
Referenced by <a class="el" href="plbmpbase_8h-source.html#l00234">SetPixel()</a>. </td>
</tr>
</table>
<a name="a13" doxytag="PLBmpBase::GetNumColors"></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"> int PLBmpBase::GetNumColors </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> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns number of colors that can be stored by a bitmap with this color depth.
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00247">247</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>. </td>
</tr>
</table>
<a name="a14" doxytag="PLBmpBase::GetPalette"></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"> <a class="el" href="classPLPixel32.html">PLPixel32</a> * PLBmpBase::GetPalette </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Returns the address of the color table of the bitmap or NULL if no color table exists. The color table is stored as an array of consecutive <a class="el" href="classPLPixel32.html">PLPixel32</a> objects.
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00288">288</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>. </td>
</tr>
</table>
<a name="a2" doxytag="PLBmpBase::operator=="></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 const PLBmpBase::operator== </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classPLBmpBase.html">PLBmpBase</a> const & </td>
<td class="mdname1" valign="top" nowrap> <em>Other</em> </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>
Test for equality. This function actually tests every pixel, so it's not fast. It's meant mainly for use in asserts and such. </td>
</tr>
</table>
<a name="a9" doxytag="PLBmpBase::SetAlphaChannel"></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 PLBmpBase::SetAlphaChannel </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classPLBmpBase.html">PLBmpBase</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>pAlphaBmp</em> </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>
Replaces the alpha channel of the bitmap with a new one. This only works for bitmaps with 32 bpp. pAlphaBmp must point to an 8 bpp bitmap with the same dimensions as the object. The alpha channel information is physically copied into the bitmap. </td>
</tr>
</table>
<a name="a4" doxytag="PLBmpBase::SetGrayPalette"></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 PLBmpBase::SetGrayPalette </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>
Fills the color table with a grayscale palette. This function is only usable for bitmaps containing a color table. Index 0 contains black (0) and the last index contains white (255). The alpha channel is set to opaque (255) for every palette entry. </td>
</tr>
</table>
<a name="a8" doxytag="PLBmpBase::SetHasAlpha"></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 PLBmpBase::SetHasAlpha </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>b</em> </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>
Sets whether a bitmap stores an alpha channel. Works for 8 and 32 bpp bitmaps. In either case, if b is true and the bitmap did not have an alpha channel before the call, the complete alpha channel is set to opaque by the call. </td>
</tr>
</table>
<a name="a7" doxytag="PLBmpBase::SetPaletteEntry"></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 PLBmpBase::SetPaletteEntry </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">PLBYTE </td>
<td class="mdname" nowrap> <em>Entry</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classPLPixel32.html">PLPixel32</a> </td>
<td class="mdname" nowrap> <em>Value</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets one entry in the color table. The function may only be called if there is a color table stored with the bitmap. The color table entry is set to the red, green, blue, and alpha values specified.
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00220">220</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>. </td>
</tr>
</table>
<a name="a6" doxytag="PLBmpBase::SetPaletteEntry"></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 PLBmpBase::SetPaletteEntry </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">PLBYTE </td>
<td class="mdname" nowrap> <em>Entry</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>PLBYTE </td>
<td class="mdname" nowrap> <em>r</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>PLBYTE </td>
<td class="mdname" nowrap> <em>g</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>PLBYTE </td>
<td class="mdname" nowrap> <em>b</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>PLBYTE </td>
<td class="mdname" nowrap> <em>a</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets one entry in the color table. The function may only be called if there is a color table stored with the bitmap. The color table entry is set to the red, green, blue, and alpha values specified.
<p>
Definition at line <a class="el" href="plbmpbase_8h-source.html#l00209">209</a> of file <a class="el" href="plbmpbase_8h-source.html">plbmpbase.h</a>. </td>
</tr>
</table>
<a name="a21" doxytag="PLBmpBase::SetQuantizationMode"></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 PLBmpBase::SetQuantizationMode </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname" nowrap> <em>DitherType</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int </td>
<td class="mdname" nowrap> <em>DitherPaletteType</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Sets quality of conversion to 8 bpp by CreateCopy(). Valid parameters are defined in FilterQuantize.h. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="plbmpbase_8h-source.html">plbmpbase.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>
|