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 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>wxWidgets: wxBitmap Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="page_container">
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0" style="width: 100%;">
<tbody>
<tr>
<td id="projectlogo">
<a href="http://www.wxwidgets.org/" target="_new">
<img alt="wxWidgets" src="logo.png"/>
</a>
</td>
<td style="padding-left: 0.5em; text-align: right;">
<span id="projectnumber">Version: 3.0.2</span>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.8.2 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Categories</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classwx_bitmap-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">wxBitmap Class Reference<div class="ingroups"><a class="el" href="group__group__class__gdi.html">Graphics Device Interface (GDI)</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include <wx/bitmap.h></code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for wxBitmap:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classwx_bitmap__inherit__graph.png" border="0" usemap="#wx_bitmap_inherit__map" alt="Inheritance graph"/></div>
<map name="wx_bitmap_inherit__map" id="wx_bitmap_inherit__map">
<area shape="rect" id="node2" href="classwx_g_d_i_object.html" title="This class allows platforms to implement functionality to optimise GDI objects, such as wxPen..." alt="" coords="5,83,104,111"/><area shape="rect" id="node4" href="classwx_object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="17,6,92,34"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or colour with alpha channel support. </p>
<p>If you need direct access the bitmap data instead going through drawing to it using <a class="el" href="classwx_memory_d_c.html" title="A memory device context provides a means to draw graphics onto a bitmap.">wxMemoryDC</a> you need to use the <a class="el" href="classwx_pixel_data.html" title="A class template with ready to use implementations for getting direct and efficient access to wxBitma...">wxPixelData</a> class (either wxNativePixelData for RGB bitmaps or wxAlphaPixelData for bitmaps with an additionally alpha channel).</p>
<p>Note that many <a class="el" href="classwx_bitmap.html" title="This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or co...">wxBitmap</a> functions take a <em>type</em> parameter, which is a value of the <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5" title="Bitmap type flags.">wxBitmapType</a> enumeration. The validity of those values depends however on the platform where your program is running and from the wxWidgets configuration. If all possible wxWidgets settings are used:</p>
<ul>
<li>wxMSW supports BMP and ICO files, BMP and ICO resources;</li>
<li>wxGTK supports any file supported by gdk-pixbuf;</li>
<li>wxMac supports PICT resources;</li>
<li>wxX11 supports XPM files, XPM data, XBM data;</li>
</ul>
<p>In addition, <a class="el" href="classwx_bitmap.html" title="This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or co...">wxBitmap</a> can load and save all formats that <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> can; see <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> for more info. Of course, you must have loaded the <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> handlers (see <a class="el" href="group__group__funcmacro__appinitterm.html#ga27f6c78d5d13374a28022b7bd44c6823" title="Initializes all available image handlers.">wxInitAllImageHandlers()</a> and <a class="el" href="classwx_image.html#ab39fb3747dfb8c2d444eff9fe41fa205" title="Register an image handler.">wxImage::AddHandler</a>). Note that all available wxBitmapHandlers for a given wxWidgets port are automatically loaded at startup so you won't need to use <a class="el" href="classwx_bitmap.html#a6418825ad15574229188e0c5f97a4f3a" title="Adds a handler to the end of the static list of format handlers.">wxBitmap::AddHandler</a>.</p>
<p>More on the difference between <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> and <a class="el" href="classwx_bitmap.html" title="This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or co...">wxBitmap</a>: <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> is just a buffer of RGB bytes with an optional buffer for the alpha bytes. It is all generic, platform independent and image file format independent code. It includes generic code for scaling, resizing, clipping, and other manipulations of the image data. OTOH, <a class="el" href="classwx_bitmap.html" title="This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or co...">wxBitmap</a> is intended to be a wrapper of whatever is the native image format that is quickest/easiest to draw to a DC or to be the target of the drawing operations performed on a <a class="el" href="classwx_memory_d_c.html" title="A memory device context provides a means to draw graphics onto a bitmap.">wxMemoryDC</a>. By splitting the responsibilities between wxImage/wxBitmap like this then it's easier to use generic code shared by all platforms and image types for generic operations and platform specific code where performance or compatibility is needed.</p>
<h2></h2>
<div><span class="lib">Library:</span>  <span class="lib_text"><a class="el" href="page_libs.html#page_libs_wxcore">wxCore</a></span></div><div><span class="category">Category:</span>  <span class="category_text"><a class="el" href="group__group__class__gdi.html">Graphics Device Interface (GDI)</a></span></div><p><span class="stdobj">Predefined objects/pointers:</span> <a class="el" href="interface_2wx_2bitmap_8h.html#a2947690e84b8fdb2e37b79a4af8f8a21" title="An empty wxBitmap object.">wxNullBitmap</a></p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="overview_bitmap.html">Bitmaps and Icons</a>, <a class="el" href="overview_bitmap.html#overview_bitmap_supportedformats">Supported Bitmap File Formats</a>, <a class="el" href="classwx_d_c.html#a12bed94a15136b9080683f4151042a34" title="Copy from a source DC to this DC.">wxDC::Blit</a>, <a class="el" href="classwx_icon.html" title="An icon is a small rectangular bitmap usually used for denoting a minimized application.">wxIcon</a>, <a class="el" href="classwx_cursor.html" title="A cursor is a small bitmap usually used for denoting where the mouse pointer is, with a picture that ...">wxCursor</a>, <a class="el" href="classwx_memory_d_c.html" title="A memory device context provides a means to draw graphics onto a bitmap.">wxMemoryDC</a>, <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a>, <a class="el" href="classwx_pixel_data.html" title="A class template with ready to use implementations for getting direct and efficient access to wxBitma...">wxPixelData</a> </dd></dl>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5b4b1b408108b78cdbfd325b03c903b7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a5b4b1b408108b78cdbfd325b03c903b7">wxBitmap</a> ()</td></tr>
<tr class="memdesc:a5b4b1b408108b78cdbfd325b03c903b7"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a5b4b1b408108b78cdbfd325b03c903b7"></a><br/></td></tr>
<tr class="separator:a5b4b1b408108b78cdbfd325b03c903b7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abfaa21ec563a64ea913af918150db900"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#abfaa21ec563a64ea913af918150db900">wxBitmap</a> (const <a class="el" href="classwx_bitmap.html">wxBitmap</a> &bitmap)</td></tr>
<tr class="memdesc:abfaa21ec563a64ea913af918150db900"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor, uses <a class="el" href="overview_refcount.html">reference counting</a>. <a href="#abfaa21ec563a64ea913af918150db900"></a><br/></td></tr>
<tr class="separator:abfaa21ec563a64ea913af918150db900"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6ee4099d6c4c9532aff6e5c1de516f21"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a6ee4099d6c4c9532aff6e5c1de516f21">wxBitmap</a> (const char bits[], int width, int height, int depth=1)</td></tr>
<tr class="memdesc:a6ee4099d6c4c9532aff6e5c1de516f21"><td class="mdescLeft"> </td><td class="mdescRight">Creates a bitmap from the given array <em>bits</em>. <a href="#a6ee4099d6c4c9532aff6e5c1de516f21"></a><br/></td></tr>
<tr class="separator:a6ee4099d6c4c9532aff6e5c1de516f21"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3bb19e8d368d6565f52a9c1294d80d7a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a3bb19e8d368d6565f52a9c1294d80d7a">wxBitmap</a> (int width, int height, int depth=<a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a>)</td></tr>
<tr class="memdesc:a3bb19e8d368d6565f52a9c1294d80d7a"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new bitmap. <a href="#a3bb19e8d368d6565f52a9c1294d80d7a"></a><br/></td></tr>
<tr class="separator:a3bb19e8d368d6565f52a9c1294d80d7a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2a73d89860df03b474086a7db694527d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a2a73d89860df03b474086a7db694527d">wxBitmap</a> (const <a class="el" href="classwx_size.html">wxSize</a> &sz, int depth=<a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a>)</td></tr>
<tr class="memdesc:a2a73d89860df03b474086a7db694527d"><td class="mdescLeft"> </td><td class="mdescRight">This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. <a href="#a2a73d89860df03b474086a7db694527d"></a><br/></td></tr>
<tr class="separator:a2a73d89860df03b474086a7db694527d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b750963aa91e021dfa222138d1678ed"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a0b750963aa91e021dfa222138d1678ed">wxBitmap</a> (const char *const *bits)</td></tr>
<tr class="memdesc:a0b750963aa91e021dfa222138d1678ed"><td class="mdescLeft"> </td><td class="mdescRight">Creates a bitmap from XPM data. <a href="#a0b750963aa91e021dfa222138d1678ed"></a><br/></td></tr>
<tr class="separator:a0b750963aa91e021dfa222138d1678ed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af7c12dde97793393d6ef19e0dda39b1b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#af7c12dde97793393d6ef19e0dda39b1b">wxBitmap</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type=wxBITMAP_DEFAULT_TYPE)</td></tr>
<tr class="memdesc:af7c12dde97793393d6ef19e0dda39b1b"><td class="mdescLeft"> </td><td class="mdescRight">Loads a bitmap from a file or resource. <a href="#af7c12dde97793393d6ef19e0dda39b1b"></a><br/></td></tr>
<tr class="separator:af7c12dde97793393d6ef19e0dda39b1b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9855ffc55043187e4cff075aeefbaaf8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a9855ffc55043187e4cff075aeefbaaf8">wxBitmap</a> (const <a class="el" href="classwx_image.html">wxImage</a> &img, int depth=<a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a>)</td></tr>
<tr class="memdesc:a9855ffc55043187e4cff075aeefbaaf8"><td class="mdescLeft"> </td><td class="mdescRight">Creates this bitmap object from the given image. <a href="#a9855ffc55043187e4cff075aeefbaaf8"></a><br/></td></tr>
<tr class="separator:a9855ffc55043187e4cff075aeefbaaf8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6b5f4ed6a11ac208fe6ea45b4bdb5298"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a6b5f4ed6a11ac208fe6ea45b4bdb5298">~wxBitmap</a> ()</td></tr>
<tr class="memdesc:a6b5f4ed6a11ac208fe6ea45b4bdb5298"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a6b5f4ed6a11ac208fe6ea45b4bdb5298"></a><br/></td></tr>
<tr class="separator:a6b5f4ed6a11ac208fe6ea45b4bdb5298"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a063fed54a77f63d2cfa69d12f9035fe2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a063fed54a77f63d2cfa69d12f9035fe2">ConvertToImage</a> () const </td></tr>
<tr class="memdesc:a063fed54a77f63d2cfa69d12f9035fe2"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image from a platform-dependent bitmap. <a href="#a063fed54a77f63d2cfa69d12f9035fe2"></a><br/></td></tr>
<tr class="separator:a063fed54a77f63d2cfa69d12f9035fe2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afd23ea63dc5fb72cc806652ba4d6cf9b"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#afd23ea63dc5fb72cc806652ba4d6cf9b">CopyFromIcon</a> (const <a class="el" href="classwx_icon.html">wxIcon</a> &icon)</td></tr>
<tr class="memdesc:afd23ea63dc5fb72cc806652ba4d6cf9b"><td class="mdescLeft"> </td><td class="mdescRight">Creates the bitmap from an icon. <a href="#afd23ea63dc5fb72cc806652ba4d6cf9b"></a><br/></td></tr>
<tr class="separator:afd23ea63dc5fb72cc806652ba4d6cf9b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa793ed387091a03f30060dd6e876bea5"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#aa793ed387091a03f30060dd6e876bea5">Create</a> (int width, int height, int depth=<a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a>)</td></tr>
<tr class="memdesc:aa793ed387091a03f30060dd6e876bea5"><td class="mdescLeft"> </td><td class="mdescRight">Creates a fresh bitmap. <a href="#aa793ed387091a03f30060dd6e876bea5"></a><br/></td></tr>
<tr class="separator:aa793ed387091a03f30060dd6e876bea5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5b9cc5283dba021db3de367701497a73"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a5b9cc5283dba021db3de367701497a73">Create</a> (const <a class="el" href="classwx_size.html">wxSize</a> &sz, int depth=<a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a>)</td></tr>
<tr class="memdesc:a5b9cc5283dba021db3de367701497a73"><td class="mdescLeft"> </td><td class="mdescRight">This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. <a href="#a5b9cc5283dba021db3de367701497a73"></a><br/></td></tr>
<tr class="separator:a5b9cc5283dba021db3de367701497a73"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b11030807d240af9278e5a3ce36cff5"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a4b11030807d240af9278e5a3ce36cff5">GetDepth</a> () const </td></tr>
<tr class="memdesc:a4b11030807d240af9278e5a3ce36cff5"><td class="mdescLeft"> </td><td class="mdescRight">Gets the colour depth of the bitmap. <a href="#a4b11030807d240af9278e5a3ce36cff5"></a><br/></td></tr>
<tr class="separator:a4b11030807d240af9278e5a3ce36cff5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a43fa1cfa77a428259d68e6a237aaeba2"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a43fa1cfa77a428259d68e6a237aaeba2">GetHeight</a> () const </td></tr>
<tr class="memdesc:a43fa1cfa77a428259d68e6a237aaeba2"><td class="mdescLeft"> </td><td class="mdescRight">Gets the height of the bitmap in pixels. <a href="#a43fa1cfa77a428259d68e6a237aaeba2"></a><br/></td></tr>
<tr class="separator:a43fa1cfa77a428259d68e6a237aaeba2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2dc7d543479e959aa820a8f20dc8037"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classwx_mask.html">wxMask</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#ac2dc7d543479e959aa820a8f20dc8037">GetMask</a> () const </td></tr>
<tr class="memdesc:ac2dc7d543479e959aa820a8f20dc8037"><td class="mdescLeft"> </td><td class="mdescRight">Gets the associated mask (if any) which may have been loaded from a file or set for the bitmap. <a href="#ac2dc7d543479e959aa820a8f20dc8037"></a><br/></td></tr>
<tr class="separator:ac2dc7d543479e959aa820a8f20dc8037"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaa9cfa654deb84237cbcaf9757d2deaa"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classwx_palette.html">wxPalette</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#aaa9cfa654deb84237cbcaf9757d2deaa">GetPalette</a> () const </td></tr>
<tr class="memdesc:aaa9cfa654deb84237cbcaf9757d2deaa"><td class="mdescLeft"> </td><td class="mdescRight">Gets the associated palette (if any) which may have been loaded from a file or set for the bitmap. <a href="#aaa9cfa654deb84237cbcaf9757d2deaa"></a><br/></td></tr>
<tr class="separator:aaa9cfa654deb84237cbcaf9757d2deaa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8745c687705511f1432d9f36ad26f95b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classwx_bitmap.html">wxBitmap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a8745c687705511f1432d9f36ad26f95b">GetSubBitmap</a> (const <a class="el" href="classwx_rect.html">wxRect</a> &rect) const </td></tr>
<tr class="memdesc:a8745c687705511f1432d9f36ad26f95b"><td class="mdescLeft"> </td><td class="mdescRight">Returns a sub bitmap of the current one as long as the rect belongs entirely to the bitmap. <a href="#a8745c687705511f1432d9f36ad26f95b"></a><br/></td></tr>
<tr class="separator:a8745c687705511f1432d9f36ad26f95b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac1bba3f3bca9b16db5545d1b3f2df40a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_size.html">wxSize</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#ac1bba3f3bca9b16db5545d1b3f2df40a">GetSize</a> () const </td></tr>
<tr class="memdesc:ac1bba3f3bca9b16db5545d1b3f2df40a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the size of the bitmap in pixels. <a href="#ac1bba3f3bca9b16db5545d1b3f2df40a"></a><br/></td></tr>
<tr class="separator:ac1bba3f3bca9b16db5545d1b3f2df40a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af52987a85a128c685a6d7a54349bc22d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_bitmap.html">wxBitmap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#af52987a85a128c685a6d7a54349bc22d">ConvertToDisabled</a> (unsigned char brightness=255) const </td></tr>
<tr class="memdesc:af52987a85a128c685a6d7a54349bc22d"><td class="mdescLeft"> </td><td class="mdescRight">Returns disabled (dimmed) version of the bitmap. <a href="#af52987a85a128c685a6d7a54349bc22d"></a><br/></td></tr>
<tr class="separator:af52987a85a128c685a6d7a54349bc22d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a513b5dc67c3ffa7c9a6a5aacbc5ed0f2"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a513b5dc67c3ffa7c9a6a5aacbc5ed0f2">GetWidth</a> () const </td></tr>
<tr class="memdesc:a513b5dc67c3ffa7c9a6a5aacbc5ed0f2"><td class="mdescLeft"> </td><td class="mdescRight">Gets the width of the bitmap in pixels. <a href="#a513b5dc67c3ffa7c9a6a5aacbc5ed0f2"></a><br/></td></tr>
<tr class="separator:a513b5dc67c3ffa7c9a6a5aacbc5ed0f2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab825460a217d250db53df0c9ca293068"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#ab825460a217d250db53df0c9ca293068">IsOk</a> () const </td></tr>
<tr class="memdesc:ab825460a217d250db53df0c9ca293068"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if bitmap data is present. <a href="#ab825460a217d250db53df0c9ca293068"></a><br/></td></tr>
<tr class="separator:ab825460a217d250db53df0c9ca293068"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab4d271d200338e9274cebfee474fbd7f"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#ab4d271d200338e9274cebfee474fbd7f">LoadFile</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type=wxBITMAP_DEFAULT_TYPE)</td></tr>
<tr class="memdesc:ab4d271d200338e9274cebfee474fbd7f"><td class="mdescLeft"> </td><td class="mdescRight">Loads a bitmap from a file or resource. <a href="#ab4d271d200338e9274cebfee474fbd7f"></a><br/></td></tr>
<tr class="separator:ab4d271d200338e9274cebfee474fbd7f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a48617712dd0f5a6a51bb1897a49ae273"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a48617712dd0f5a6a51bb1897a49ae273">SaveFile</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type, const <a class="el" href="classwx_palette.html">wxPalette</a> *palette=NULL) const </td></tr>
<tr class="memdesc:a48617712dd0f5a6a51bb1897a49ae273"><td class="mdescLeft"> </td><td class="mdescRight">Saves a bitmap in the named file. <a href="#a48617712dd0f5a6a51bb1897a49ae273"></a><br/></td></tr>
<tr class="separator:a48617712dd0f5a6a51bb1897a49ae273"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2d3b023cf64f90fa1257eb874ed015e"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#ac2d3b023cf64f90fa1257eb874ed015e">SetDepth</a> (int depth)</td></tr>
<tr class="memdesc:ac2d3b023cf64f90fa1257eb874ed015e"><td class="mdescLeft"> </td><td class="mdescRight">Sets the depth member (does not affect the bitmap data). <a href="#ac2d3b023cf64f90fa1257eb874ed015e"></a><br/></td></tr>
<tr class="separator:ac2d3b023cf64f90fa1257eb874ed015e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0091921ee85f7444e846e6183ec64909"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a0091921ee85f7444e846e6183ec64909">SetHeight</a> (int height)</td></tr>
<tr class="memdesc:a0091921ee85f7444e846e6183ec64909"><td class="mdescLeft"> </td><td class="mdescRight">Sets the height member (does not affect the bitmap data). <a href="#a0091921ee85f7444e846e6183ec64909"></a><br/></td></tr>
<tr class="separator:a0091921ee85f7444e846e6183ec64909"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a93ca840fdf8cd761e7ad419a90626ac4"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a93ca840fdf8cd761e7ad419a90626ac4">SetMask</a> (<a class="el" href="classwx_mask.html">wxMask</a> *mask)</td></tr>
<tr class="memdesc:a93ca840fdf8cd761e7ad419a90626ac4"><td class="mdescLeft"> </td><td class="mdescRight">Sets the mask for this bitmap. <a href="#a93ca840fdf8cd761e7ad419a90626ac4"></a><br/></td></tr>
<tr class="separator:a93ca840fdf8cd761e7ad419a90626ac4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a57d5e5389c7603ecb3edf822bc5eaf9c"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a57d5e5389c7603ecb3edf822bc5eaf9c">SetPalette</a> (const <a class="el" href="classwx_palette.html">wxPalette</a> &palette)</td></tr>
<tr class="memdesc:a57d5e5389c7603ecb3edf822bc5eaf9c"><td class="mdescLeft"> </td><td class="mdescRight">Sets the associated palette. <a href="#a57d5e5389c7603ecb3edf822bc5eaf9c"></a><br/></td></tr>
<tr class="separator:a57d5e5389c7603ecb3edf822bc5eaf9c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a82c54a43db80f31c9ff70b0e18a1d972"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a82c54a43db80f31c9ff70b0e18a1d972">SetWidth</a> (int width)</td></tr>
<tr class="memdesc:a82c54a43db80f31c9ff70b0e18a1d972"><td class="mdescLeft"> </td><td class="mdescRight">Sets the width member (does not affect the bitmap data). <a href="#a82c54a43db80f31c9ff70b0e18a1d972"></a><br/></td></tr>
<tr class="separator:a82c54a43db80f31c9ff70b0e18a1d972"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classwx_g_d_i_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classwx_g_d_i_object')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classwx_g_d_i_object.html">wxGDIObject</a></td></tr>
<tr class="memitem:a20ac442e0d24cf6250d7bd45f0d968d5 inherit pub_methods_classwx_g_d_i_object"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_g_d_i_object.html#a20ac442e0d24cf6250d7bd45f0d968d5">wxGDIObject</a> ()</td></tr>
<tr class="memdesc:a20ac442e0d24cf6250d7bd45f0d968d5 inherit pub_methods_classwx_g_d_i_object"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a20ac442e0d24cf6250d7bd45f0d968d5"></a><br/></td></tr>
<tr class="separator:a20ac442e0d24cf6250d7bd45f0d968d5 inherit pub_methods_classwx_g_d_i_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classwx_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classwx_object')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classwx_object.html">wxObject</a></td></tr>
<tr class="memitem:acaa378363a28af421ab56ad7b46eadf0 inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#acaa378363a28af421ab56ad7b46eadf0">wxObject</a> ()</td></tr>
<tr class="memdesc:acaa378363a28af421ab56ad7b46eadf0 inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Default ctor; initializes to <span class="literal">NULL</span> the internal reference data. <a href="#acaa378363a28af421ab56ad7b46eadf0"></a><br/></td></tr>
<tr class="separator:acaa378363a28af421ab56ad7b46eadf0 inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4721b4dc9b7aff0f30904ba2ea3954cf inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a4721b4dc9b7aff0f30904ba2ea3954cf">wxObject</a> (const <a class="el" href="classwx_object.html">wxObject</a> &other)</td></tr>
<tr class="memdesc:a4721b4dc9b7aff0f30904ba2ea3954cf inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Copy ctor. <a href="#a4721b4dc9b7aff0f30904ba2ea3954cf"></a><br/></td></tr>
<tr class="separator:a4721b4dc9b7aff0f30904ba2ea3954cf inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2a51aa8bfbab47ca2f051bcf84b3f35b inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a2a51aa8bfbab47ca2f051bcf84b3f35b">~wxObject</a> ()</td></tr>
<tr class="memdesc:a2a51aa8bfbab47ca2f051bcf84b3f35b inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a2a51aa8bfbab47ca2f051bcf84b3f35b"></a><br/></td></tr>
<tr class="separator:a2a51aa8bfbab47ca2f051bcf84b3f35b inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab3a0c6f723cbaddb47be4e8dd98cc8e2 inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classwx_class_info.html">wxClassInfo</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#ab3a0c6f723cbaddb47be4e8dd98cc8e2">GetClassInfo</a> () const </td></tr>
<tr class="memdesc:ab3a0c6f723cbaddb47be4e8dd98cc8e2 inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">This virtual function is redefined for every class that requires run-time type information, when using the <a class="el" href="group__group__funcmacro__rtti.html#ga20465fc7e022e29a5dacfad46e152e75" title="Used inside a class declaration to declare that the class should be made known to the class hierarchy...">wxDECLARE_CLASS</a> macro (or similar). <a href="#ab3a0c6f723cbaddb47be4e8dd98cc8e2"></a><br/></td></tr>
<tr class="separator:ab3a0c6f723cbaddb47be4e8dd98cc8e2 inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aabdb4fc957226544a8408167844e4f42 inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_object_ref_data.html">wxObjectRefData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#aabdb4fc957226544a8408167844e4f42">GetRefData</a> () const </td></tr>
<tr class="memdesc:aabdb4fc957226544a8408167844e4f42 inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Returns the <a class="el" href="classwx_object.html#a9e31954530a0abd54982effc443ed2b8" title="Pointer to an object which is the object's reference-counted data.">wxObject::m_refData</a> pointer, i.e. the data referenced by this object. <a href="#aabdb4fc957226544a8408167844e4f42"></a><br/></td></tr>
<tr class="separator:aabdb4fc957226544a8408167844e4f42 inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af40d580385cf4f8112fae7713404b01e inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#af40d580385cf4f8112fae7713404b01e">IsKindOf</a> (const <a class="el" href="classwx_class_info.html">wxClassInfo</a> *info) const </td></tr>
<tr class="memdesc:af40d580385cf4f8112fae7713404b01e inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Determines whether this class is a subclass of (or the same class as) the given class. <a href="#af40d580385cf4f8112fae7713404b01e"></a><br/></td></tr>
<tr class="separator:af40d580385cf4f8112fae7713404b01e inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a80a1a3fda7b14396a9ddd3d7a46a88bd inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a80a1a3fda7b14396a9ddd3d7a46a88bd">IsSameAs</a> (const <a class="el" href="classwx_object.html">wxObject</a> &obj) const </td></tr>
<tr class="memdesc:a80a1a3fda7b14396a9ddd3d7a46a88bd inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if this object has the same data pointer as <em>obj</em>. <a href="#a80a1a3fda7b14396a9ddd3d7a46a88bd"></a><br/></td></tr>
<tr class="separator:a80a1a3fda7b14396a9ddd3d7a46a88bd inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2f6f1aa51fe9fc2b1415ca4211a90e9e inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a2f6f1aa51fe9fc2b1415ca4211a90e9e">Ref</a> (const <a class="el" href="classwx_object.html">wxObject</a> &clone)</td></tr>
<tr class="memdesc:a2f6f1aa51fe9fc2b1415ca4211a90e9e inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Makes this object refer to the data in <em>clone</em>. <a href="#a2f6f1aa51fe9fc2b1415ca4211a90e9e"></a><br/></td></tr>
<tr class="separator:a2f6f1aa51fe9fc2b1415ca4211a90e9e inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afab780710f2adc1bb33310e27590140b inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#afab780710f2adc1bb33310e27590140b">SetRefData</a> (<a class="el" href="classwx_object_ref_data.html">wxObjectRefData</a> *data)</td></tr>
<tr class="memdesc:afab780710f2adc1bb33310e27590140b inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Sets the <a class="el" href="classwx_object.html#a9e31954530a0abd54982effc443ed2b8" title="Pointer to an object which is the object's reference-counted data.">wxObject::m_refData</a> pointer. <a href="#afab780710f2adc1bb33310e27590140b"></a><br/></td></tr>
<tr class="separator:afab780710f2adc1bb33310e27590140b inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af51efc6b1ae632fc7f0cd7ebbce9fa36 inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#af51efc6b1ae632fc7f0cd7ebbce9fa36">UnRef</a> ()</td></tr>
<tr class="memdesc:af51efc6b1ae632fc7f0cd7ebbce9fa36 inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Decrements the reference count in the associated data, and if it is zero, deletes the data. <a href="#af51efc6b1ae632fc7f0cd7ebbce9fa36"></a><br/></td></tr>
<tr class="separator:af51efc6b1ae632fc7f0cd7ebbce9fa36 inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a74b40e42d19a4b9e9bec0b57d62a5725 inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a74b40e42d19a4b9e9bec0b57d62a5725">UnShare</a> ()</td></tr>
<tr class="memdesc:a74b40e42d19a4b9e9bec0b57d62a5725 inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">This is the same of <a class="el" href="classwx_object.html#a60204063f3cc3aa2fa1c7ff5bda9eb13" title="Ensure that this object's data is not shared with any other object.">AllocExclusive()</a> but this method is public. <a href="#a74b40e42d19a4b9e9bec0b57d62a5725"></a><br/></td></tr>
<tr class="separator:a74b40e42d19a4b9e9bec0b57d62a5725 inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a07b8f34f5afc5743195c5fed052f55d3 inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a07b8f34f5afc5743195c5fed052f55d3">operator delete</a> (void *buf)</td></tr>
<tr class="memdesc:a07b8f34f5afc5743195c5fed052f55d3 inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">The <em>delete</em> operator is defined for debugging versions of the library only, when the identifier <code><b>WXDEBUG</b></code> is defined. <a href="#a07b8f34f5afc5743195c5fed052f55d3"></a><br/></td></tr>
<tr class="separator:a07b8f34f5afc5743195c5fed052f55d3 inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96fa423a1dbc212c8227a5d83825971f inherit pub_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a96fa423a1dbc212c8227a5d83825971f">operator new</a> (size_t size, const <a class="el" href="classwx_string.html">wxString</a> &filename=NULL, int lineNum=0)</td></tr>
<tr class="memdesc:a96fa423a1dbc212c8227a5d83825971f inherit pub_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">The <em>new</em> operator is defined for debugging versions of the library only, when the identifier <code><b>WXDEBUG</b></code> is defined. <a href="#a96fa423a1dbc212c8227a5d83825971f"></a><br/></td></tr>
<tr class="separator:a96fa423a1dbc212c8227a5d83825971f inherit pub_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6418825ad15574229188e0c5f97a4f3a"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a6418825ad15574229188e0c5f97a4f3a">AddHandler</a> (<a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a> *handler)</td></tr>
<tr class="memdesc:a6418825ad15574229188e0c5f97a4f3a"><td class="mdescLeft"> </td><td class="mdescRight">Adds a handler to the end of the static list of format handlers. <a href="#a6418825ad15574229188e0c5f97a4f3a"></a><br/></td></tr>
<tr class="separator:a6418825ad15574229188e0c5f97a4f3a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a62381d78867e552f713ae712fd23bc81"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a62381d78867e552f713ae712fd23bc81">CleanUpHandlers</a> ()</td></tr>
<tr class="memdesc:a62381d78867e552f713ae712fd23bc81"><td class="mdescLeft"> </td><td class="mdescRight">Deletes all bitmap handlers. <a href="#a62381d78867e552f713ae712fd23bc81"></a><br/></td></tr>
<tr class="separator:a62381d78867e552f713ae712fd23bc81"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae67381581ac0ad8378adc23d01f593e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#aae67381581ac0ad8378adc23d01f593e">FindHandler</a> (const <a class="el" href="classwx_string.html">wxString</a> &name)</td></tr>
<tr class="memdesc:aae67381581ac0ad8378adc23d01f593e"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler with the given <em>name</em>. <a href="#aae67381581ac0ad8378adc23d01f593e"></a><br/></td></tr>
<tr class="separator:aae67381581ac0ad8378adc23d01f593e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4ba567f7704a26e9b2ce293203574dc3"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a4ba567f7704a26e9b2ce293203574dc3">FindHandler</a> (const <a class="el" href="classwx_string.html">wxString</a> &extension, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> bitmapType)</td></tr>
<tr class="memdesc:a4ba567f7704a26e9b2ce293203574dc3"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler associated with the given <em>extension</em> and <em>type</em>. <a href="#a4ba567f7704a26e9b2ce293203574dc3"></a><br/></td></tr>
<tr class="separator:a4ba567f7704a26e9b2ce293203574dc3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab8d543233b6b3c9f153c47911fcd1a1b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#ab8d543233b6b3c9f153c47911fcd1a1b">FindHandler</a> (<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> bitmapType)</td></tr>
<tr class="memdesc:ab8d543233b6b3c9f153c47911fcd1a1b"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler associated with the given bitmap type. <a href="#ab8d543233b6b3c9f153c47911fcd1a1b"></a><br/></td></tr>
<tr class="separator:ab8d543233b6b3c9f153c47911fcd1a1b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af5acce4a660c9bfe0bfe363e1b183e42"><td class="memItemLeft" align="right" valign="top">static wxList & </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#af5acce4a660c9bfe0bfe363e1b183e42">GetHandlers</a> ()</td></tr>
<tr class="memdesc:af5acce4a660c9bfe0bfe363e1b183e42"><td class="mdescLeft"> </td><td class="mdescRight">Returns the static list of bitmap format handlers. <a href="#af5acce4a660c9bfe0bfe363e1b183e42"></a><br/></td></tr>
<tr class="separator:af5acce4a660c9bfe0bfe363e1b183e42"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2626d4a4ddca5fa54756d7f942c96a1"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#ac2626d4a4ddca5fa54756d7f942c96a1">InitStandardHandlers</a> ()</td></tr>
<tr class="memdesc:ac2626d4a4ddca5fa54756d7f942c96a1"><td class="mdescLeft"> </td><td class="mdescRight">Adds the standard bitmap format handlers, which, depending on wxWidgets configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM. <a href="#ac2626d4a4ddca5fa54756d7f942c96a1"></a><br/></td></tr>
<tr class="separator:ac2626d4a4ddca5fa54756d7f942c96a1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a228a76708d605d22ed82c889f15859a4"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a228a76708d605d22ed82c889f15859a4">InsertHandler</a> (<a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a> *handler)</td></tr>
<tr class="memdesc:a228a76708d605d22ed82c889f15859a4"><td class="mdescLeft"> </td><td class="mdescRight">Adds a handler at the start of the static list of format handlers. <a href="#a228a76708d605d22ed82c889f15859a4"></a><br/></td></tr>
<tr class="separator:a228a76708d605d22ed82c889f15859a4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2048897970d5e845040fcfc0259e1be1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_bitmap.html">wxBitmap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a2048897970d5e845040fcfc0259e1be1">NewFromPNGData</a> (const void *data, size_t size)</td></tr>
<tr class="memdesc:a2048897970d5e845040fcfc0259e1be1"><td class="mdescLeft"> </td><td class="mdescRight">Loads a bitmap from the memory containing image data in PNG format. <a href="#a2048897970d5e845040fcfc0259e1be1"></a><br/></td></tr>
<tr class="separator:a2048897970d5e845040fcfc0259e1be1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0316baef61f8f9cc3ba05bd8e52f1670"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_bitmap.html#a0316baef61f8f9cc3ba05bd8e52f1670">RemoveHandler</a> (const <a class="el" href="classwx_string.html">wxString</a> &name)</td></tr>
<tr class="memdesc:a0316baef61f8f9cc3ba05bd8e52f1670"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler with the given name, and removes it. <a href="#a0316baef61f8f9cc3ba05bd8e52f1670"></a><br/></td></tr>
<tr class="separator:a0316baef61f8f9cc3ba05bd8e52f1670"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classwx_object"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classwx_object')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classwx_object.html">wxObject</a></td></tr>
<tr class="memitem:a60204063f3cc3aa2fa1c7ff5bda9eb13 inherit pro_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a60204063f3cc3aa2fa1c7ff5bda9eb13">AllocExclusive</a> ()</td></tr>
<tr class="memdesc:a60204063f3cc3aa2fa1c7ff5bda9eb13 inherit pro_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Ensure that this object's data is not shared with any other object. <a href="#a60204063f3cc3aa2fa1c7ff5bda9eb13"></a><br/></td></tr>
<tr class="separator:a60204063f3cc3aa2fa1c7ff5bda9eb13 inherit pro_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95c6a5e4e1e03ff23c7b9efe4cff0c1a inherit pro_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classwx_object_ref_data.html">wxObjectRefData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a95c6a5e4e1e03ff23c7b9efe4cff0c1a">CreateRefData</a> () const </td></tr>
<tr class="memdesc:a95c6a5e4e1e03ff23c7b9efe4cff0c1a inherit pro_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new instance of the wxObjectRefData-derived class specific to this object and returns it. <a href="#a95c6a5e4e1e03ff23c7b9efe4cff0c1a"></a><br/></td></tr>
<tr class="separator:a95c6a5e4e1e03ff23c7b9efe4cff0c1a inherit pro_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1d39f1d3650fe0982c9a1abe7f9fe7b7 inherit pro_methods_classwx_object"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classwx_object_ref_data.html">wxObjectRefData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a1d39f1d3650fe0982c9a1abe7f9fe7b7">CloneRefData</a> (const <a class="el" href="classwx_object_ref_data.html">wxObjectRefData</a> *data) const </td></tr>
<tr class="memdesc:a1d39f1d3650fe0982c9a1abe7f9fe7b7 inherit pro_methods_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new instance of the wxObjectRefData-derived class specific to this object and initializes it copying <em>data</em>. <a href="#a1d39f1d3650fe0982c9a1abe7f9fe7b7"></a><br/></td></tr>
<tr class="separator:a1d39f1d3650fe0982c9a1abe7f9fe7b7 inherit pro_methods_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_attribs_classwx_object"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classwx_object')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classwx_object.html">wxObject</a></td></tr>
<tr class="memitem:a9e31954530a0abd54982effc443ed2b8 inherit pro_attribs_classwx_object"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_object_ref_data.html">wxObjectRefData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_object.html#a9e31954530a0abd54982effc443ed2b8">m_refData</a></td></tr>
<tr class="memdesc:a9e31954530a0abd54982effc443ed2b8 inherit pro_attribs_classwx_object"><td class="mdescLeft"> </td><td class="mdescRight">Pointer to an object which is the object's reference-counted data. <a href="#a9e31954530a0abd54982effc443ed2b8"></a><br/></td></tr>
<tr class="separator:a9e31954530a0abd54982effc443ed2b8 inherit pro_attribs_classwx_object"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="a5b4b1b408108b78cdbfd325b03c903b7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxBitmap::wxBitmap </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Default constructor. </p>
<p>Constructs a bitmap object with no data; an assignment or another member function such as <a class="el" href="classwx_bitmap.html#aa793ed387091a03f30060dd6e876bea5" title="Creates a fresh bitmap.">Create()</a> or <a class="el" href="classwx_bitmap.html#ab4d271d200338e9274cebfee474fbd7f" title="Loads a bitmap from a file or resource.">LoadFile()</a> must be called subsequently. </p>
</div>
</div>
<a class="anchor" id="abfaa21ec563a64ea913af918150db900"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxBitmap::wxBitmap </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_bitmap.html">wxBitmap</a> & </td>
<td class="paramname"><em>bitmap</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy constructor, uses <a class="el" href="overview_refcount.html">reference counting</a>. </p>
<p>To make a real copy, you can use:</p>
<div class="fragment"><div class="line"><a class="code" href="classwx_bitmap.html" title="This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or co...">wxBitmap</a> newBitmap = oldBitmap.<a class="code" href="classwx_bitmap.html#a8745c687705511f1432d9f36ad26f95b" title="Returns a sub bitmap of the current one as long as the rect belongs entirely to the bitmap...">GetSubBitmap</a>(</div>
<div class="line"> <a class="code" href="classwx_rect.html" title="A class for manipulating rectangles.">wxRect</a>(0, 0, oldBitmap.GetWidth(), oldBitmap.GetHeight()));</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a6ee4099d6c4c9532aff6e5c1de516f21"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxBitmap::wxBitmap </td>
<td>(</td>
<td class="paramtype">const char </td>
<td class="paramname"><em>bits</em>[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>depth</em> = <code>1</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a bitmap from the given array <em>bits</em>. </p>
<p>You should only use this function for monochrome bitmaps (depth 1) in portable programs: in this case the bits parameter should contain an XBM image.</p>
<p>For other bit depths, the behaviour is platform dependent: under Windows, the data is passed without any changes to the underlying CreateBitmap() API. Under other platforms, only monochrome bitmaps may be created using this constructor and <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> should be used for creating colour bitmaps from static data.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bits</td><td>Specifies an array of pixel values. </td></tr>
<tr><td class="paramname">width</td><td>Specifies the width of the bitmap. </td></tr>
<tr><td class="paramname">height</td><td>Specifies the height of the bitmap. </td></tr>
<tr><td class="paramname">depth</td><td>Specifies the depth of the bitmap. If this is omitted, then a value of 1 (monochrome bitmap) is used.</td></tr>
</table>
</dd>
</dl>
<p><b>wxPerl Note:</b> In wxPerl use Wx::Bitmap->newFromBits(bits, width, height, depth). </p>
</div>
</div>
<a class="anchor" id="a3bb19e8d368d6565f52a9c1294d80d7a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxBitmap::wxBitmap </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>depth</em> = <code><a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new bitmap. </p>
<p>A depth of <a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06" title="In wxBitmap and wxBitmapHandler context this value means: "use the screen depth".">wxBITMAP_SCREEN_DEPTH</a> indicates the depth of the current screen or visual.</p>
<p>Some platforms only support 1 for monochrome and <a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06" title="In wxBitmap and wxBitmapHandler context this value means: "use the screen depth".">wxBITMAP_SCREEN_DEPTH</a> for the current colour setting.</p>
<p>A depth of 32 including an alpha channel is supported under MSW, Mac and GTK+. </p>
</div>
</div>
<a class="anchor" id="a2a73d89860df03b474086a7db694527d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxBitmap::wxBitmap </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_size.html">wxSize</a> & </td>
<td class="paramname"><em>sz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>depth</em> = <code><a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a class="anchor" id="a0b750963aa91e021dfa222138d1678ed"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxBitmap::wxBitmap </td>
<td>(</td>
<td class="paramtype">const char *const * </td>
<td class="paramname"><em>bits</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a bitmap from XPM data. </p>
<p><b>wxPerl Note:</b> In wxPerl use Wx::Bitmap->newFromXPM(data). </p>
</div>
</div>
<a class="anchor" id="af7c12dde97793393d6ef19e0dda39b1b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxBitmap::wxBitmap </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> </td>
<td class="paramname"><em>type</em> = <code>wxBITMAP_DEFAULT_TYPE</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Loads a bitmap from a file or resource. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>This can refer to a resource name or a filename under MS Windows and X. Its meaning is determined by the <em>type</em> parameter. </td></tr>
<tr><td class="paramname">type</td><td>May be one of the <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5" title="Bitmap type flags.">wxBitmapType</a> values and indicates which type of bitmap should be loaded. See the note in the class detailed description. Note that the wxBITMAP_DEFAULT_TYPE constant has different value under different wxWidgets ports. See the bitmap.h header for the value it takes for a specific port.</td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap.html#ab4d271d200338e9274cebfee474fbd7f" title="Loads a bitmap from a file or resource.">LoadFile()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a9855ffc55043187e4cff075aeefbaaf8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxBitmap::wxBitmap </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_image.html">wxImage</a> & </td>
<td class="paramname"><em>img</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>depth</em> = <code><a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates this bitmap object from the given image. </p>
<p>This has to be done to actually display an image as you cannot draw an image directly on a window.</p>
<p>The resulting bitmap will use the provided colour depth (or that of the current system if depth is <a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06" title="In wxBitmap and wxBitmapHandler context this value means: "use the screen depth".">wxBITMAP_SCREEN_DEPTH</a>) which entails that a colour reduction may take place.</p>
<p>On Windows, if there is a palette present (set with SetPalette), it will be used when creating the <a class="el" href="classwx_bitmap.html" title="This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or co...">wxBitmap</a> (most useful in 8-bit display mode). On other platforms, the palette is currently ignored.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">img</td><td>Platform-independent <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> object. </td></tr>
<tr><td class="paramname">depth</td><td>Specifies the depth of the bitmap. If this is omitted, the display depth of the screen is used. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a6b5f4ed6a11ac208fe6ea45b4bdb5298"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual wxBitmap::~wxBitmap </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>
<p>See <a class="el" href="overview_refcount.html#overview_refcount_destruct">Object Destruction</a> for more info.</p>
<p>If the application omits to delete the bitmap explicitly, the bitmap will be destroyed automatically by wxWidgets when the application exits.</p>
<dl class="section warning"><dt>Warning</dt><dd>Do not delete a bitmap that is selected into a memory device context. </dd></dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a6418825ad15574229188e0c5f97a4f3a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void wxBitmap::AddHandler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a> * </td>
<td class="paramname"><em>handler</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a handler to the end of the static list of format handlers. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handler</td><td>A new bitmap format handler object. There is usually only one instance of a given handler class in an application session.</td></tr>
</table>
</dd>
</dl>
<p>Note that unlike <a class="el" href="classwx_image.html#ab39fb3747dfb8c2d444eff9fe41fa205" title="Register an image handler.">wxImage::AddHandler</a>, there's no documented list of the wxBitmapHandlers available in wxWidgets. This is because they are platform-specific and most important, they are all automatically loaded at startup.</p>
<p>If you want to be sure that <a class="el" href="classwx_bitmap.html" title="This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or co...">wxBitmap</a> can load a certain type of image, you'd better use <a class="el" href="classwx_image.html#ab39fb3747dfb8c2d444eff9fe41fa205" title="Register an image handler.">wxImage::AddHandler</a>.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap_handler.html" title="This is the base class for implementing bitmap file loading/saving, and bitmap creation from data...">wxBitmapHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a62381d78867e552f713ae712fd23bc81"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void wxBitmap::CleanUpHandlers </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Deletes all bitmap handlers. </p>
<p>This function is called by wxWidgets on exit. </p>
</div>
</div>
<a class="anchor" id="af52987a85a128c685a6d7a54349bc22d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_bitmap.html">wxBitmap</a> wxBitmap::ConvertToDisabled </td>
<td>(</td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>brightness</em> = <code>255</code></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns disabled (dimmed) version of the bitmap. </p>
<p>This method is not available when <code>wxUSE_IMAGE == 0</code>.</p>
<dl class="section since"><dt>Since</dt><dd>2.9.0 </dd></dl>
</div>
</div>
<a class="anchor" id="a063fed54a77f63d2cfa69d12f9035fe2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classwx_image.html">wxImage</a> wxBitmap::ConvertToImage </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image from a platform-dependent bitmap. </p>
<p>This preserves mask information so that bitmaps and images can be converted back and forth without loss in that respect. </p>
</div>
</div>
<a class="anchor" id="afd23ea63dc5fb72cc806652ba4d6cf9b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxBitmap::CopyFromIcon </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_icon.html">wxIcon</a> & </td>
<td class="paramname"><em>icon</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates the bitmap from an icon. </p>
</div>
</div>
<a class="anchor" id="aa793ed387091a03f30060dd6e876bea5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxBitmap::Create </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>depth</em> = <code><a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a fresh bitmap. </p>
<p>If the final argument is omitted, the display depth of the screen is used.</p>
<dl class="section return"><dt>Returns</dt><dd><span class="literal">true</span> if the creation was successful. </dd></dl>
</div>
</div>
<a class="anchor" id="a5b9cc5283dba021db3de367701497a73"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxBitmap::Create </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_size.html">wxSize</a> & </td>
<td class="paramname"><em>sz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>depth</em> = <code><a class="el" href="interface_2wx_2bitmap_8h.html#a92f17e2abdf285ce14f0ef47997fdb06">wxBITMAP_SCREEN_DEPTH</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</div>
</div>
<a class="anchor" id="aae67381581ac0ad8378adc23d01f593e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a>* wxBitmap::FindHandler </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds the handler with the given <em>name</em>. </p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the handler if found, <span class="literal">NULL</span> otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="a4ba567f7704a26e9b2ce293203574dc3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a>* wxBitmap::FindHandler </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>extension</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> </td>
<td class="paramname"><em>bitmapType</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds the handler associated with the given <em>extension</em> and <em>type</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">extension</td><td>The file extension, such as "bmp" (without the dot). </td></tr>
<tr><td class="paramname">bitmapType</td><td>The bitmap type managed by the handler, see <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5" title="Bitmap type flags.">wxBitmapType</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the handler if found, <span class="literal">NULL</span> otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="ab8d543233b6b3c9f153c47911fcd1a1b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a>* wxBitmap::FindHandler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> </td>
<td class="paramname"><em>bitmapType</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds the handler associated with the given bitmap type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">bitmapType</td><td>The bitmap type managed by the handler, see <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5" title="Bitmap type flags.">wxBitmapType</a>.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the handler if found, <span class="literal">NULL</span> otherwise.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap_handler.html" title="This is the base class for implementing bitmap file loading/saving, and bitmap creation from data...">wxBitmapHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a4b11030807d240af9278e5a3ce36cff5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int wxBitmap::GetDepth </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the colour depth of the bitmap. </p>
<p>A value of 1 indicates a monochrome bitmap. </p>
</div>
</div>
<a class="anchor" id="af5acce4a660c9bfe0bfe363e1b183e42"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static wxList& wxBitmap::GetHandlers </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the static list of bitmap format handlers. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap_handler.html" title="This is the base class for implementing bitmap file loading/saving, and bitmap creation from data...">wxBitmapHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a43fa1cfa77a428259d68e6a237aaeba2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int wxBitmap::GetHeight </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the height of the bitmap in pixels. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap.html#a513b5dc67c3ffa7c9a6a5aacbc5ed0f2" title="Gets the width of the bitmap in pixels.">GetWidth()</a>, <a class="el" href="classwx_bitmap.html#ac1bba3f3bca9b16db5545d1b3f2df40a" title="Returns the size of the bitmap in pixels.">GetSize()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ac2dc7d543479e959aa820a8f20dc8037"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classwx_mask.html">wxMask</a>* wxBitmap::GetMask </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the associated mask (if any) which may have been loaded from a file or set for the bitmap. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap.html#a93ca840fdf8cd761e7ad419a90626ac4" title="Sets the mask for this bitmap.">SetMask()</a>, <a class="el" href="classwx_mask.html" title="This class encapsulates a monochrome mask bitmap, where the masked area is black and the unmasked are...">wxMask</a> </dd></dl>
</div>
</div>
<a class="anchor" id="aaa9cfa654deb84237cbcaf9757d2deaa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classwx_palette.html">wxPalette</a>* wxBitmap::GetPalette </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the associated palette (if any) which may have been loaded from a file or set for the bitmap. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_palette.html" title="A palette is a table that maps pixel values to RGB colours.">wxPalette</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ac1bba3f3bca9b16db5545d1b3f2df40a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_size.html">wxSize</a> wxBitmap::GetSize </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the size of the bitmap in pixels. </p>
<dl class="section since"><dt>Since</dt><dd>2.9.0</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap.html#a43fa1cfa77a428259d68e6a237aaeba2" title="Gets the height of the bitmap in pixels.">GetHeight()</a>, <a class="el" href="classwx_bitmap.html#a513b5dc67c3ffa7c9a6a5aacbc5ed0f2" title="Gets the width of the bitmap in pixels.">GetWidth()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a8745c687705511f1432d9f36ad26f95b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classwx_bitmap.html">wxBitmap</a> wxBitmap::GetSubBitmap </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_rect.html">wxRect</a> & </td>
<td class="paramname"><em>rect</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a sub bitmap of the current one as long as the rect belongs entirely to the bitmap. </p>
<p>This function preserves bit depth and mask information. </p>
</div>
</div>
<a class="anchor" id="a513b5dc67c3ffa7c9a6a5aacbc5ed0f2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual int wxBitmap::GetWidth </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the width of the bitmap in pixels. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap.html#a43fa1cfa77a428259d68e6a237aaeba2" title="Gets the height of the bitmap in pixels.">GetHeight()</a>, <a class="el" href="classwx_bitmap.html#ac1bba3f3bca9b16db5545d1b3f2df40a" title="Returns the size of the bitmap in pixels.">GetSize()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ac2626d4a4ddca5fa54756d7f942c96a1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void wxBitmap::InitStandardHandlers </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds the standard bitmap format handlers, which, depending on wxWidgets configuration, can be handlers for Windows bitmap, Windows bitmap resource, and XPM. </p>
<p>This function is called by wxWidgets on startup.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap_handler.html" title="This is the base class for implementing bitmap file loading/saving, and bitmap creation from data...">wxBitmapHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a228a76708d605d22ed82c889f15859a4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void wxBitmap::InsertHandler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_bitmap_handler.html">wxBitmapHandler</a> * </td>
<td class="paramname"><em>handler</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a handler at the start of the static list of format handlers. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handler</td><td>A new bitmap format handler object. There is usually only one instance of a given handler class in an application session.</td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap_handler.html" title="This is the base class for implementing bitmap file loading/saving, and bitmap creation from data...">wxBitmapHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ab825460a217d250db53df0c9ca293068"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxBitmap::IsOk </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <span class="literal">true</span> if bitmap data is present. </p>
</div>
</div>
<a class="anchor" id="ab4d271d200338e9274cebfee474fbd7f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxBitmap::LoadFile </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> </td>
<td class="paramname"><em>type</em> = <code>wxBITMAP_DEFAULT_TYPE</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Loads a bitmap from a file or resource. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Either a filename or a Windows resource name. The meaning of name is determined by the <em>type</em> parameter. </td></tr>
<tr><td class="paramname">type</td><td>One of the <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5" title="Bitmap type flags.">wxBitmapType</a> values; see the note in the class detailed description. Note that the wxBITMAP_DEFAULT_TYPE constant has different value under different wxWidgets ports. See the bitmap.h header for the value it takes for a specific port.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><span class="literal">true</span> if the operation succeeded, <span class="literal">false</span> otherwise.</dd></dl>
<dl class="section remark"><dt>Remarks</dt><dd>A palette may be associated with the bitmap if one exists (especially for colour Windows bitmaps), and if the code supports it. You can check if one has been created by using the <a class="el" href="classwx_bitmap.html#aaa9cfa654deb84237cbcaf9757d2deaa" title="Gets the associated palette (if any) which may have been loaded from a file or set for the bitmap...">GetPalette()</a> member.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap.html#a48617712dd0f5a6a51bb1897a49ae273" title="Saves a bitmap in the named file.">SaveFile()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a2048897970d5e845040fcfc0259e1be1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classwx_bitmap.html">wxBitmap</a> wxBitmap::NewFromPNGData </td>
<td>(</td>
<td class="paramtype">const void * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Loads a bitmap from the memory containing image data in PNG format. </p>
<p>This helper function provides the simplest way to create a <a class="el" href="classwx_bitmap.html" title="This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or co...">wxBitmap</a> from PNG image data. On most platforms, it's simply a wrapper around <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> loading functions and so requires the PNG image handler to be registered by either calling <a class="el" href="group__group__funcmacro__appinitterm.html#ga27f6c78d5d13374a28022b7bd44c6823" title="Initializes all available image handlers.">wxInitAllImageHandlers()</a> which also registers all the other image formats or including the necessary header: </p>
<div class="fragment"><div class="line"><span class="preprocessor">#include <wx/imagpng.h></span></div>
</div><!-- fragment --><p> and calling </p>
<div class="fragment"><div class="line"><a class="code" href="classwx_image.html#ab39fb3747dfb8c2d444eff9fe41fa205" title="Register an image handler.">wxImage::AddHandler</a>(<span class="keyword">new</span> wxPNGHandler);</div>
</div><!-- fragment --><p> in your application startup code.</p>
<p>However under OS X this function uses native image loading and so doesn't require wxWidgets PNG support.</p>
<dl class="section since"><dt>Since</dt><dd>2.9.5 </dd></dl>
</div>
</div>
<a class="anchor" id="a0316baef61f8f9cc3ba05bd8e52f1670"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static bool wxBitmap::RemoveHandler </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds the handler with the given name, and removes it. </p>
<p>The handler is not deleted.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The handler name.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><span class="literal">true</span> if the handler was found and removed, <span class="literal">false</span> otherwise.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap_handler.html" title="This is the base class for implementing bitmap file loading/saving, and bitmap creation from data...">wxBitmapHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a48617712dd0f5a6a51bb1897a49ae273"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxBitmap::SaveFile </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwx_palette.html">wxPalette</a> * </td>
<td class="paramname"><em>palette</em> = <code>NULL</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Saves a bitmap in the named file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>A filename. The meaning of name is determined by the type parameter. </td></tr>
<tr><td class="paramname">type</td><td>One of the <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5" title="Bitmap type flags.">wxBitmapType</a> values; see the note in the class detailed description. </td></tr>
<tr><td class="paramname">palette</td><td>An optional palette used for saving the bitmap.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><span class="literal">true</span> if the operation succeeded, <span class="literal">false</span> otherwise.</dd></dl>
<dl class="section remark"><dt>Remarks</dt><dd>Depending on how wxWidgets has been configured, not all formats may be available.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap.html#ab4d271d200338e9274cebfee474fbd7f" title="Loads a bitmap from a file or resource.">LoadFile()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ac2d3b023cf64f90fa1257eb874ed015e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void wxBitmap::SetDepth </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>depth</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the depth member (does not affect the bitmap data). </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000009">Todo:</a></b></dt><dd>since these functions do not affect the bitmap data, why they exist??</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">depth</td><td>Bitmap depth. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0091921ee85f7444e846e6183ec64909"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void wxBitmap::SetHeight </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>height</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the height member (does not affect the bitmap data). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">height</td><td>Bitmap height in pixels. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a93ca840fdf8cd761e7ad419a90626ac4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void wxBitmap::SetMask </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_mask.html">wxMask</a> * </td>
<td class="paramname"><em>mask</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the mask for this bitmap. </p>
<dl class="section remark"><dt>Remarks</dt><dd>The bitmap object owns the mask once this has been called.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_bitmap.html#ac2dc7d543479e959aa820a8f20dc8037" title="Gets the associated mask (if any) which may have been loaded from a file or set for the bitmap...">GetMask()</a>, <a class="el" href="classwx_mask.html" title="This class encapsulates a monochrome mask bitmap, where the masked area is black and the unmasked are...">wxMask</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a57d5e5389c7603ecb3edf822bc5eaf9c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void wxBitmap::SetPalette </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_palette.html">wxPalette</a> & </td>
<td class="paramname"><em>palette</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the associated palette. </p>
<p>(Not implemented under GTK+).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">palette</td><td>The palette to set.</td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_palette.html" title="A palette is a table that maps pixel values to RGB colours.">wxPalette</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a82c54a43db80f31c9ff70b0e18a1d972"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void wxBitmap::SetWidth </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>width</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the width member (does not affect the bitmap data). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">width</td><td>Bitmap width in pixels. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<address class="footer">
<small>
Generated on Thu Nov 27 2014 13:46:44 for wxWidgets by <a href="http://www.doxygen.org/index.html" target="_new">Doxygen</a> 1.8.2
</small>
</address>
<script src="wxwidgets.js" type="text/javascript"></script>
</div><!-- #page_container -->
</body>
</html>
|