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 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092
|
<!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: wxImage 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="#nested-classes">Classes</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classwx_image-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">wxImage 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/image.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 wxImage:</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_image__inherit__graph.png" border="0" usemap="#wx_image_inherit__map" alt="Inheritance graph"/></div>
<map name="wx_image_inherit__map" id="wx_image_inherit__map">
<area shape="rect" id="node2" href="classwx_object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="5,6,80,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 a platform-independent image. </p>
<p>An image can be created from data, or using <a class="el" href="classwx_bitmap.html#a063fed54a77f63d2cfa69d12f9035fe2" title="Creates an image from a platform-dependent bitmap.">wxBitmap::ConvertToImage</a>. An image can be loaded from a file in a variety of formats, and is extensible to new formats via image format handlers. Functions are available to set and get image bits, so it can be used for basic image manipulation.</p>
<p>A <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> cannot (currently) be drawn directly to a <a class="el" href="classwx_d_c.html" title="A wxDC is a "device context" onto which graphics and text can be drawn.">wxDC</a>. Instead, a platform-specific <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> object must be created from it using the wxBitmap::wxBitmap(wxImage,int depth) constructor. This bitmap can then be drawn in a device context, using <a class="el" href="classwx_d_c.html#af982eb2d3b10c5617ef3559d51a1defc" title="Draw a bitmap on the device context at the specified point.">wxDC::DrawBitmap</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>
<p>One colour value of the image may be used as a mask colour which will lead to the automatic creation of 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> object associated to the bitmap object.</p>
<h1><a class="anchor" id="image_alpha"></a>
Alpha channel support</h1>
<p>Starting from wxWidgets 2.5.0 <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> supports alpha channel data, that is in addition to a byte for the red, green and blue colour components for each pixel it also stores a byte representing the pixel opacity.</p>
<p>An alpha value of 0 corresponds to a transparent pixel (null opacity) while a value of 255 means that the pixel is 100% opaque. The constants <a class="el" href="image_8h.html#a3fc15ee0d01004d2ffcce5f303c53694" title="Constant used to indicate the alpha value conventionally defined as the complete transparency.">wxIMAGE_ALPHA_TRANSPARENT</a> and <a class="el" href="image_8h.html#a8d30dfb344ca95ced11109cc37c17d67" title="Constant used to indicate the alpha value conventionally defined as the complete opacity.">wxIMAGE_ALPHA_OPAQUE</a> can be used to indicate those values in a more readable form.</p>
<p>While all images have RGB data, not all images have an alpha channel. Before using <a class="el" href="classwx_image.html#a8e68eb081e49f51cc0410431385f9be9" title="Returns pointer to the array storing the alpha values for this image.">wxImage::GetAlpha</a> you should check if this image contains an alpha channel with <a class="el" href="classwx_image.html#abd42fd2c579837850ab5909ab2bf200c" title="Returns true if this image has alpha channel, false otherwise.">wxImage::HasAlpha</a>. Currently the BMP, PNG, TGA, and TIFF format handlers have full alpha channel support for loading so if you want to use alpha you have to use one of these formats. If you initialize the image alpha channel yourself using <a class="el" href="classwx_image.html#ab46f59f69221258da1397fd7c59e8671" title="This function is similar to SetData() and has similar restrictions.">wxImage::SetAlpha</a>, you should save it in either PNG, TGA, or TIFF format to avoid losing it as these are the only handlers that currently support saving with alpha.</p>
<h1><a class="anchor" id="image_handlers"></a>
Available image handlers</h1>
<p>The following image handlers are available. wxBMPHandler is always installed by default. To use other image formats, install the appropriate handler with <a class="el" href="classwx_image.html#ab39fb3747dfb8c2d444eff9fe41fa205" title="Register an image handler.">wxImage::AddHandler</a> or call <a class="el" href="group__group__funcmacro__appinitterm.html#ga27f6c78d5d13374a28022b7bd44c6823" title="Initializes all available image handlers.">wxInitAllImageHandlers()</a>.</p>
<ul>
<li>wxBMPHandler: For loading (including alpha support) and saving, always installed.</li>
<li>wxPNGHandler: For loading and saving. Includes alpha support.</li>
<li>wxJPEGHandler: For loading and saving.</li>
<li>wxGIFHandler: For loading and saving (see below).</li>
<li>wxPCXHandler: For loading and saving (see below).</li>
<li>wxPNMHandler: For loading and saving (see below).</li>
<li>wxTIFFHandler: For loading and saving. Includes alpha support.</li>
<li>wxTGAHandler: For loading and saving. Includes alpha support.</li>
<li>wxIFFHandler: For loading only.</li>
<li>wxXPMHandler: For loading and saving.</li>
<li>wxICOHandler: For loading and saving.</li>
<li>wxCURHandler: For loading and saving.</li>
<li>wxANIHandler: For loading only.</li>
</ul>
<p>When saving in PCX format, wxPCXHandler will count the number of different colours in the image; if there are 256 or less colours, it will save as 8 bit, else it will save as 24 bit.</p>
<p>Loading PNMs only works for ASCII or raw RGB images. When saving in PNM format, wxPNMHandler will always save as raw RGB.</p>
<p>Saving GIFs requires images of maximum 8 bpp (see <a class="el" href="classwx_quantize.html" title="Performs quantization, or colour reduction, on a wxImage.">wxQuantize</a>), and the alpha channel converted to a mask (see <a class="el" href="classwx_image.html#a3951b3fc49b0ff7154b109d63533a31f" title="If the image has alpha channel, this method converts it to mask.">wxImage::ConvertAlphaToMask</a>). Saving an animated GIF requires images of the same size (see wxGIFHandler::SaveAnimation)</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="image_8h.html#aea75fc2e13965b07bf9369ac4c5d1343" title="An instance of an empty image without an alpha channel.">wxNullImage</a></p>
<dl class="section see"><dt>See Also</dt><dd><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="group__group__funcmacro__appinitterm.html#ga27f6c78d5d13374a28022b7bd44c6823" title="Initializes all available image handlers.">wxInitAllImageHandlers()</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="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image_1_1_h_s_v_value.html">HSVValue</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">A simple class which stores hue, saturation and value as doubles in the range 0.0-1.0. <a href="classwx_image_1_1_h_s_v_value.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image_1_1_r_g_b_value.html">RGBValue</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">A simple class which stores red, green and blue values as 8 bit unsigned integers in the range of 0-255. <a href="classwx_image_1_1_r_g_b_value.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><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:a0a2febdc997f1d09c98f76fdaf85113d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a0a2febdc997f1d09c98f76fdaf85113d">wxImage</a> ()</td></tr>
<tr class="memdesc:a0a2febdc997f1d09c98f76fdaf85113d"><td class="mdescLeft"> </td><td class="mdescRight">Creates an empty <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> object without an alpha channel. <a href="#a0a2febdc997f1d09c98f76fdaf85113d"></a><br/></td></tr>
<tr class="separator:a0a2febdc997f1d09c98f76fdaf85113d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a21652c36c8e51bc696756afeaefe2d01"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a21652c36c8e51bc696756afeaefe2d01">wxImage</a> (int width, int height, bool clear=true)</td></tr>
<tr class="memdesc:a21652c36c8e51bc696756afeaefe2d01"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image with the given size and clears it if requested. <a href="#a21652c36c8e51bc696756afeaefe2d01"></a><br/></td></tr>
<tr class="separator:a21652c36c8e51bc696756afeaefe2d01"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae071c8cdd85a48655ba59a70aeced3d4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ae071c8cdd85a48655ba59a70aeced3d4">wxImage</a> (const <a class="el" href="classwx_size.html">wxSize</a> &sz, bool clear=true)</td></tr>
<tr class="memdesc:ae071c8cdd85a48655ba59a70aeced3d4"><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="#ae071c8cdd85a48655ba59a70aeced3d4"></a><br/></td></tr>
<tr class="separator:ae071c8cdd85a48655ba59a70aeced3d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2c97634b43bdd143f34418fb1f98a690"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a2c97634b43bdd143f34418fb1f98a690">wxImage</a> (int width, int height, unsigned char *data, bool static_data=false)</td></tr>
<tr class="memdesc:a2c97634b43bdd143f34418fb1f98a690"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image from data in memory. <a href="#a2c97634b43bdd143f34418fb1f98a690"></a><br/></td></tr>
<tr class="separator:a2c97634b43bdd143f34418fb1f98a690"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae4dfc16eddb74fca38a10809f56df264"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ae4dfc16eddb74fca38a10809f56df264">wxImage</a> (const <a class="el" href="classwx_size.html">wxSize</a> &sz, unsigned char *data, bool static_data=false)</td></tr>
<tr class="memdesc:ae4dfc16eddb74fca38a10809f56df264"><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="#ae4dfc16eddb74fca38a10809f56df264"></a><br/></td></tr>
<tr class="separator:ae4dfc16eddb74fca38a10809f56df264"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abdb7e8a7ca45e63935cda55b45869a7a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#abdb7e8a7ca45e63935cda55b45869a7a">wxImage</a> (int width, int height, unsigned char *data, unsigned char *alpha, bool static_data=false)</td></tr>
<tr class="memdesc:abdb7e8a7ca45e63935cda55b45869a7a"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image from data in memory. <a href="#abdb7e8a7ca45e63935cda55b45869a7a"></a><br/></td></tr>
<tr class="separator:abdb7e8a7ca45e63935cda55b45869a7a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad4d64f98e90c54902bfd9d445d23db29"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ad4d64f98e90c54902bfd9d445d23db29">wxImage</a> (const <a class="el" href="classwx_size.html">wxSize</a> &sz, unsigned char *data, unsigned char *alpha, bool static_data=false)</td></tr>
<tr class="memdesc:ad4d64f98e90c54902bfd9d445d23db29"><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="#ad4d64f98e90c54902bfd9d445d23db29"></a><br/></td></tr>
<tr class="separator:ad4d64f98e90c54902bfd9d445d23db29"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5ab9262fabb41525bc669c245654579b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a5ab9262fabb41525bc669c245654579b">wxImage</a> (const char *const *xpmData)</td></tr>
<tr class="memdesc:a5ab9262fabb41525bc669c245654579b"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image from XPM data. <a href="#a5ab9262fabb41525bc669c245654579b"></a><br/></td></tr>
<tr class="separator:a5ab9262fabb41525bc669c245654579b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a02233007383d193ab8e0f89cc1c92864"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a02233007383d193ab8e0f89cc1c92864">wxImage</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type=<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a>, int index=-1)</td></tr>
<tr class="memdesc:a02233007383d193ab8e0f89cc1c92864"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image from a file. <a href="#a02233007383d193ab8e0f89cc1c92864"></a><br/></td></tr>
<tr class="separator:a02233007383d193ab8e0f89cc1c92864"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6ef7dc2eb9aaa9bf34437f7c12aad5f2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a6ef7dc2eb9aaa9bf34437f7c12aad5f2">wxImage</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, const <a class="el" href="classwx_string.html">wxString</a> &mimetype, int index=-1)</td></tr>
<tr class="memdesc:a6ef7dc2eb9aaa9bf34437f7c12aad5f2"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image from a file using MIME-types to specify the type. <a href="#a6ef7dc2eb9aaa9bf34437f7c12aad5f2"></a><br/></td></tr>
<tr class="separator:a6ef7dc2eb9aaa9bf34437f7c12aad5f2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:add88cc57fe901b715c637e820342d91a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#add88cc57fe901b715c637e820342d91a">wxImage</a> (<a class="el" href="classwx_input_stream.html">wxInputStream</a> &stream, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type=<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a>, int index=-1)</td></tr>
<tr class="memdesc:add88cc57fe901b715c637e820342d91a"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image from a stream. <a href="#add88cc57fe901b715c637e820342d91a"></a><br/></td></tr>
<tr class="separator:add88cc57fe901b715c637e820342d91a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af8df8e96a278f30954592c452b3c0806"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#af8df8e96a278f30954592c452b3c0806">wxImage</a> (<a class="el" href="classwx_input_stream.html">wxInputStream</a> &stream, const <a class="el" href="classwx_string.html">wxString</a> &mimetype, int index=-1)</td></tr>
<tr class="memdesc:af8df8e96a278f30954592c452b3c0806"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image from a stream using MIME-types to specify the type. <a href="#af8df8e96a278f30954592c452b3c0806"></a><br/></td></tr>
<tr class="separator:af8df8e96a278f30954592c452b3c0806"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac20a9a1f46a1047f5947352afa9f2b09"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ac20a9a1f46a1047f5947352afa9f2b09">~wxImage</a> ()</td></tr>
<tr class="memdesc:ac20a9a1f46a1047f5947352afa9f2b09"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ac20a9a1f46a1047f5947352afa9f2b09"></a><br/></td></tr>
<tr class="separator:ac20a9a1f46a1047f5947352afa9f2b09"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader">Image creation, initialization and deletion functions</div></td></tr>
<tr class="memitem:ab3b39f306287a212ccbb3c1e69a0b451"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ab3b39f306287a212ccbb3c1e69a0b451">Copy</a> () const </td></tr>
<tr class="memdesc:ab3b39f306287a212ccbb3c1e69a0b451"><td class="mdescLeft"> </td><td class="mdescRight">Returns an identical copy of this image. <a href="#ab3b39f306287a212ccbb3c1e69a0b451"></a><br/></td></tr>
<tr class="separator:ab3b39f306287a212ccbb3c1e69a0b451"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a07194d90bd6320255610a0a88a030a3e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a07194d90bd6320255610a0a88a030a3e">Create</a> (int width, int height, bool clear=true)</td></tr>
<tr class="memdesc:a07194d90bd6320255610a0a88a030a3e"><td class="mdescLeft"> </td><td class="mdescRight">Creates a fresh image. <a href="#a07194d90bd6320255610a0a88a030a3e"></a><br/></td></tr>
<tr class="separator:a07194d90bd6320255610a0a88a030a3e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a37e70a8f9c684974c9c54f43f5e60a3f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a37e70a8f9c684974c9c54f43f5e60a3f">Create</a> (const <a class="el" href="classwx_size.html">wxSize</a> &sz, bool clear=true)</td></tr>
<tr class="memdesc:a37e70a8f9c684974c9c54f43f5e60a3f"><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="#a37e70a8f9c684974c9c54f43f5e60a3f"></a><br/></td></tr>
<tr class="separator:a37e70a8f9c684974c9c54f43f5e60a3f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a63801a380397cdcf465cab68f313c9a6"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a63801a380397cdcf465cab68f313c9a6">Create</a> (int width, int height, unsigned char *data, bool static_data=false)</td></tr>
<tr class="memdesc:a63801a380397cdcf465cab68f313c9a6"><td class="mdescLeft"> </td><td class="mdescRight">Creates a fresh image. <a href="#a63801a380397cdcf465cab68f313c9a6"></a><br/></td></tr>
<tr class="separator:a63801a380397cdcf465cab68f313c9a6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a717414a9d74dc882359857050bb4bdc3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a717414a9d74dc882359857050bb4bdc3">Create</a> (const <a class="el" href="classwx_size.html">wxSize</a> &sz, unsigned char *data, bool static_data=false)</td></tr>
<tr class="memdesc:a717414a9d74dc882359857050bb4bdc3"><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="#a717414a9d74dc882359857050bb4bdc3"></a><br/></td></tr>
<tr class="separator:a717414a9d74dc882359857050bb4bdc3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa395d661de4f3b98c6e92a767d97bb66"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aa395d661de4f3b98c6e92a767d97bb66">Create</a> (int width, int height, unsigned char *data, unsigned char *alpha, bool static_data=false)</td></tr>
<tr class="memdesc:aa395d661de4f3b98c6e92a767d97bb66"><td class="mdescLeft"> </td><td class="mdescRight">Creates a fresh image. <a href="#aa395d661de4f3b98c6e92a767d97bb66"></a><br/></td></tr>
<tr class="separator:aa395d661de4f3b98c6e92a767d97bb66"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae3a6d125108f6fb93188d8c3c4990b9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aae3a6d125108f6fb93188d8c3c4990b9">Create</a> (const <a class="el" href="classwx_size.html">wxSize</a> &sz, unsigned char *data, unsigned char *alpha, bool static_data=false)</td></tr>
<tr class="memdesc:aae3a6d125108f6fb93188d8c3c4990b9"><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="#aae3a6d125108f6fb93188d8c3c4990b9"></a><br/></td></tr>
<tr class="separator:aae3a6d125108f6fb93188d8c3c4990b9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2aa815c34284d6a85971e1ff8a2cc74c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a2aa815c34284d6a85971e1ff8a2cc74c">Clear</a> (unsigned char value=0)</td></tr>
<tr class="memdesc:a2aa815c34284d6a85971e1ff8a2cc74c"><td class="mdescLeft"> </td><td class="mdescRight">Initialize the image data with zeroes (the default) or with the byte value given as <em>value</em>. <a href="#a2aa815c34284d6a85971e1ff8a2cc74c"></a><br/></td></tr>
<tr class="separator:a2aa815c34284d6a85971e1ff8a2cc74c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac64c3524a054db164b811c380db65f97"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ac64c3524a054db164b811c380db65f97">Destroy</a> ()</td></tr>
<tr class="memdesc:ac64c3524a054db164b811c380db65f97"><td class="mdescLeft"> </td><td class="mdescRight">Destroys the image data. <a href="#ac64c3524a054db164b811c380db65f97"></a><br/></td></tr>
<tr class="separator:ac64c3524a054db164b811c380db65f97"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac941b6b80262b968b575ab1b215e687b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ac941b6b80262b968b575ab1b215e687b">InitAlpha</a> ()</td></tr>
<tr class="memdesc:ac941b6b80262b968b575ab1b215e687b"><td class="mdescLeft"> </td><td class="mdescRight">Initializes the image alpha channel data. <a href="#ac941b6b80262b968b575ab1b215e687b"></a><br/></td></tr>
<tr class="separator:ac941b6b80262b968b575ab1b215e687b"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader">Image manipulation functions</div></td></tr>
<tr class="memitem:a5049d6166a019c182af55a94fb6e3307"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a5049d6166a019c182af55a94fb6e3307">Blur</a> (int blurRadius) const </td></tr>
<tr class="memdesc:a5049d6166a019c182af55a94fb6e3307"><td class="mdescLeft"> </td><td class="mdescRight">Blurs the image in both horizontal and vertical directions by the specified pixel <em>blurRadius</em>. <a href="#a5049d6166a019c182af55a94fb6e3307"></a><br/></td></tr>
<tr class="separator:a5049d6166a019c182af55a94fb6e3307"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a534300b66c2469720b1be4bd2a001822"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a534300b66c2469720b1be4bd2a001822">BlurHorizontal</a> (int blurRadius) const </td></tr>
<tr class="memdesc:a534300b66c2469720b1be4bd2a001822"><td class="mdescLeft"> </td><td class="mdescRight">Blurs the image in the horizontal direction only. <a href="#a534300b66c2469720b1be4bd2a001822"></a><br/></td></tr>
<tr class="separator:a534300b66c2469720b1be4bd2a001822"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a20d4d0dd605eb5757161be251e048847"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a20d4d0dd605eb5757161be251e048847">BlurVertical</a> (int blurRadius) const </td></tr>
<tr class="memdesc:a20d4d0dd605eb5757161be251e048847"><td class="mdescLeft"> </td><td class="mdescRight">Blurs the image in the vertical direction only. <a href="#a20d4d0dd605eb5757161be251e048847"></a><br/></td></tr>
<tr class="separator:a20d4d0dd605eb5757161be251e048847"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe3a18acec23fc0afbae68c5ec3f446f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#abe3a18acec23fc0afbae68c5ec3f446f">Mirror</a> (bool horizontally=true) const </td></tr>
<tr class="memdesc:abe3a18acec23fc0afbae68c5ec3f446f"><td class="mdescLeft"> </td><td class="mdescRight">Returns a mirrored copy of the image. <a href="#abe3a18acec23fc0afbae68c5ec3f446f"></a><br/></td></tr>
<tr class="separator:abe3a18acec23fc0afbae68c5ec3f446f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb034510c331ea2fd26843e4d47b8629"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#adb034510c331ea2fd26843e4d47b8629">Paste</a> (const <a class="el" href="classwx_image.html">wxImage</a> &image, int x, int y)</td></tr>
<tr class="memdesc:adb034510c331ea2fd26843e4d47b8629"><td class="mdescLeft"> </td><td class="mdescRight">Copy the data of the given <em>image</em> to the specified position in this image. <a href="#adb034510c331ea2fd26843e4d47b8629"></a><br/></td></tr>
<tr class="separator:adb034510c331ea2fd26843e4d47b8629"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec8466530f4aea8e2cea8cb24bfb74fb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aec8466530f4aea8e2cea8cb24bfb74fb">Replace</a> (unsigned char r1, unsigned char g1, unsigned char b1, unsigned char r2, unsigned char g2, unsigned char b2)</td></tr>
<tr class="memdesc:aec8466530f4aea8e2cea8cb24bfb74fb"><td class="mdescLeft"> </td><td class="mdescRight">Replaces the colour specified by <em>r1</em>,g1,b1 by the colour <em>r2</em>,g2,b2. <a href="#aec8466530f4aea8e2cea8cb24bfb74fb"></a><br/></td></tr>
<tr class="separator:aec8466530f4aea8e2cea8cb24bfb74fb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a35227071eb0de3c0c035324838071001"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a35227071eb0de3c0c035324838071001">Rescale</a> (int width, int height, <a class="el" href="image_8h.html#a8cb59f5925c96a706710106f679d171a">wxImageResizeQuality</a> quality=<a class="el" href="image_8h.html#a8cb59f5925c96a706710106f679d171aacfa5fa2a8feb97568b19f5784d6ac5e3">wxIMAGE_QUALITY_NORMAL</a>)</td></tr>
<tr class="memdesc:a35227071eb0de3c0c035324838071001"><td class="mdescLeft"> </td><td class="mdescRight">Changes the size of the image in-place by scaling it: after a call to this function,the image will have the given width and height. <a href="#a35227071eb0de3c0c035324838071001"></a><br/></td></tr>
<tr class="separator:a35227071eb0de3c0c035324838071001"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac4dd8e967436c3206dfe4460345af794"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ac4dd8e967436c3206dfe4460345af794">Resize</a> (const <a class="el" href="classwx_size.html">wxSize</a> &size, const <a class="el" href="classwx_point.html">wxPoint</a> &pos, int red=-1, int green=-1, int blue=-1)</td></tr>
<tr class="memdesc:ac4dd8e967436c3206dfe4460345af794"><td class="mdescLeft"> </td><td class="mdescRight">Changes the size of the image in-place without scaling it by adding either a border with the given colour or cropping as necessary. <a href="#ac4dd8e967436c3206dfe4460345af794"></a><br/></td></tr>
<tr class="separator:ac4dd8e967436c3206dfe4460345af794"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a17daea3936f98c3b25204ab2b938a55a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a17daea3936f98c3b25204ab2b938a55a">Rotate</a> (double angle, const <a class="el" href="classwx_point.html">wxPoint</a> &rotationCentre, bool interpolating=true, <a class="el" href="classwx_point.html">wxPoint</a> *offsetAfterRotation=NULL) const </td></tr>
<tr class="memdesc:a17daea3936f98c3b25204ab2b938a55a"><td class="mdescLeft"> </td><td class="mdescRight">Rotates the image about the given point, by <em>angle</em> radians. <a href="#a17daea3936f98c3b25204ab2b938a55a"></a><br/></td></tr>
<tr class="separator:a17daea3936f98c3b25204ab2b938a55a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a55e17b1b5e664904c7b4946d315df168"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a55e17b1b5e664904c7b4946d315df168">Rotate90</a> (bool clockwise=true) const </td></tr>
<tr class="memdesc:a55e17b1b5e664904c7b4946d315df168"><td class="mdescLeft"> </td><td class="mdescRight">Returns a copy of the image rotated 90 degrees in the direction indicated by <em>clockwise</em>. <a href="#a55e17b1b5e664904c7b4946d315df168"></a><br/></td></tr>
<tr class="separator:a55e17b1b5e664904c7b4946d315df168"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a227870b034b06a9b1869ce636af8fea6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a227870b034b06a9b1869ce636af8fea6">Rotate180</a> () const </td></tr>
<tr class="memdesc:a227870b034b06a9b1869ce636af8fea6"><td class="mdescLeft"> </td><td class="mdescRight">Returns a copy of the image rotated by 180 degrees. <a href="#a227870b034b06a9b1869ce636af8fea6"></a><br/></td></tr>
<tr class="separator:a227870b034b06a9b1869ce636af8fea6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96a43d7bbb26ed775fa10c979c6e511f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a96a43d7bbb26ed775fa10c979c6e511f">RotateHue</a> (double angle)</td></tr>
<tr class="memdesc:a96a43d7bbb26ed775fa10c979c6e511f"><td class="mdescLeft"> </td><td class="mdescRight">Rotates the hue of each pixel in the image by <em>angle</em>, which is a double in the range of -1.0 to +1.0, where -1.0 corresponds to -360 degrees and +1.0 corresponds to +360 degrees. <a href="#a96a43d7bbb26ed775fa10c979c6e511f"></a><br/></td></tr>
<tr class="separator:a96a43d7bbb26ed775fa10c979c6e511f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaf10a9f0a8284a9ccfe988d0a470d4e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aaf10a9f0a8284a9ccfe988d0a470d4e9">Scale</a> (int width, int height, <a class="el" href="image_8h.html#a8cb59f5925c96a706710106f679d171a">wxImageResizeQuality</a> quality=<a class="el" href="image_8h.html#a8cb59f5925c96a706710106f679d171aacfa5fa2a8feb97568b19f5784d6ac5e3">wxIMAGE_QUALITY_NORMAL</a>) const </td></tr>
<tr class="memdesc:aaf10a9f0a8284a9ccfe988d0a470d4e9"><td class="mdescLeft"> </td><td class="mdescRight">Returns a scaled version of the image. <a href="#aaf10a9f0a8284a9ccfe988d0a470d4e9"></a><br/></td></tr>
<tr class="separator:aaf10a9f0a8284a9ccfe988d0a470d4e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8c3ef171a27cdb93a315eb78cf7b0377"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a8c3ef171a27cdb93a315eb78cf7b0377">Size</a> (const <a class="el" href="classwx_size.html">wxSize</a> &size, const <a class="el" href="classwx_point.html">wxPoint</a> &pos, int red=-1, int green=-1, int blue=-1) const </td></tr>
<tr class="memdesc:a8c3ef171a27cdb93a315eb78cf7b0377"><td class="mdescLeft"> </td><td class="mdescRight">Returns a resized version of this image without scaling it by adding either a border with the given colour or cropping as necessary. <a href="#a8c3ef171a27cdb93a315eb78cf7b0377"></a><br/></td></tr>
<tr class="separator:a8c3ef171a27cdb93a315eb78cf7b0377"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader">Conversion functions</div></td></tr>
<tr class="memitem:a3951b3fc49b0ff7154b109d63533a31f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a3951b3fc49b0ff7154b109d63533a31f">ConvertAlphaToMask</a> (unsigned char threshold=<a class="el" href="image_8h.html#ab038b59ef0b8209ae59f38c9e26de410">wxIMAGE_ALPHA_THRESHOLD</a>)</td></tr>
<tr class="memdesc:a3951b3fc49b0ff7154b109d63533a31f"><td class="mdescLeft"> </td><td class="mdescRight">If the image has alpha channel, this method converts it to mask. <a href="#a3951b3fc49b0ff7154b109d63533a31f"></a><br/></td></tr>
<tr class="separator:a3951b3fc49b0ff7154b109d63533a31f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a73c3cd71be1f97da115689a0387d197c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a73c3cd71be1f97da115689a0387d197c">ConvertAlphaToMask</a> (unsigned char mr, unsigned char mg, unsigned char mb, unsigned char threshold=<a class="el" href="image_8h.html#ab038b59ef0b8209ae59f38c9e26de410">wxIMAGE_ALPHA_THRESHOLD</a>)</td></tr>
<tr class="memdesc:a73c3cd71be1f97da115689a0387d197c"><td class="mdescLeft"> </td><td class="mdescRight">If the image has alpha channel, this method converts it to mask using the specified colour as the mask colour. <a href="#a73c3cd71be1f97da115689a0387d197c"></a><br/></td></tr>
<tr class="separator:a73c3cd71be1f97da115689a0387d197c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af1642edf492e25cddf76edd80db5e4fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#af1642edf492e25cddf76edd80db5e4fc">ConvertToGreyscale</a> (double weight_r, double weight_g, double weight_b) const </td></tr>
<tr class="memdesc:af1642edf492e25cddf76edd80db5e4fc"><td class="mdescLeft"> </td><td class="mdescRight">Returns a greyscale version of the image. <a href="#af1642edf492e25cddf76edd80db5e4fc"></a><br/></td></tr>
<tr class="separator:af1642edf492e25cddf76edd80db5e4fc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7541045f59badbacceb6224d0602300e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a7541045f59badbacceb6224d0602300e">ConvertToGreyscale</a> () const </td></tr>
<tr class="memdesc:a7541045f59badbacceb6224d0602300e"><td class="mdescLeft"> </td><td class="mdescRight">Returns a greyscale version of the image. <a href="#a7541045f59badbacceb6224d0602300e"></a><br/></td></tr>
<tr class="separator:a7541045f59badbacceb6224d0602300e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af9cebf3961f432b6c750463c52c9a96b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#af9cebf3961f432b6c750463c52c9a96b">ConvertToMono</a> (unsigned char r, unsigned char g, unsigned char b) const </td></tr>
<tr class="memdesc:af9cebf3961f432b6c750463c52c9a96b"><td class="mdescLeft"> </td><td class="mdescRight">Returns monochromatic version of the image. <a href="#af9cebf3961f432b6c750463c52c9a96b"></a><br/></td></tr>
<tr class="separator:af9cebf3961f432b6c750463c52c9a96b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5f5b9ac6ab0caa7b567a2fb3120f77db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a5f5b9ac6ab0caa7b567a2fb3120f77db">ConvertToDisabled</a> (unsigned char brightness=255) const </td></tr>
<tr class="memdesc:a5f5b9ac6ab0caa7b567a2fb3120f77db"><td class="mdescLeft"> </td><td class="mdescRight">Returns disabled (dimmed) version of the image. <a href="#a5f5b9ac6ab0caa7b567a2fb3120f77db"></a><br/></td></tr>
<tr class="separator:a5f5b9ac6ab0caa7b567a2fb3120f77db"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader">Miscellaneous functions</div></td></tr>
<tr class="memitem:a7c9d557cd7ad577ed76e4337b1fd843a"><td class="memItemLeft" align="right" valign="top">unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a7c9d557cd7ad577ed76e4337b1fd843a">ComputeHistogram</a> (<a class="el" href="classwx_image_histogram.html">wxImageHistogram</a> &histogram) const </td></tr>
<tr class="memdesc:a7c9d557cd7ad577ed76e4337b1fd843a"><td class="mdescLeft"> </td><td class="mdescRight">Computes the histogram of the image. <a href="#a7c9d557cd7ad577ed76e4337b1fd843a"></a><br/></td></tr>
<tr class="separator:a7c9d557cd7ad577ed76e4337b1fd843a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adfd2a60833d72432a0a28b54ca83a2d0"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#adfd2a60833d72432a0a28b54ca83a2d0">FindFirstUnusedColour</a> (unsigned char *r, unsigned char *g, unsigned char *b, unsigned char startR=1, unsigned char startG=0, unsigned char startB=0) const </td></tr>
<tr class="memdesc:adfd2a60833d72432a0a28b54ca83a2d0"><td class="mdescLeft"> </td><td class="mdescRight">Finds the first colour that is never used in the image. <a href="#adfd2a60833d72432a0a28b54ca83a2d0"></a><br/></td></tr>
<tr class="separator:adfd2a60833d72432a0a28b54ca83a2d0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4be78fed2c5a82d53114d77aad916371"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a4be78fed2c5a82d53114d77aad916371">operator=</a> (const <a class="el" href="classwx_image.html">wxImage</a> &image)</td></tr>
<tr class="memdesc:a4be78fed2c5a82d53114d77aad916371"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator, using <a class="el" href="overview_refcount.html">reference counting</a>. <a href="#a4be78fed2c5a82d53114d77aad916371"></a><br/></td></tr>
<tr class="separator:a4be78fed2c5a82d53114d77aad916371"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader">Getters</div></td></tr>
<tr class="memitem:a8e68eb081e49f51cc0410431385f9be9"><td class="memItemLeft" align="right" valign="top">unsigned char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a8e68eb081e49f51cc0410431385f9be9">GetAlpha</a> () const </td></tr>
<tr class="memdesc:a8e68eb081e49f51cc0410431385f9be9"><td class="mdescLeft"> </td><td class="mdescRight">Returns pointer to the array storing the alpha values for this image. <a href="#a8e68eb081e49f51cc0410431385f9be9"></a><br/></td></tr>
<tr class="separator:a8e68eb081e49f51cc0410431385f9be9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5cac38e8fd2536852406d9c8daa55023"><td class="memItemLeft" align="right" valign="top">unsigned char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a5cac38e8fd2536852406d9c8daa55023">GetData</a> () const </td></tr>
<tr class="memdesc:a5cac38e8fd2536852406d9c8daa55023"><td class="mdescLeft"> </td><td class="mdescRight">Returns the image data as an array. <a href="#a5cac38e8fd2536852406d9c8daa55023"></a><br/></td></tr>
<tr class="separator:a5cac38e8fd2536852406d9c8daa55023"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a406fe67d895c815386bfd2c697a1a667"><td class="memItemLeft" align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a406fe67d895c815386bfd2c697a1a667">GetAlpha</a> (int x, int y) const </td></tr>
<tr class="memdesc:a406fe67d895c815386bfd2c697a1a667"><td class="mdescLeft"> </td><td class="mdescRight">Return alpha value at given pixel location. <a href="#a406fe67d895c815386bfd2c697a1a667"></a><br/></td></tr>
<tr class="separator:a406fe67d895c815386bfd2c697a1a667"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ade7e4b89f960bffbc09a88863145397a"><td class="memItemLeft" align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ade7e4b89f960bffbc09a88863145397a">GetRed</a> (int x, int y) const </td></tr>
<tr class="memdesc:ade7e4b89f960bffbc09a88863145397a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the red intensity at the given coordinate. <a href="#ade7e4b89f960bffbc09a88863145397a"></a><br/></td></tr>
<tr class="separator:ade7e4b89f960bffbc09a88863145397a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a43533994a507cd8f419759cddeef8df2"><td class="memItemLeft" align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a43533994a507cd8f419759cddeef8df2">GetGreen</a> (int x, int y) const </td></tr>
<tr class="memdesc:a43533994a507cd8f419759cddeef8df2"><td class="mdescLeft"> </td><td class="mdescRight">Returns the green intensity at the given coordinate. <a href="#a43533994a507cd8f419759cddeef8df2"></a><br/></td></tr>
<tr class="separator:a43533994a507cd8f419759cddeef8df2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a19bf61cbc4d66512f3244149886f2e9f"><td class="memItemLeft" align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a19bf61cbc4d66512f3244149886f2e9f">GetBlue</a> (int x, int y) const </td></tr>
<tr class="memdesc:a19bf61cbc4d66512f3244149886f2e9f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the blue intensity at the given coordinate. <a href="#a19bf61cbc4d66512f3244149886f2e9f"></a><br/></td></tr>
<tr class="separator:a19bf61cbc4d66512f3244149886f2e9f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa9c4b367f98baac91c77f863351f7c26"><td class="memItemLeft" align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aa9c4b367f98baac91c77f863351f7c26">GetMaskRed</a> () const </td></tr>
<tr class="memdesc:aa9c4b367f98baac91c77f863351f7c26"><td class="mdescLeft"> </td><td class="mdescRight">Gets the red value of the mask colour. <a href="#aa9c4b367f98baac91c77f863351f7c26"></a><br/></td></tr>
<tr class="separator:aa9c4b367f98baac91c77f863351f7c26"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acf6994b3c2706193ee910c3836e6b0ec"><td class="memItemLeft" align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#acf6994b3c2706193ee910c3836e6b0ec">GetMaskGreen</a> () const </td></tr>
<tr class="memdesc:acf6994b3c2706193ee910c3836e6b0ec"><td class="mdescLeft"> </td><td class="mdescRight">Gets the green value of the mask colour. <a href="#acf6994b3c2706193ee910c3836e6b0ec"></a><br/></td></tr>
<tr class="separator:acf6994b3c2706193ee910c3836e6b0ec"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad5f1fc61f1343633ba80f3402f19956c"><td class="memItemLeft" align="right" valign="top">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ad5f1fc61f1343633ba80f3402f19956c">GetMaskBlue</a> () const </td></tr>
<tr class="memdesc:ad5f1fc61f1343633ba80f3402f19956c"><td class="mdescLeft"> </td><td class="mdescRight">Gets the blue value of the mask colour. <a href="#ad5f1fc61f1343633ba80f3402f19956c"></a><br/></td></tr>
<tr class="separator:ad5f1fc61f1343633ba80f3402f19956c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abd2c9f02c948813eb23ae45481977995"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#abd2c9f02c948813eb23ae45481977995">GetWidth</a> () const </td></tr>
<tr class="memdesc:abd2c9f02c948813eb23ae45481977995"><td class="mdescLeft"> </td><td class="mdescRight">Gets the width of the image in pixels. <a href="#abd2c9f02c948813eb23ae45481977995"></a><br/></td></tr>
<tr class="separator:abd2c9f02c948813eb23ae45481977995"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a73d10c7d8ea36dc5421f2713ce1d9e48"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a73d10c7d8ea36dc5421f2713ce1d9e48">GetHeight</a> () const </td></tr>
<tr class="memdesc:a73d10c7d8ea36dc5421f2713ce1d9e48"><td class="mdescLeft"> </td><td class="mdescRight">Gets the height of the image in pixels. <a href="#a73d10c7d8ea36dc5421f2713ce1d9e48"></a><br/></td></tr>
<tr class="separator:a73d10c7d8ea36dc5421f2713ce1d9e48"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae7bbee7b8b53302e3656b93bba217cd"><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_image.html#aae7bbee7b8b53302e3656b93bba217cd">GetSize</a> () const </td></tr>
<tr class="memdesc:aae7bbee7b8b53302e3656b93bba217cd"><td class="mdescLeft"> </td><td class="mdescRight">Returns the size of the image in pixels. <a href="#aae7bbee7b8b53302e3656b93bba217cd"></a><br/></td></tr>
<tr class="separator:aae7bbee7b8b53302e3656b93bba217cd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af006480a04b88e20033bab1615e05de4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_string.html">wxString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#af006480a04b88e20033bab1615e05de4">GetOption</a> (const <a class="el" href="classwx_string.html">wxString</a> &name) const </td></tr>
<tr class="memdesc:af006480a04b88e20033bab1615e05de4"><td class="mdescLeft"> </td><td class="mdescRight">Gets a user-defined string-valued option. <a href="#af006480a04b88e20033bab1615e05de4"></a><br/></td></tr>
<tr class="separator:af006480a04b88e20033bab1615e05de4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af752636f2a2baecd5d33cd8e8501c044"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#af752636f2a2baecd5d33cd8e8501c044">GetOptionInt</a> (const <a class="el" href="classwx_string.html">wxString</a> &name) const </td></tr>
<tr class="memdesc:af752636f2a2baecd5d33cd8e8501c044"><td class="mdescLeft"> </td><td class="mdescRight">Gets a user-defined integer-valued option. <a href="#af752636f2a2baecd5d33cd8e8501c044"></a><br/></td></tr>
<tr class="separator:af752636f2a2baecd5d33cd8e8501c044"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8262377d07012664242529bca77f91ab"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a8262377d07012664242529bca77f91ab">GetOrFindMaskColour</a> (unsigned char *r, unsigned char *g, unsigned char *b) const </td></tr>
<tr class="memdesc:a8262377d07012664242529bca77f91ab"><td class="mdescLeft"> </td><td class="mdescRight">Get the current mask colour or find a suitable unused colour that could be used as a mask colour. <a href="#a8262377d07012664242529bca77f91ab"></a><br/></td></tr>
<tr class="separator:a8262377d07012664242529bca77f91ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a055f1cd8ae68ae83204ecc3b0fff0f57"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classwx_palette.html">wxPalette</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a055f1cd8ae68ae83204ecc3b0fff0f57">GetPalette</a> () const </td></tr>
<tr class="memdesc:a055f1cd8ae68ae83204ecc3b0fff0f57"><td class="mdescLeft"> </td><td class="mdescRight">Returns the palette associated with the image. <a href="#a055f1cd8ae68ae83204ecc3b0fff0f57"></a><br/></td></tr>
<tr class="separator:a055f1cd8ae68ae83204ecc3b0fff0f57"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a54967a3c86a41b62712dfa16fffa8cda"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classwx_image.html">wxImage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a54967a3c86a41b62712dfa16fffa8cda">GetSubImage</a> (const <a class="el" href="classwx_rect.html">wxRect</a> &rect) const </td></tr>
<tr class="memdesc:a54967a3c86a41b62712dfa16fffa8cda"><td class="mdescLeft"> </td><td class="mdescRight">Returns a sub image of the current one as long as the rect belongs entirely to the image. <a href="#a54967a3c86a41b62712dfa16fffa8cda"></a><br/></td></tr>
<tr class="separator:a54967a3c86a41b62712dfa16fffa8cda"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac711680e14facac5476a4a2946b7dc42"><td class="memItemLeft" align="right" valign="top"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ac711680e14facac5476a4a2946b7dc42">GetType</a> () const </td></tr>
<tr class="memdesc:ac711680e14facac5476a4a2946b7dc42"><td class="mdescLeft"> </td><td class="mdescRight">Gets the type of image found by <a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile()</a> or specified with <a class="el" href="classwx_image.html#adbdd72be525d71ebb3fe01a5de02607c" title="Saves an image in the given stream.">SaveFile()</a>. <a href="#ac711680e14facac5476a4a2946b7dc42"></a><br/></td></tr>
<tr class="separator:ac711680e14facac5476a4a2946b7dc42"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abd42fd2c579837850ab5909ab2bf200c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#abd42fd2c579837850ab5909ab2bf200c">HasAlpha</a> () const </td></tr>
<tr class="memdesc:abd42fd2c579837850ab5909ab2bf200c"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if this image has alpha channel, <span class="literal">false</span> otherwise. <a href="#abd42fd2c579837850ab5909ab2bf200c"></a><br/></td></tr>
<tr class="separator:abd42fd2c579837850ab5909ab2bf200c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6b5285194b6416122381cf8b824a156d"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a6b5285194b6416122381cf8b824a156d">HasMask</a> () const </td></tr>
<tr class="memdesc:a6b5285194b6416122381cf8b824a156d"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if there is a mask active, <span class="literal">false</span> otherwise. <a href="#a6b5285194b6416122381cf8b824a156d"></a><br/></td></tr>
<tr class="separator:a6b5285194b6416122381cf8b824a156d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a868ae81f470e1bef6ca81dd985078782"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a868ae81f470e1bef6ca81dd985078782">HasOption</a> (const <a class="el" href="classwx_string.html">wxString</a> &name) const </td></tr>
<tr class="memdesc:a868ae81f470e1bef6ca81dd985078782"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if the given option is present. <a href="#a868ae81f470e1bef6ca81dd985078782"></a><br/></td></tr>
<tr class="separator:a868ae81f470e1bef6ca81dd985078782"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab426714385b517d9367f7595e95714e0"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ab426714385b517d9367f7595e95714e0">IsOk</a> () const </td></tr>
<tr class="memdesc:ab426714385b517d9367f7595e95714e0"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if image data is present. <a href="#ab426714385b517d9367f7595e95714e0"></a><br/></td></tr>
<tr class="separator:ab426714385b517d9367f7595e95714e0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adbe6a22287f6bbbfc5dae4514ca62385"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#adbe6a22287f6bbbfc5dae4514ca62385">IsTransparent</a> (int x, int y, unsigned char threshold=<a class="el" href="image_8h.html#ab038b59ef0b8209ae59f38c9e26de410">wxIMAGE_ALPHA_THRESHOLD</a>) const </td></tr>
<tr class="memdesc:adbe6a22287f6bbbfc5dae4514ca62385"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if the given pixel is transparent, i.e. either has the mask colour if this image has a mask or if this image has alpha channel and alpha value of this pixel is strictly less than <em>threshold</em>. <a href="#adbe6a22287f6bbbfc5dae4514ca62385"></a><br/></td></tr>
<tr class="separator:adbe6a22287f6bbbfc5dae4514ca62385"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader">Loading and saving functions</div></td></tr>
<tr class="memitem:aa249e657259fe6518d68a5208b9043d0"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0">LoadFile</a> (<a class="el" href="classwx_input_stream.html">wxInputStream</a> &stream, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type=<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a>, int index=-1)</td></tr>
<tr class="memdesc:aa249e657259fe6518d68a5208b9043d0"><td class="mdescLeft"> </td><td class="mdescRight">Loads an image from an input stream. <a href="#aa249e657259fe6518d68a5208b9043d0"></a><br/></td></tr>
<tr class="separator:aa249e657259fe6518d68a5208b9043d0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2f514d576c0c086249cd39edac0c1bd6"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a2f514d576c0c086249cd39edac0c1bd6">LoadFile</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type=<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a>, int index=-1)</td></tr>
<tr class="memdesc:a2f514d576c0c086249cd39edac0c1bd6"><td class="mdescLeft"> </td><td class="mdescRight">Loads an image from a file. <a href="#a2f514d576c0c086249cd39edac0c1bd6"></a><br/></td></tr>
<tr class="separator:a2f514d576c0c086249cd39edac0c1bd6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5261b155bbc93ed1719462d80ce699be"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a5261b155bbc93ed1719462d80ce699be">LoadFile</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, const <a class="el" href="classwx_string.html">wxString</a> &mimetype, int index=-1)</td></tr>
<tr class="memdesc:a5261b155bbc93ed1719462d80ce699be"><td class="mdescLeft"> </td><td class="mdescRight">Loads an image from a file. <a href="#a5261b155bbc93ed1719462d80ce699be"></a><br/></td></tr>
<tr class="separator:a5261b155bbc93ed1719462d80ce699be"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a318ae843ecc2e10fdc460865dff49a99"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a318ae843ecc2e10fdc460865dff49a99">LoadFile</a> (<a class="el" href="classwx_input_stream.html">wxInputStream</a> &stream, const <a class="el" href="classwx_string.html">wxString</a> &mimetype, int index=-1)</td></tr>
<tr class="memdesc:a318ae843ecc2e10fdc460865dff49a99"><td class="mdescLeft"> </td><td class="mdescRight">Loads an image from an input stream. <a href="#a318ae843ecc2e10fdc460865dff49a99"></a><br/></td></tr>
<tr class="separator:a318ae843ecc2e10fdc460865dff49a99"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adbdd72be525d71ebb3fe01a5de02607c"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#adbdd72be525d71ebb3fe01a5de02607c">SaveFile</a> (<a class="el" href="classwx_output_stream.html">wxOutputStream</a> &stream, const <a class="el" href="classwx_string.html">wxString</a> &mimetype) const </td></tr>
<tr class="memdesc:adbdd72be525d71ebb3fe01a5de02607c"><td class="mdescLeft"> </td><td class="mdescRight">Saves an image in the given stream. <a href="#adbdd72be525d71ebb3fe01a5de02607c"></a><br/></td></tr>
<tr class="separator:adbdd72be525d71ebb3fe01a5de02607c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9416097f955a828243cba8431e7044d4"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a9416097f955a828243cba8431e7044d4">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 </td></tr>
<tr class="memdesc:a9416097f955a828243cba8431e7044d4"><td class="mdescLeft"> </td><td class="mdescRight">Saves an image in the named file. <a href="#a9416097f955a828243cba8431e7044d4"></a><br/></td></tr>
<tr class="separator:a9416097f955a828243cba8431e7044d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adef2e0344bfa416816cc4d63c76375e4"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#adef2e0344bfa416816cc4d63c76375e4">SaveFile</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, const <a class="el" href="classwx_string.html">wxString</a> &mimetype) const </td></tr>
<tr class="memdesc:adef2e0344bfa416816cc4d63c76375e4"><td class="mdescLeft"> </td><td class="mdescRight">Saves an image in the named file. <a href="#adef2e0344bfa416816cc4d63c76375e4"></a><br/></td></tr>
<tr class="separator:adef2e0344bfa416816cc4d63c76375e4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4c5201cc30a99d5cc006d99100dcf55d"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a4c5201cc30a99d5cc006d99100dcf55d">SaveFile</a> (const <a class="el" href="classwx_string.html">wxString</a> &name) const </td></tr>
<tr class="memdesc:a4c5201cc30a99d5cc006d99100dcf55d"><td class="mdescLeft"> </td><td class="mdescRight">Saves an image in the named file. <a href="#a4c5201cc30a99d5cc006d99100dcf55d"></a><br/></td></tr>
<tr class="separator:a4c5201cc30a99d5cc006d99100dcf55d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af8ac6fad3c44385296cdaa1d82358ad0"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#af8ac6fad3c44385296cdaa1d82358ad0">SaveFile</a> (<a class="el" href="classwx_output_stream.html">wxOutputStream</a> &stream, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type) const </td></tr>
<tr class="memdesc:af8ac6fad3c44385296cdaa1d82358ad0"><td class="mdescLeft"> </td><td class="mdescRight">Saves an image in the given stream. <a href="#af8ac6fad3c44385296cdaa1d82358ad0"></a><br/></td></tr>
<tr class="separator:af8ac6fad3c44385296cdaa1d82358ad0"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader">Setters</div></td></tr>
<tr class="memitem:ab46f59f69221258da1397fd7c59e8671"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ab46f59f69221258da1397fd7c59e8671">SetAlpha</a> (unsigned char *alpha=NULL, bool static_data=false)</td></tr>
<tr class="memdesc:ab46f59f69221258da1397fd7c59e8671"><td class="mdescLeft"> </td><td class="mdescRight">This function is similar to <a class="el" href="classwx_image.html#a736a8fc26d32e5eab70682b115bacacf" title="Sets the image data without performing checks.">SetData()</a> and has similar restrictions. <a href="#ab46f59f69221258da1397fd7c59e8671"></a><br/></td></tr>
<tr class="separator:ab46f59f69221258da1397fd7c59e8671"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a882406861db4666fb619af90a1cb4b45"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a882406861db4666fb619af90a1cb4b45">SetAlpha</a> (int x, int y, unsigned char alpha)</td></tr>
<tr class="memdesc:a882406861db4666fb619af90a1cb4b45"><td class="mdescLeft"> </td><td class="mdescRight">Sets the alpha value for the given pixel. <a href="#a882406861db4666fb619af90a1cb4b45"></a><br/></td></tr>
<tr class="separator:a882406861db4666fb619af90a1cb4b45"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1b82ae0550626a74c3ee97d9065628b1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a1b82ae0550626a74c3ee97d9065628b1">ClearAlpha</a> ()</td></tr>
<tr class="memdesc:a1b82ae0550626a74c3ee97d9065628b1"><td class="mdescLeft"> </td><td class="mdescRight">Removes the alpha channel from the image. <a href="#a1b82ae0550626a74c3ee97d9065628b1"></a><br/></td></tr>
<tr class="separator:a1b82ae0550626a74c3ee97d9065628b1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a736a8fc26d32e5eab70682b115bacacf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a736a8fc26d32e5eab70682b115bacacf">SetData</a> (unsigned char *data, bool static_data=false)</td></tr>
<tr class="memdesc:a736a8fc26d32e5eab70682b115bacacf"><td class="mdescLeft"> </td><td class="mdescRight">Sets the image data without performing checks. <a href="#a736a8fc26d32e5eab70682b115bacacf"></a><br/></td></tr>
<tr class="separator:a736a8fc26d32e5eab70682b115bacacf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afda57bc7ba823e7c060dbd7698c6ad31"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#afda57bc7ba823e7c060dbd7698c6ad31">SetData</a> (unsigned char *data, int new_width, int new_height, bool static_data=false)</td></tr>
<tr class="memdesc:afda57bc7ba823e7c060dbd7698c6ad31"><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="#afda57bc7ba823e7c060dbd7698c6ad31"></a><br/></td></tr>
<tr class="separator:afda57bc7ba823e7c060dbd7698c6ad31"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a62645fe559149a8ee6b27ddc07cfc220"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a62645fe559149a8ee6b27ddc07cfc220">SetMask</a> (bool hasMask=true)</td></tr>
<tr class="memdesc:a62645fe559149a8ee6b27ddc07cfc220"><td class="mdescLeft"> </td><td class="mdescRight">Specifies whether there is a mask or not. <a href="#a62645fe559149a8ee6b27ddc07cfc220"></a><br/></td></tr>
<tr class="separator:a62645fe559149a8ee6b27ddc07cfc220"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a25fcd0777ea579c7a27d78a2a81627e5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a25fcd0777ea579c7a27d78a2a81627e5">SetMaskColour</a> (unsigned char red, unsigned char green, unsigned char blue)</td></tr>
<tr class="memdesc:a25fcd0777ea579c7a27d78a2a81627e5"><td class="mdescLeft"> </td><td class="mdescRight">Sets the mask colour for this image (and tells the image to use the mask). <a href="#a25fcd0777ea579c7a27d78a2a81627e5"></a><br/></td></tr>
<tr class="separator:a25fcd0777ea579c7a27d78a2a81627e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaa8be307e013440b9a3e4791eab91771"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aaa8be307e013440b9a3e4791eab91771">SetMaskFromImage</a> (const <a class="el" href="classwx_image.html">wxImage</a> &mask, unsigned char mr, unsigned char mg, unsigned char mb)</td></tr>
<tr class="memdesc:aaa8be307e013440b9a3e4791eab91771"><td class="mdescLeft"> </td><td class="mdescRight">Sets image's mask so that the pixels that have RGB value of mr,mg,mb in mask will be masked in the image. <a href="#aaa8be307e013440b9a3e4791eab91771"></a><br/></td></tr>
<tr class="separator:aaa8be307e013440b9a3e4791eab91771"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a952ee065b17ee07a8cbee568486e01a4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a952ee065b17ee07a8cbee568486e01a4">SetOption</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, const <a class="el" href="classwx_string.html">wxString</a> &value)</td></tr>
<tr class="memdesc:a952ee065b17ee07a8cbee568486e01a4"><td class="mdescLeft"> </td><td class="mdescRight">Sets a user-defined option. <a href="#a952ee065b17ee07a8cbee568486e01a4"></a><br/></td></tr>
<tr class="separator:a952ee065b17ee07a8cbee568486e01a4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acc3d48af8a50bff5ceca51fd649ec981"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#acc3d48af8a50bff5ceca51fd649ec981">SetOption</a> (const <a class="el" href="classwx_string.html">wxString</a> &name, int value)</td></tr>
<tr class="memdesc:acc3d48af8a50bff5ceca51fd649ec981"><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="#acc3d48af8a50bff5ceca51fd649ec981"></a><br/></td></tr>
<tr class="separator:acc3d48af8a50bff5ceca51fd649ec981"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acbf3a8b9f954b7da7d65adbb9cc9e026"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#acbf3a8b9f954b7da7d65adbb9cc9e026">SetPalette</a> (const <a class="el" href="classwx_palette.html">wxPalette</a> &palette)</td></tr>
<tr class="memdesc:acbf3a8b9f954b7da7d65adbb9cc9e026"><td class="mdescLeft"> </td><td class="mdescRight">Associates a palette with the image. <a href="#acbf3a8b9f954b7da7d65adbb9cc9e026"></a><br/></td></tr>
<tr class="separator:acbf3a8b9f954b7da7d65adbb9cc9e026"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1c75932734bdc807c5a163e98a6e3077"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a1c75932734bdc807c5a163e98a6e3077">SetRGB</a> (int x, int y, unsigned char r, unsigned char g, unsigned char b)</td></tr>
<tr class="memdesc:a1c75932734bdc807c5a163e98a6e3077"><td class="mdescLeft"> </td><td class="mdescRight">Set the color of the pixel at the given x and y coordinate. <a href="#a1c75932734bdc807c5a163e98a6e3077"></a><br/></td></tr>
<tr class="separator:a1c75932734bdc807c5a163e98a6e3077"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a17f90246727d089675e7f44a414280d1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a17f90246727d089675e7f44a414280d1">SetRGB</a> (const <a class="el" href="classwx_rect.html">wxRect</a> &rect, unsigned char red, unsigned char green, unsigned char blue)</td></tr>
<tr class="memdesc:a17f90246727d089675e7f44a414280d1"><td class="mdescLeft"> </td><td class="mdescRight">Sets the colour of the pixels within the given rectangle. <a href="#a17f90246727d089675e7f44a414280d1"></a><br/></td></tr>
<tr class="separator:a17f90246727d089675e7f44a414280d1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab4a6c25da79e4f2473246108951906e6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ab4a6c25da79e4f2473246108951906e6">SetType</a> (<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type)</td></tr>
<tr class="memdesc:ab4a6c25da79e4f2473246108951906e6"><td class="mdescLeft"> </td><td class="mdescRight">Set the type of image returned by <a class="el" href="classwx_image.html#ac711680e14facac5476a4a2946b7dc42" title="Gets the type of image found by LoadFile() or specified with SaveFile().">GetType()</a>. <a href="#ab4a6c25da79e4f2473246108951906e6"></a><br/></td></tr>
<tr class="separator:ab4a6c25da79e4f2473246108951906e6"><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:a786fdfa44290867e1b1fd64bcd26aded"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a786fdfa44290867e1b1fd64bcd26aded">CanRead</a> (const <a class="el" href="classwx_string.html">wxString</a> &filename)</td></tr>
<tr class="memdesc:a786fdfa44290867e1b1fd64bcd26aded"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if at least one of the available image handlers can read the file with the given name. <a href="#a786fdfa44290867e1b1fd64bcd26aded"></a><br/></td></tr>
<tr class="separator:a786fdfa44290867e1b1fd64bcd26aded"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aac069cba7821715661e03d9b6eeee98f"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aac069cba7821715661e03d9b6eeee98f">CanRead</a> (<a class="el" href="classwx_input_stream.html">wxInputStream</a> &stream)</td></tr>
<tr class="memdesc:aac069cba7821715661e03d9b6eeee98f"><td class="mdescLeft"> </td><td class="mdescRight">Returns <span class="literal">true</span> if at least one of the available image handlers can read the data in the given stream. <a href="#aac069cba7821715661e03d9b6eeee98f"></a><br/></td></tr>
<tr class="separator:aac069cba7821715661e03d9b6eeee98f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0ed7bd5c0eba03553b6533e2f79e0ff1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_string.html">wxString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a0ed7bd5c0eba03553b6533e2f79e0ff1">GetImageExtWildcard</a> ()</td></tr>
<tr class="memdesc:a0ed7bd5c0eba03553b6533e2f79e0ff1"><td class="mdescLeft"> </td><td class="mdescRight">Iterates all registered <a class="el" href="classwx_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> objects, and returns a string containing file extension masks suitable for passing to file open/save dialog boxes. <a href="#a0ed7bd5c0eba03553b6533e2f79e0ff1"></a><br/></td></tr>
<tr class="separator:a0ed7bd5c0eba03553b6533e2f79e0ff1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a28041e34c4dccaf9cba3fff358121b83"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_image_1_1_h_s_v_value.html">wxImage::HSVValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a28041e34c4dccaf9cba3fff358121b83">RGBtoHSV</a> (const <a class="el" href="classwx_image_1_1_r_g_b_value.html">wxImage::RGBValue</a> &rgb)</td></tr>
<tr class="memdesc:a28041e34c4dccaf9cba3fff358121b83"><td class="mdescLeft"> </td><td class="mdescRight">Converts a color in RGB color space to HSV color space. <a href="#a28041e34c4dccaf9cba3fff358121b83"></a><br/></td></tr>
<tr class="separator:a28041e34c4dccaf9cba3fff358121b83"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa72cf0a75c1e517f69787e1984717017"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_image_1_1_r_g_b_value.html">wxImage::RGBValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aa72cf0a75c1e517f69787e1984717017">HSVtoRGB</a> (const <a class="el" href="classwx_image_1_1_h_s_v_value.html">wxImage::HSVValue</a> &hsv)</td></tr>
<tr class="memdesc:aa72cf0a75c1e517f69787e1984717017"><td class="mdescLeft"> </td><td class="mdescRight">Converts a color in HSV color space to RGB color space. <a href="#aa72cf0a75c1e517f69787e1984717017"></a><br/></td></tr>
<tr class="separator:aa72cf0a75c1e517f69787e1984717017"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader">Handler management functions</div></td></tr>
<tr class="memitem:ab39fb3747dfb8c2d444eff9fe41fa205"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ab39fb3747dfb8c2d444eff9fe41fa205">AddHandler</a> (<a class="el" href="classwx_image_handler.html">wxImageHandler</a> *handler)</td></tr>
<tr class="memdesc:ab39fb3747dfb8c2d444eff9fe41fa205"><td class="mdescLeft"> </td><td class="mdescRight">Register an image handler. <a href="#ab39fb3747dfb8c2d444eff9fe41fa205"></a><br/></td></tr>
<tr class="separator:ab39fb3747dfb8c2d444eff9fe41fa205"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa50b222b999e7cd690f2a5be0e0e9cef"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#aa50b222b999e7cd690f2a5be0e0e9cef">CleanUpHandlers</a> ()</td></tr>
<tr class="memdesc:aa50b222b999e7cd690f2a5be0e0e9cef"><td class="mdescLeft"> </td><td class="mdescRight">Deletes all image handlers. <a href="#aa50b222b999e7cd690f2a5be0e0e9cef"></a><br/></td></tr>
<tr class="separator:aa50b222b999e7cd690f2a5be0e0e9cef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb0458fbb84d41af925f3d2c59d1adde"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_image_handler.html">wxImageHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#abb0458fbb84d41af925f3d2c59d1adde">FindHandler</a> (const <a class="el" href="classwx_string.html">wxString</a> &name)</td></tr>
<tr class="memdesc:abb0458fbb84d41af925f3d2c59d1adde"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler with the given name. <a href="#abb0458fbb84d41af925f3d2c59d1adde"></a><br/></td></tr>
<tr class="separator:abb0458fbb84d41af925f3d2c59d1adde"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2bd74e0e2e3ba7980e09cf14fca86a7c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_image_handler.html">wxImageHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a2bd74e0e2e3ba7980e09cf14fca86a7c">FindHandler</a> (const <a class="el" href="classwx_string.html">wxString</a> &extension, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> imageType)</td></tr>
<tr class="memdesc:a2bd74e0e2e3ba7980e09cf14fca86a7c"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler associated with the given extension and type. <a href="#a2bd74e0e2e3ba7980e09cf14fca86a7c"></a><br/></td></tr>
<tr class="separator:a2bd74e0e2e3ba7980e09cf14fca86a7c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae7b426b2352950992181c0760425e5e4"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_image_handler.html">wxImageHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ae7b426b2352950992181c0760425e5e4">FindHandler</a> (<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> imageType)</td></tr>
<tr class="memdesc:ae7b426b2352950992181c0760425e5e4"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler associated with the given image type. <a href="#ae7b426b2352950992181c0760425e5e4"></a><br/></td></tr>
<tr class="separator:ae7b426b2352950992181c0760425e5e4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5e3f7cb7089c70f91e977fa2fa896b52"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwx_image_handler.html">wxImageHandler</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a5e3f7cb7089c70f91e977fa2fa896b52">FindHandlerMime</a> (const <a class="el" href="classwx_string.html">wxString</a> &mimetype)</td></tr>
<tr class="memdesc:a5e3f7cb7089c70f91e977fa2fa896b52"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler associated with the given MIME type. <a href="#a5e3f7cb7089c70f91e977fa2fa896b52"></a><br/></td></tr>
<tr class="separator:a5e3f7cb7089c70f91e977fa2fa896b52"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4c3a141a4d1e953e7e64e4c9477a76fb"><td class="memItemLeft" align="right" valign="top">static wxList & </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a4c3a141a4d1e953e7e64e4c9477a76fb">GetHandlers</a> ()</td></tr>
<tr class="memdesc:a4c3a141a4d1e953e7e64e4c9477a76fb"><td class="mdescLeft"> </td><td class="mdescRight">Returns the static list of image format handlers. <a href="#a4c3a141a4d1e953e7e64e4c9477a76fb"></a><br/></td></tr>
<tr class="separator:a4c3a141a4d1e953e7e64e4c9477a76fb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab2f032e0b7766dc69d4f092f4a55fd60"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#ab2f032e0b7766dc69d4f092f4a55fd60">InitStandardHandlers</a> ()</td></tr>
<tr class="memdesc:ab2f032e0b7766dc69d4f092f4a55fd60"><td class="mdescLeft"> </td><td class="mdescRight">Internal use only. <a href="#ab2f032e0b7766dc69d4f092f4a55fd60"></a><br/></td></tr>
<tr class="separator:ab2f032e0b7766dc69d4f092f4a55fd60"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adcecda55890d6e9e3c827751a9ec42b0"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#adcecda55890d6e9e3c827751a9ec42b0">InsertHandler</a> (<a class="el" href="classwx_image_handler.html">wxImageHandler</a> *handler)</td></tr>
<tr class="memdesc:adcecda55890d6e9e3c827751a9ec42b0"><td class="mdescLeft"> </td><td class="mdescRight">Adds a handler at the start of the static list of format handlers. <a href="#adcecda55890d6e9e3c827751a9ec42b0"></a><br/></td></tr>
<tr class="separator:adcecda55890d6e9e3c827751a9ec42b0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a70ef86ff481bc18c0a32f5467a071e42"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a70ef86ff481bc18c0a32f5467a071e42">RemoveHandler</a> (const <a class="el" href="classwx_string.html">wxString</a> &name)</td></tr>
<tr class="memdesc:a70ef86ff481bc18c0a32f5467a071e42"><td class="mdescLeft"> </td><td class="mdescRight">Finds the handler with the given name, and removes it. <a href="#a70ef86ff481bc18c0a32f5467a071e42"></a><br/></td></tr>
<tr class="separator:a70ef86ff481bc18c0a32f5467a071e42"><td class="memSeparator" colspan="2"> </td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr class="memitem:abea8ef407ac0c0cf829ea8a3c9e101ee"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#abea8ef407ac0c0cf829ea8a3c9e101ee">GetImageCount</a> (const <a class="el" href="classwx_string.html">wxString</a> &filename, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type=<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a>)</td></tr>
<tr class="memdesc:abea8ef407ac0c0cf829ea8a3c9e101ee"><td class="mdescLeft"> </td><td class="mdescRight">If the image file contains more than one image and the image handler is capable of retrieving these individually, this function will return the number of available images. <a href="#abea8ef407ac0c0cf829ea8a3c9e101ee"></a><br/></td></tr>
<tr class="separator:abea8ef407ac0c0cf829ea8a3c9e101ee"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a54665a3517668fab312e7205de0b88ca"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classwx_image.html#a54665a3517668fab312e7205de0b88ca">GetImageCount</a> (<a class="el" href="classwx_input_stream.html">wxInputStream</a> &stream, <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> type=<a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a>)</td></tr>
<tr class="memdesc:a54665a3517668fab312e7205de0b88ca"><td class="mdescLeft"> </td><td class="mdescRight">If the image file contains more than one image and the image handler is capable of retrieving these individually, this function will return the number of available images. <a href="#a54665a3517668fab312e7205de0b88ca"></a><br/></td></tr>
<tr class="separator:a54665a3517668fab312e7205de0b88ca"><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="a0a2febdc997f1d09c98f76fdaf85113d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an empty <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> object without an alpha channel. </p>
</div>
</div>
<a class="anchor" id="a21652c36c8e51bc696756afeaefe2d01"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </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">bool </td>
<td class="paramname"><em>clear</em> = <code>true</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image with the given size and clears it if requested. </p>
<p>Does not create an alpha channel.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">width</td><td>Specifies the width of the image. </td></tr>
<tr><td class="paramname">height</td><td>Specifies the height of the image. </td></tr>
<tr><td class="paramname">clear</td><td>If <span class="literal">true</span>, initialize the image to black. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae071c8cdd85a48655ba59a70aeced3d4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </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">bool </td>
<td class="paramname"><em>clear</em> = <code>true</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="a2c97634b43bdd143f34418fb1f98a690"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </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">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image from data in memory. </p>
<p>If <em>static_data</em> is <span class="literal">false</span> then the <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> will take ownership of the data and free it afterwards. For this, it has to be allocated with <em>malloc</em>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">width</td><td>Specifies the width of the image. </td></tr>
<tr><td class="paramname">height</td><td>Specifies the height of the image. </td></tr>
<tr><td class="paramname">data</td><td>A pointer to RGB data </td></tr>
<tr><td class="paramname">static_data</td><td>Indicates if the data should be free'd after use </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae4dfc16eddb74fca38a10809f56df264"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </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">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</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="abdb7e8a7ca45e63935cda55b45869a7a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </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">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>alpha</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image from data in memory. </p>
<p>If <em>static_data</em> is <span class="literal">false</span> then the <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> will take ownership of the data and free it afterwards. For this, it has to be allocated with <em>malloc</em>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">width</td><td>Specifies the width of the image. </td></tr>
<tr><td class="paramname">height</td><td>Specifies the height of the image. </td></tr>
<tr><td class="paramname">data</td><td>A pointer to RGB data </td></tr>
<tr><td class="paramname">alpha</td><td>A pointer to alpha-channel data </td></tr>
<tr><td class="paramname">static_data</td><td>Indicates if the data should be free'd after use </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad4d64f98e90c54902bfd9d445d23db29"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </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">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>alpha</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</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="a5ab9262fabb41525bc669c245654579b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </td>
<td>(</td>
<td class="paramtype">const char *const * </td>
<td class="paramname"><em>xpmData</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image from XPM data. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">xpmData</td><td>A pointer to XPM image data.</td></tr>
</table>
</dd>
</dl>
<p><b>wxPerl Note:</b> Not supported by wxPerl. </p>
</div>
</div>
<a class="anchor" id="a02233007383d193ab8e0f89cc1c92864"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </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><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a></code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em> = <code>-1</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image from a file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the file from which to load the image. </td></tr>
<tr><td class="paramname">type</td><td>May be one of the following: <ul>
<li>wxBITMAP_TYPE_BMP: Load a Windows bitmap file. </li>
<li>wxBITMAP_TYPE_GIF: Load a GIF bitmap file. </li>
<li>wxBITMAP_TYPE_JPEG: Load a JPEG bitmap file. </li>
<li>wxBITMAP_TYPE_PNG: Load a PNG bitmap file. </li>
<li>wxBITMAP_TYPE_PCX: Load a PCX bitmap file. </li>
<li>wxBITMAP_TYPE_PNM: Load a PNM bitmap file. </li>
<li>wxBITMAP_TYPE_TIFF: Load a TIFF bitmap file. </li>
<li>wxBITMAP_TYPE_TGA: Load a TGA bitmap file. </li>
<li>wxBITMAP_TYPE_XPM: Load a XPM bitmap file. </li>
<li>wxBITMAP_TYPE_ICO: Load a Windows icon file (ICO). </li>
<li>wxBITMAP_TYPE_CUR: Load a Windows cursor file (CUR). </li>
<li>wxBITMAP_TYPE_ANI: Load a Windows animated cursor file (ANI). </li>
<li>wxBITMAP_TYPE_ANY: Will try to autodetect the format. </li>
</ul>
</td></tr>
<tr><td class="paramname">index</td><td>Index of the image to load in the case that the image file contains multiple images. This is only used by GIF, ICO and TIFF handlers. The default value (-1) means "choose the default image" and is interpreted as the first image (index=0) by the GIF and TIFF handler and as the largest and most colourful one by the ICO handler.</td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>Depending on how wxWidgets has been configured and by which handlers have been loaded, not all formats may be available. Any handler other than BMP must be previously initialized with <a class="el" href="classwx_image.html#ab39fb3747dfb8c2d444eff9fe41fa205" title="Register an image handler.">wxImage::AddHandler</a> or wxInitAllImageHandlers.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>You can use <a class="el" href="classwx_image.html#af752636f2a2baecd5d33cd8e8501c044" title="Gets a user-defined integer-valued option.">GetOptionInt()</a> to get the hotspot when loading cursor files: <div class="fragment"><div class="line"><span class="keywordtype">int</span> hotspot_x = image.GetOptionInt(<a class="code" href="image_8h.html#a22847044c140504122efa4943b0f6e7f">wxIMAGE_OPTION_CUR_HOTSPOT_X</a>);</div>
<div class="line"><span class="keywordtype">int</span> hotspot_y = image.GetOptionInt(<a class="code" href="image_8h.html#a420ba1d2430b0c7d92c9a09ccf41fae8">wxIMAGE_OPTION_CUR_HOTSPOT_Y</a>);</div>
</div><!-- fragment --></dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a6ef7dc2eb9aaa9bf34437f7c12aad5f2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </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">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>mimetype</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em> = <code>-1</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image from a file using MIME-types to specify the type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the file from which to load the image. </td></tr>
<tr><td class="paramname">mimetype</td><td>MIME type string (for example 'image/jpeg') </td></tr>
<tr><td class="paramname">index</td><td>See description in <a class="el" href="classwx_image.html#a02233007383d193ab8e0f89cc1c92864" title="Creates an image from a file.">wxImage(const wxString&, wxBitmapType, int)</a> overload. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="add88cc57fe901b715c637e820342d91a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_input_stream.html">wxInputStream</a> & </td>
<td class="paramname"><em>stream</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><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a></code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em> = <code>-1</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image from a stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">stream</td><td>Opened input stream from which to load the image. Currently, the stream must support seeking. </td></tr>
<tr><td class="paramname">type</td><td>See description in <a class="el" href="classwx_image.html#a02233007383d193ab8e0f89cc1c92864" title="Creates an image from a file.">wxImage(const wxString&, wxBitmapType, int)</a> overload. </td></tr>
<tr><td class="paramname">index</td><td>See description in <a class="el" href="classwx_image.html#a02233007383d193ab8e0f89cc1c92864" title="Creates an image from a file.">wxImage(const wxString&, wxBitmapType, int)</a> overload. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af8df8e96a278f30954592c452b3c0806"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">wxImage::wxImage </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_input_stream.html">wxInputStream</a> & </td>
<td class="paramname"><em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>mimetype</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em> = <code>-1</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an image from a stream using MIME-types to specify the type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">stream</td><td>Opened input stream from which to load the image. Currently, the stream must support seeking. </td></tr>
<tr><td class="paramname">mimetype</td><td>MIME type string (for example 'image/jpeg') </td></tr>
<tr><td class="paramname">index</td><td>See description in <a class="el" href="classwx_image.html#a02233007383d193ab8e0f89cc1c92864" title="Creates an image from a file.">wxImage(const wxString&, wxBitmapType, int)</a> overload. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac20a9a1f46a1047f5947352afa9f2b09"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual wxImage::~wxImage </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">reference-counted object destruction</a> for more info. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab39fb3747dfb8c2d444eff9fe41fa205"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void wxImage::AddHandler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_image_handler.html">wxImageHandler</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>Register an image handler. </p>
<p>Typical example of use: </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>See <a class="el" href="classwx_image.html#image_handlers">Available image handlers</a> for a list of the available handlers. You can also use <a class="el" href="group__group__funcmacro__appinitterm.html#ga27f6c78d5d13374a28022b7bd44c6823" title="Initializes all available image handlers.">wxInitAllImageHandlers()</a> to add handlers for all the image formats supported by wxWidgets at once.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">handler</td><td>A heap-allocated handler object which will be deleted by <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> if it is removed later by <a class="el" href="classwx_image.html#a70ef86ff481bc18c0a32f5467a071e42" title="Finds the handler with the given name, and removes it.">RemoveHandler()</a> or at program shutdown. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5049d6166a019c182af55a94fb6e3307"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::Blur </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>blurRadius</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Blurs the image in both horizontal and vertical directions by the specified pixel <em>blurRadius</em>. </p>
<p>This should not be used when using a single mask colour for transparency.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a534300b66c2469720b1be4bd2a001822" title="Blurs the image in the horizontal direction only.">BlurHorizontal()</a>, <a class="el" href="classwx_image.html#a20d4d0dd605eb5757161be251e048847" title="Blurs the image in the vertical direction only.">BlurVertical()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a534300b66c2469720b1be4bd2a001822"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::BlurHorizontal </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>blurRadius</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Blurs the image in the horizontal direction only. </p>
<p>This should not be used when using a single mask colour for transparency.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a5049d6166a019c182af55a94fb6e3307" title="Blurs the image in both horizontal and vertical directions by the specified pixel blurRadius...">Blur()</a>, <a class="el" href="classwx_image.html#a20d4d0dd605eb5757161be251e048847" title="Blurs the image in the vertical direction only.">BlurVertical()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a20d4d0dd605eb5757161be251e048847"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::BlurVertical </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>blurRadius</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Blurs the image in the vertical direction only. </p>
<p>This should not be used when using a single mask colour for transparency.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a5049d6166a019c182af55a94fb6e3307" title="Blurs the image in both horizontal and vertical directions by the specified pixel blurRadius...">Blur()</a>, <a class="el" href="classwx_image.html#a534300b66c2469720b1be4bd2a001822" title="Blurs the image in the horizontal direction only.">BlurHorizontal()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a786fdfa44290867e1b1fd64bcd26aded"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static bool wxImage::CanRead </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>filename</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>Returns <span class="literal">true</span> if at least one of the available image handlers can read the file with the given name. </p>
<p>See <a class="el" href="classwx_image_handler.html#a7c886c9f2192699183e480066e386133" title="Returns true if this handler supports the image format contained in the given stream.">wxImageHandler::CanRead</a> for more info. </p>
</div>
</div>
<a class="anchor" id="aac069cba7821715661e03d9b6eeee98f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static bool wxImage::CanRead </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_input_stream.html">wxInputStream</a> & </td>
<td class="paramname"><em>stream</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>Returns <span class="literal">true</span> if at least one of the available image handlers can read the data in the given stream. </p>
<p>See <a class="el" href="classwx_image_handler.html#a7c886c9f2192699183e480066e386133" title="Returns true if this handler supports the image format contained in the given stream.">wxImageHandler::CanRead</a> for more info. </p>
</div>
</div>
<a class="anchor" id="aa50b222b999e7cd690f2a5be0e0e9cef"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void wxImage::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 image handlers. </p>
<p>This function is called by wxWidgets on exit. </p>
</div>
</div>
<a class="anchor" id="a2aa815c34284d6a85971e1ff8a2cc74c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::Clear </td>
<td>(</td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>value</em> = <code>0</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initialize the image data with zeroes (the default) or with the byte value given as <em>value</em>. </p>
<dl class="section since"><dt>Since</dt><dd>2.9.0 </dd></dl>
</div>
</div>
<a class="anchor" id="a1b82ae0550626a74c3ee97d9065628b1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::ClearAlpha </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes the alpha channel from the image. </p>
<p>This function should only be called if the image has alpha channel data, use <a class="el" href="classwx_image.html#abd42fd2c579837850ab5909ab2bf200c" title="Returns true if this image has alpha channel, false otherwise.">HasAlpha()</a> to check for this.</p>
<dl class="section since"><dt>Since</dt><dd>2.9.1 </dd></dl>
</div>
</div>
<a class="anchor" id="a7c9d557cd7ad577ed76e4337b1fd843a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned long wxImage::ComputeHistogram </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_image_histogram.html">wxImageHistogram</a> & </td>
<td class="paramname"><em>histogram</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the histogram of the image. </p>
<p><em>histogram</em> is a reference to <a class="el" href="classwx_image_histogram.html">wxImageHistogram</a> object. <a class="el" href="classwx_image_histogram.html">wxImageHistogram</a> is a specialization of <a class="el" href="classwx_hash_map.html" title="This is a simple, type-safe, and reasonably efficient hash map class, whose interface is a subset of ...">wxHashMap</a> "template" and is defined as follows:</p>
<div class="fragment"><div class="line"><span class="keyword">class </span>WXDLLEXPORT wxImageHistogramEntry</div>
<div class="line">{</div>
<div class="line"><span class="keyword">public</span>:</div>
<div class="line"> wxImageHistogramEntry() : index(0), value(0) {}</div>
<div class="line"> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> index;</div>
<div class="line"> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> value;</div>
<div class="line">};</div>
<div class="line"></div>
<div class="line">WX_DECLARE_EXPORTED_HASH_MAP(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>, wxImageHistogramEntry,</div>
<div class="line"> wxIntegerHash, wxIntegerEqual,</div>
<div class="line"> <a class="code" href="classwx_image_histogram.html">wxImageHistogram</a>);</div>
</div><!-- fragment --><dl class="section return"><dt>Returns</dt><dd>Returns number of colours in the histogram. </dd></dl>
</div>
</div>
<a class="anchor" id="a3951b3fc49b0ff7154b109d63533a31f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::ConvertAlphaToMask </td>
<td>(</td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>threshold</em> = <code><a class="el" href="image_8h.html#ab038b59ef0b8209ae59f38c9e26de410">wxIMAGE_ALPHA_THRESHOLD</a></code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>If the image has alpha channel, this method converts it to mask. </p>
<p>If the image has an alpha channel, all pixels with alpha value less than <em>threshold</em> are replaced with the mask colour and the alpha channel is removed. Otherwise nothing is done.</p>
<p>The mask colour is chosen automatically using <a class="el" href="classwx_image.html#adfd2a60833d72432a0a28b54ca83a2d0" title="Finds the first colour that is never used in the image.">FindFirstUnusedColour()</a> by this function, see the overload below if you this is not appropriate.</p>
<dl class="section return"><dt>Returns</dt><dd>Returns <span class="literal">true</span> on success, <span class="literal">false</span> on error. </dd></dl>
</div>
</div>
<a class="anchor" id="a73c3cd71be1f97da115689a0387d197c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::ConvertAlphaToMask </td>
<td>(</td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>mr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>mg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>mb</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>threshold</em> = <code><a class="el" href="image_8h.html#ab038b59ef0b8209ae59f38c9e26de410">wxIMAGE_ALPHA_THRESHOLD</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>If the image has alpha channel, this method converts it to mask using the specified colour as the mask colour. </p>
<p>If the image has an alpha channel, all pixels with alpha value less than <em>threshold</em> are replaced with the mask colour and the alpha channel is removed. Otherwise nothing is done.</p>
<dl class="section since"><dt>Since</dt><dd>2.9.0</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">mr</td><td>The red component of the mask colour. </td></tr>
<tr><td class="paramname">mg</td><td>The green component of the mask colour. </td></tr>
<tr><td class="paramname">mb</td><td>The blue component of the mask colour. </td></tr>
<tr><td class="paramname">threshold</td><td>Pixels with alpha channel values below the given threshold are considered to be transparent, i.e. the corresponding mask pixels are set. Pixels with the alpha values above the threshold are considered to be opaque.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns <span class="literal">true</span> on success, <span class="literal">false</span> on error. </dd></dl>
</div>
</div>
<a class="anchor" id="a5f5b9ac6ab0caa7b567a2fb3120f77db"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::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 image. </p>
<dl class="section since"><dt>Since</dt><dd>2.9.0 </dd></dl>
</div>
</div>
<a class="anchor" id="af1642edf492e25cddf76edd80db5e4fc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::ConvertToGreyscale </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>weight_r</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>weight_g</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>weight_b</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a greyscale version of the image. </p>
<p>The returned image uses the luminance component of the original to calculate the greyscale. Defaults to using the standard ITU-T BT.601 when converting to YUV, where every pixel equals (R * <em>weight_r</em>) + (G * <em>weight_g</em>) + (B * <em>weight_b</em>). </p>
</div>
</div>
<a class="anchor" id="a7541045f59badbacceb6224d0602300e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::ConvertToGreyscale </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a greyscale version of the image. </p>
<dl class="section since"><dt>Since</dt><dd>2.9.0 </dd></dl>
</div>
</div>
<a class="anchor" id="af9cebf3961f432b6c750463c52c9a96b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::ConvertToMono </td>
<td>(</td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>r</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>g</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>b</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns monochromatic version of the image. </p>
<p>The returned image has white colour where the original has <em></em>(r,g,b) colour and black colour everywhere else. </p>
</div>
</div>
<a class="anchor" id="ab3b39f306287a212ccbb3c1e69a0b451"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::Copy </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns an identical copy of this image. </p>
</div>
</div>
<a class="anchor" id="a07194d90bd6320255610a0a88a030a3e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::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">bool </td>
<td class="paramname"><em>clear</em> = <code>true</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a fresh image. </p>
<p>See <a class="el" href="classwx_image.html#a21652c36c8e51bc696756afeaefe2d01" title="Creates an image with the given size and clears it if requested.">wxImage::wxImage(int,int,bool)</a> for more info.</p>
<dl class="section return"><dt>Returns</dt><dd><span class="literal">true</span> if the call succeeded, <span class="literal">false</span> otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="a37e70a8f9c684974c9c54f43f5e60a3f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::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">bool </td>
<td class="paramname"><em>clear</em> = <code>true</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="a63801a380397cdcf465cab68f313c9a6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::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">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a fresh image. </p>
<p>See <a class="el" href="classwx_image.html#a2c97634b43bdd143f34418fb1f98a690" title="Creates an image from data in memory.">wxImage::wxImage(int,int,unsigned char*,bool)</a> for more info.</p>
<dl class="section return"><dt>Returns</dt><dd><span class="literal">true</span> if the call succeeded, <span class="literal">false</span> otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="a717414a9d74dc882359857050bb4bdc3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::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">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</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="aa395d661de4f3b98c6e92a767d97bb66"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::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">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>alpha</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a fresh image. </p>
<p>See <a class="el" href="classwx_image.html#abdb7e8a7ca45e63935cda55b45869a7a" title="Creates an image from data in memory.">wxImage::wxImage(int,int,unsigned char*,unsigned char*,bool)</a> for more info.</p>
<dl class="section return"><dt>Returns</dt><dd><span class="literal">true</span> if the call succeeded, <span class="literal">false</span> otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="aae3a6d125108f6fb93188d8c3c4990b9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::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">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>alpha</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</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="ac64c3524a054db164b811c380db65f97"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::Destroy </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroys the image data. </p>
</div>
</div>
<a class="anchor" id="adfd2a60833d72432a0a28b54ca83a2d0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::FindFirstUnusedColour </td>
<td>(</td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>r</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>g</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>b</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>startR</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>startG</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>startB</em> = <code>0</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Finds the first colour that is never used in the image. </p>
<p>The search begins at given initial colour and continues by increasing R, G and B components (in this order) by 1 until an unused colour is found or the colour space exhausted.</p>
<p>The parameters <em>r</em>, <em>g</em>, <em>b</em> are pointers to variables to save the colour.</p>
<p>The parameters <em>startR</em>, <em>startG</em>, <em>startB</em> define the initial values of the colour. The returned colour will have RGB values equal to or greater than these.</p>
<dl class="section return"><dt>Returns</dt><dd>Returns <span class="literal">false</span> if there is no unused colour left, <span class="literal">true</span> on success.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>This method involves computing the histogram, which is a computationally intensive operation. </dd></dl>
</div>
</div>
<a class="anchor" id="abb0458fbb84d41af925f3d2c59d1adde"></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_image_handler.html">wxImageHandler</a>* wxImage::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 name. </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>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_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a2bd74e0e2e3ba7980e09cf14fca86a7c"></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_image_handler.html">wxImageHandler</a>* wxImage::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>imageType</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 extension and type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">extension</td><td>The file extension, such as "bmp". </td></tr>
<tr><td class="paramname">imageType</td><td>The image type; one of the <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5" title="Bitmap type flags.">wxBitmapType</a> values.</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_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ae7b426b2352950992181c0760425e5e4"></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_image_handler.html">wxImageHandler</a>* wxImage::FindHandler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> </td>
<td class="paramname"><em>imageType</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 image type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">imageType</td><td>The image type; one of the <a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5" title="Bitmap type flags.">wxBitmapType</a> values.</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_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a5e3f7cb7089c70f91e977fa2fa896b52"></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_image_handler.html">wxImageHandler</a>* wxImage::FindHandlerMime </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>mimetype</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 MIME type. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">mimetype</td><td>MIME type.</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_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a8e68eb081e49f51cc0410431385f9be9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char* wxImage::GetAlpha </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns pointer to the array storing the alpha values for this image. </p>
<p>This pointer is <span class="literal">NULL</span> for the images without the alpha channel. If the image does have it, this pointer may be used to directly manipulate the alpha values which are stored as the RGB ones. </p>
</div>
</div>
<a class="anchor" id="a406fe67d895c815386bfd2c697a1a667"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char wxImage::GetAlpha </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return alpha value at given pixel location. </p>
</div>
</div>
<a class="anchor" id="a19bf61cbc4d66512f3244149886f2e9f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char wxImage::GetBlue </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the blue intensity at the given coordinate. </p>
</div>
</div>
<a class="anchor" id="a5cac38e8fd2536852406d9c8daa55023"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char* wxImage::GetData </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the image data as an array. </p>
<p>This is most often used when doing direct image manipulation. The return value points to an array of characters in RGBRGBRGB... format in the top-to-bottom, left-to-right order, that is the first RGB triplet corresponds to the first pixel of the first row, the second one — to the second pixel of the first row and so on until the end of the first row, with second row following after it and so on.</p>
<p>You should not delete the returned pointer nor pass it to <a class="el" href="classwx_image.html#a736a8fc26d32e5eab70682b115bacacf" title="Sets the image data without performing checks.">SetData()</a>. </p>
</div>
</div>
<a class="anchor" id="a43533994a507cd8f419759cddeef8df2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char wxImage::GetGreen </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the green intensity at the given coordinate. </p>
</div>
</div>
<a class="anchor" id="a4c3a141a4d1e953e7e64e4c9477a76fb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static wxList& wxImage::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 image format handlers. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a73d10c7d8ea36dc5421f2713ce1d9e48"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int wxImage::GetHeight </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the height of the image in pixels. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#abd2c9f02c948813eb23ae45481977995" title="Gets the width of the image in pixels.">GetWidth()</a>, <a class="el" href="classwx_image.html#aae7bbee7b8b53302e3656b93bba217cd" title="Returns the size of the image in pixels.">GetSize()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="abea8ef407ac0c0cf829ea8a3c9e101ee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int wxImage::GetImageCount </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>filename</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><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</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">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If the image file contains more than one image and the image handler is capable of retrieving these individually, this function will return the number of available images. </p>
<p>For the overload taking the parameter <em>filename</em>, that's the name of the file to query. For the overload taking the parameter <em>stream</em>, that's the opened input stream with image data.</p>
<p>See <a class="el" href="classwx_image_handler.html#a06a38c24bf48bff1745f042c3b1cd16b" title="If the image file contains more than one image and the image handler is capable of retrieving these i...">wxImageHandler::GetImageCount()</a> for more info.</p>
<p>The parameter <em>type</em> may be one of the following values: </p>
<ul>
<li>wxBITMAP_TYPE_BMP: Load a Windows bitmap file. </li>
<li>wxBITMAP_TYPE_GIF: Load a GIF bitmap file. </li>
<li>wxBITMAP_TYPE_JPEG: Load a JPEG bitmap file. </li>
<li>wxBITMAP_TYPE_PNG: Load a PNG bitmap file. </li>
<li>wxBITMAP_TYPE_PCX: Load a PCX bitmap file. </li>
<li>wxBITMAP_TYPE_PNM: Load a PNM bitmap file. </li>
<li>wxBITMAP_TYPE_TIFF: Load a TIFF bitmap file. </li>
<li>wxBITMAP_TYPE_TGA: Load a TGA bitmap file. </li>
<li>wxBITMAP_TYPE_XPM: Load a XPM bitmap file. </li>
<li>wxBITMAP_TYPE_ICO: Load a Windows icon file (ICO). </li>
<li>wxBITMAP_TYPE_CUR: Load a Windows cursor file (CUR). </li>
<li>wxBITMAP_TYPE_ANI: Load a Windows animated cursor file (ANI). </li>
<li>wxBITMAP_TYPE_ANY: Will try to autodetect the format.</li>
</ul>
<dl class="section return"><dt>Returns</dt><dd>Number of available images. For most image handlers, this is 1 (exceptions are TIFF and ICO formats as well as animated GIFs for which this function returns the number of frames in the animation). </dd></dl>
</div>
</div>
<a class="anchor" id="a54665a3517668fab312e7205de0b88ca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static int wxImage::GetImageCount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_input_stream.html">wxInputStream</a> & </td>
<td class="paramname"><em>stream</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><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</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">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If the image file contains more than one image and the image handler is capable of retrieving these individually, this function will return the number of available images. </p>
<p>For the overload taking the parameter <em>filename</em>, that's the name of the file to query. For the overload taking the parameter <em>stream</em>, that's the opened input stream with image data.</p>
<p>See <a class="el" href="classwx_image_handler.html#a06a38c24bf48bff1745f042c3b1cd16b" title="If the image file contains more than one image and the image handler is capable of retrieving these i...">wxImageHandler::GetImageCount()</a> for more info.</p>
<p>The parameter <em>type</em> may be one of the following values: </p>
<ul>
<li>wxBITMAP_TYPE_BMP: Load a Windows bitmap file. </li>
<li>wxBITMAP_TYPE_GIF: Load a GIF bitmap file. </li>
<li>wxBITMAP_TYPE_JPEG: Load a JPEG bitmap file. </li>
<li>wxBITMAP_TYPE_PNG: Load a PNG bitmap file. </li>
<li>wxBITMAP_TYPE_PCX: Load a PCX bitmap file. </li>
<li>wxBITMAP_TYPE_PNM: Load a PNM bitmap file. </li>
<li>wxBITMAP_TYPE_TIFF: Load a TIFF bitmap file. </li>
<li>wxBITMAP_TYPE_TGA: Load a TGA bitmap file. </li>
<li>wxBITMAP_TYPE_XPM: Load a XPM bitmap file. </li>
<li>wxBITMAP_TYPE_ICO: Load a Windows icon file (ICO). </li>
<li>wxBITMAP_TYPE_CUR: Load a Windows cursor file (CUR). </li>
<li>wxBITMAP_TYPE_ANI: Load a Windows animated cursor file (ANI). </li>
<li>wxBITMAP_TYPE_ANY: Will try to autodetect the format.</li>
</ul>
<dl class="section return"><dt>Returns</dt><dd>Number of available images. For most image handlers, this is 1 (exceptions are TIFF and ICO formats as well as animated GIFs for which this function returns the number of frames in the animation). </dd></dl>
</div>
</div>
<a class="anchor" id="a0ed7bd5c0eba03553b6533e2f79e0ff1"></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_string.html">wxString</a> wxImage::GetImageExtWildcard </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>Iterates all registered <a class="el" href="classwx_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> objects, and returns a string containing file extension masks suitable for passing to file open/save dialog boxes. </p>
<dl class="section return"><dt>Returns</dt><dd>The format of the returned string is <code>"(*.ext1;*.ext2)|*.ext1;*.ext2"</code>. It is usually a good idea to prepend a description before passing the result to the dialog. Example: <div class="fragment"><div class="line"><a class="code" href="classwx_file_dialog.html" title="This class represents the file chooser dialog.">wxFileDialog</a> FileDlg( <span class="keyword">this</span>, <span class="stringliteral">"Choose Image"</span>, ::<a class="code" href="group__group__funcmacro__file.html#gab0cc6ceca11d23f61cba353c01eeac06" title="Returns a string containing the current (or working) directory.">wxGetCwd</a>(), <span class="stringliteral">""</span>,</div>
<div class="line"> <a class="code" href="group__group__funcmacro__string.html#ga8a02b8875a521df57263a9e6f090f2d0" title="Macro to be used around all literal strings that should be translated.">_</a>(<span class="stringliteral">"Image Files "</span>) + <a class="code" href="classwx_image.html#a0ed7bd5c0eba03553b6533e2f79e0ff1" title="Iterates all registered wxImageHandler objects, and returns a string containing file extension masks ...">wxImage::GetImageExtWildcard</a>(),</div>
<div class="line"> <a class="code" href="filedlg_8h.html#a80155586fa275b28773c9b203f52cabaa66a0a1b2dc1cea202030df12462a1026">wxFD_OPEN</a> );</div>
</div><!-- fragment --></dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ad5f1fc61f1343633ba80f3402f19956c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char wxImage::GetMaskBlue </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the blue value of the mask colour. </p>
</div>
</div>
<a class="anchor" id="acf6994b3c2706193ee910c3836e6b0ec"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char wxImage::GetMaskGreen </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the green value of the mask colour. </p>
</div>
</div>
<a class="anchor" id="aa9c4b367f98baac91c77f863351f7c26"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char wxImage::GetMaskRed </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the red value of the mask colour. </p>
</div>
</div>
<a class="anchor" id="af006480a04b88e20033bab1615e05de4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_string.html">wxString</a> wxImage::GetOption </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> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets a user-defined string-valued option. </p>
<p>Generic options: </p>
<ul>
<li><code>wxIMAGE_OPTION_FILENAME:</code> The name of the file from which the image was loaded.</li>
</ul>
<p>Options specific to wxGIFHandler: </p>
<ul>
<li><code>wxIMAGE_OPTION_GIF_COMMENT:</code> The comment text that is read from or written to the GIF file. In an animated GIF each frame can have its own comment. If there is only a comment in the first frame of a GIF it will not be repeated in other frames.</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The name of the option, case-insensitive. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value of the option or an empty string if not found. Use <a class="el" href="classwx_image.html#a868ae81f470e1bef6ca81dd985078782" title="Returns true if the given option is present.">HasOption()</a> if an empty string can be a valid option value.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a952ee065b17ee07a8cbee568486e01a4" title="Sets a user-defined option.">SetOption()</a>, <a class="el" href="classwx_image.html#af752636f2a2baecd5d33cd8e8501c044" title="Gets a user-defined integer-valued option.">GetOptionInt()</a>, <a class="el" href="classwx_image.html#a868ae81f470e1bef6ca81dd985078782" title="Returns true if the given option is present.">HasOption()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="af752636f2a2baecd5d33cd8e8501c044"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int wxImage::GetOptionInt </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> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets a user-defined integer-valued option. </p>
<p>The function is case-insensitive to <em>name</em>. If the given option is not present, the function returns 0. Use <a class="el" href="classwx_image.html#a868ae81f470e1bef6ca81dd985078782" title="Returns true if the given option is present.">HasOption()</a> if 0 is a possibly valid value for the option.</p>
<p>Generic options: </p>
<ul>
<li><code>wxIMAGE_OPTION_MAX_WIDTH</code> and <code>wxIMAGE_OPTION_MAX_HEIGHT:</code> If either of these options is specified, the loaded image will be scaled down (preserving its aspect ratio) so that its width is less than the max width given if it is not 0 <em>and</em> its height is less than the max height given if it is not 0. This is typically used for loading thumbnails and the advantage of using these options compared to calling <a class="el" href="classwx_image.html#a35227071eb0de3c0c035324838071001" title="Changes the size of the image in-place by scaling it: after a call to this function,the image will have the given width and height.">Rescale()</a> after loading is that some handlers (only JPEG one right now) support rescaling the image during loading which is vastly more efficient than loading the entire huge image and rescaling it later (if these options are not supported by the handler, this is still what happens however). These options must be set before calling <a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile()</a> to have any effect.</li>
</ul>
<ul>
<li><code>wxIMAGE_OPTION_ORIGINAL_WIDTH</code> and <code>wxIMAGE_OPTION_ORIGINAL_HEIGHT:</code> These options will return the original size of the image if either <code>wxIMAGE_OPTION_MAX_WIDTH</code> or <code>wxIMAGE_OPTION_MAX_HEIGHT</code> is specified. <dl class="section since"><dt>Since</dt><dd>2.9.3</dd></dl>
</li>
<li><code>wxIMAGE_OPTION_QUALITY:</code> JPEG quality used when saving. This is an integer in 0..100 range with 0 meaning very poor and 100 excellent (but very badly compressed). This option is currently ignored for the other formats.</li>
</ul>
<ul>
<li><code>wxIMAGE_OPTION_RESOLUTIONUNIT:</code> The value of this option determines whether the resolution of the image is specified in centimetres or inches, see wxImageResolution enum elements.</li>
</ul>
<ul>
<li><code>wxIMAGE_OPTION_RESOLUTION</code>, <code>wxIMAGE_OPTION_RESOLUTIONX</code> and <code>wxIMAGE_OPTION_RESOLUTIONY:</code> These options define the resolution of the image in the units corresponding to <code>wxIMAGE_OPTION_RESOLUTIONUNIT</code> options value. The first option can be set before saving the image to set both horizontal and vertical resolution to the same value. The X and Y options are set by the image handlers if they support the image resolution (currently BMP, JPEG and TIFF handlers do) and the image provides the resolution information and can be queried after loading the image.</li>
</ul>
<p>Options specific to wxPNGHandler: </p>
<ul>
<li><code>wxIMAGE_OPTION_PNG_FORMAT:</code> Format for saving a PNG file, see wxImagePNGType for the supported values. </li>
<li><code>wxIMAGE_OPTION_PNG_BITDEPTH:</code> Bit depth for every channel (R/G/B/A). </li>
<li><code>wxIMAGE_OPTION_PNG_FILTER:</code> Filter for saving a PNG file, see libpng (<a href="http://www.libpng.org/pub/png/libpng-1.2.5-manual.html">http://www.libpng.org/pub/png/libpng-1.2.5-manual.html</a>) for possible values (e.g. PNG_FILTER_NONE, PNG_FILTER_SUB, PNG_FILTER_UP, etc). </li>
<li><code>wxIMAGE_OPTION_PNG_COMPRESSION_LEVEL:</code> Compression level (0..9) for saving a PNG file. An high value creates smaller-but-slower PNG file. Note that unlike other formats (e.g. JPEG) the PNG format is always lossless and thus this compression level doesn't tradeoff the image quality. </li>
<li><code>wxIMAGE_OPTION_PNG_COMPRESSION_MEM_LEVEL:</code> Compression memory usage level (1..9) for saving a PNG file. An high value means the saving process consumes more memory, but may create smaller PNG file. </li>
<li><code>wxIMAGE_OPTION_PNG_COMPRESSION_STRATEGY:</code> Possible values are 0 for default strategy, 1 for filter, and 2 for Huffman-only. You can use OptiPNG (<a href="http://optipng.sourceforge.net/">http://optipng.sourceforge.net/</a>) to get a suitable value for your application. </li>
<li><code>wxIMAGE_OPTION_PNG_COMPRESSION_BUFFER_SIZE:</code> Internal buffer size (in bytes) for saving a PNG file. Ideally this should be as big as the resulting PNG file. Use this option if your application produces images with small size variation.</li>
</ul>
<p>Options specific to wxTIFFHandler: </p>
<ul>
<li><code>wxIMAGE_OPTION_TIFF_BITSPERSAMPLE:</code> Number of bits per sample (channel). Currently values of 1 and 8 are supported. A value of 1 results in a black and white image. A value of 8 (the default) can mean greyscale or RGB, depending on the value of <code>wxIMAGE_OPTION_TIFF_SAMPLESPERPIXEL</code>. </li>
<li><code>wxIMAGE_OPTION_TIFF_SAMPLESPERPIXEL:</code> Number of samples (channels) per pixel. Currently values of 1 and 3 are supported. A value of 1 results in either a greyscale (by default) or black and white image, depending on the value of <code>wxIMAGE_OPTION_TIFF_BITSPERSAMPLE</code>. A value of 3 (the default) will result in an RGB image. </li>
<li><code>wxIMAGE_OPTION_TIFF_COMPRESSION:</code> Compression type. By default it is set to 1 (COMPRESSION_NONE). Typical other values are 5 (COMPRESSION_LZW) and 7 (COMPRESSION_JPEG). See tiff.h for more options. </li>
<li><code>wxIMAGE_OPTION_TIFF_PHOTOMETRIC:</code> Specifies the photometric interpretation. By default it is set to 2 (PHOTOMETRIC_RGB) for RGB images and 0 (PHOTOMETRIC_MINISWHITE) for greyscale or black and white images. It can also be set to 1 (PHOTOMETRIC_MINISBLACK) to treat the lowest value as black and highest as white. If you want a greyscale image it is also sufficient to only specify <code>wxIMAGE_OPTION_TIFF_PHOTOMETRIC</code> and set it to either PHOTOMETRIC_MINISWHITE or PHOTOMETRIC_MINISBLACK. The other values are taken care of.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>Be careful when combining the options <code>wxIMAGE_OPTION_TIFF_SAMPLESPERPIXEL</code>, <code>wxIMAGE_OPTION_TIFF_BITSPERSAMPLE</code>, and <code>wxIMAGE_OPTION_TIFF_PHOTOMETRIC</code>. While some measures are taken to prevent illegal combinations and/or values, it is still easy to abuse them and come up with invalid results in the form of either corrupted images or crashes.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The name of the option, case-insensitive. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value of the option or 0 if not found. Use <a class="el" href="classwx_image.html#a868ae81f470e1bef6ca81dd985078782" title="Returns true if the given option is present.">HasOption()</a> if 0 can be a valid option value.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a952ee065b17ee07a8cbee568486e01a4" title="Sets a user-defined option.">SetOption()</a>, <a class="el" href="classwx_image.html#af006480a04b88e20033bab1615e05de4" title="Gets a user-defined string-valued option.">GetOption()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a8262377d07012664242529bca77f91ab"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::GetOrFindMaskColour </td>
<td>(</td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>r</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>g</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>b</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the current mask colour or find a suitable unused colour that could be used as a mask colour. </p>
<p>Returns <span class="literal">true</span> if the image currently has a mask. </p>
</div>
</div>
<a class="anchor" id="a055f1cd8ae68ae83204ecc3b0fff0f57"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classwx_palette.html">wxPalette</a>& wxImage::GetPalette </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the palette associated with the image. </p>
<p>Currently the palette is only used when converting to <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> under Windows.</p>
<p>Some of the <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> handlers have been modified to set the palette if one exists in the image file (usually 256 or less colour images in GIF or PNG format). </p>
</div>
</div>
<a class="anchor" id="ade7e4b89f960bffbc09a88863145397a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">unsigned char wxImage::GetRed </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the red intensity at the given coordinate. </p>
</div>
</div>
<a class="anchor" id="aae7bbee7b8b53302e3656b93bba217cd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_size.html">wxSize</a> wxImage::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 image 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_image.html#a73d10c7d8ea36dc5421f2713ce1d9e48" title="Gets the height of the image in pixels.">GetHeight()</a>, <a class="el" href="classwx_image.html#abd2c9f02c948813eb23ae45481977995" title="Gets the width of the image in pixels.">GetWidth()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a54967a3c86a41b62712dfa16fffa8cda"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::GetSubImage </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>
</div><div class="memdoc">
<p>Returns a sub image of the current one as long as the rect belongs entirely to the image. </p>
</div>
</div>
<a class="anchor" id="ac711680e14facac5476a4a2946b7dc42"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> wxImage::GetType </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the type of image found by <a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile()</a> or specified with <a class="el" href="classwx_image.html#adbdd72be525d71ebb3fe01a5de02607c" title="Saves an image in the given stream.">SaveFile()</a>. </p>
<dl class="section since"><dt>Since</dt><dd>2.9.0 </dd></dl>
</div>
</div>
<a class="anchor" id="abd2c9f02c948813eb23ae45481977995"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int wxImage::GetWidth </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the width of the image in pixels. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a73d10c7d8ea36dc5421f2713ce1d9e48" title="Gets the height of the image in pixels.">GetHeight()</a>, <a class="el" href="classwx_image.html#aae7bbee7b8b53302e3656b93bba217cd" title="Returns the size of the image in pixels.">GetSize()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="abd42fd2c579837850ab5909ab2bf200c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::HasAlpha </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <span class="literal">true</span> if this image has alpha channel, <span class="literal">false</span> otherwise. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a8e68eb081e49f51cc0410431385f9be9" title="Returns pointer to the array storing the alpha values for this image.">GetAlpha()</a>, <a class="el" href="classwx_image.html#ab46f59f69221258da1397fd7c59e8671" title="This function is similar to SetData() and has similar restrictions.">SetAlpha()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a6b5285194b6416122381cf8b824a156d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::HasMask </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <span class="literal">true</span> if there is a mask active, <span class="literal">false</span> otherwise. </p>
</div>
</div>
<a class="anchor" id="a868ae81f470e1bef6ca81dd985078782"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::HasOption </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> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <span class="literal">true</span> if the given option is present. </p>
<p>The function is case-insensitive to <em>name</em>.</p>
<p>The lists of the currently supported options are in <a class="el" href="classwx_image.html#af006480a04b88e20033bab1615e05de4" title="Gets a user-defined string-valued option.">GetOption()</a> and <a class="el" href="classwx_image.html#af752636f2a2baecd5d33cd8e8501c044" title="Gets a user-defined integer-valued option.">GetOptionInt()</a> function docs.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a952ee065b17ee07a8cbee568486e01a4" title="Sets a user-defined option.">SetOption()</a>, <a class="el" href="classwx_image.html#af006480a04b88e20033bab1615e05de4" title="Gets a user-defined string-valued option.">GetOption()</a>, <a class="el" href="classwx_image.html#af752636f2a2baecd5d33cd8e8501c044" title="Gets a user-defined integer-valued option.">GetOptionInt()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="aa72cf0a75c1e517f69787e1984717017"></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_image_1_1_r_g_b_value.html">wxImage::RGBValue</a> wxImage::HSVtoRGB </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_image_1_1_h_s_v_value.html">wxImage::HSVValue</a> & </td>
<td class="paramname"><em>hsv</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>Converts a color in HSV color space to RGB color space. </p>
</div>
</div>
<a class="anchor" id="ac941b6b80262b968b575ab1b215e687b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::InitAlpha </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Initializes the image alpha channel data. </p>
<p>It is an error to call it if the image already has alpha data. If it doesn't, alpha data will be by default initialized to all pixels being fully opaque. But if the image has a mask colour, all mask pixels will be completely transparent. </p>
</div>
</div>
<a class="anchor" id="ab2f032e0b7766dc69d4f092f4a55fd60"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void wxImage::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>Internal use only. </p>
<p>Adds standard image format handlers. It only install wxBMPHandler for the time being, which is used by <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>.</p>
<p>This function is called by wxWidgets on startup, and shouldn't be called by the user.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a>, <a class="el" href="group__group__funcmacro__appinitterm.html#ga27f6c78d5d13374a28022b7bd44c6823" title="Initializes all available image handlers.">wxInitAllImageHandlers()</a>, <a class="el" href="classwx_quantize.html" title="Performs quantization, or colour reduction, on a wxImage.">wxQuantize</a> </dd></dl>
</div>
</div>
<a class="anchor" id="adcecda55890d6e9e3c827751a9ec42b0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void wxImage::InsertHandler </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_image_handler.html">wxImageHandler</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 image 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_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ab426714385b517d9367f7595e95714e0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::IsOk </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <span class="literal">true</span> if image data is present. </p>
</div>
</div>
<a class="anchor" id="adbe6a22287f6bbbfc5dae4514ca62385"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::IsTransparent </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>threshold</em> = <code><a class="el" href="image_8h.html#ab038b59ef0b8209ae59f38c9e26de410">wxIMAGE_ALPHA_THRESHOLD</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <span class="literal">true</span> if the given pixel is transparent, i.e. either has the mask colour if this image has a mask or if this image has alpha channel and alpha value of this pixel is strictly less than <em>threshold</em>. </p>
</div>
</div>
<a class="anchor" id="aa249e657259fe6518d68a5208b9043d0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::LoadFile </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_input_stream.html">wxInputStream</a> & </td>
<td class="paramname"><em>stream</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><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a></code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em> = <code>-1</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 an image from an input stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">stream</td><td>Opened input stream from which to load the image. Currently, the stream must support seeking. </td></tr>
<tr><td class="paramname">type</td><td>May be one of the following: <ul>
<li>wxBITMAP_TYPE_BMP: Load a Windows bitmap file. </li>
<li>wxBITMAP_TYPE_GIF: Load a GIF bitmap file. </li>
<li>wxBITMAP_TYPE_JPEG: Load a JPEG bitmap file. </li>
<li>wxBITMAP_TYPE_PNG: Load a PNG bitmap file. </li>
<li>wxBITMAP_TYPE_PCX: Load a PCX bitmap file. </li>
<li>wxBITMAP_TYPE_PNM: Load a PNM bitmap file. </li>
<li>wxBITMAP_TYPE_TIFF: Load a TIFF bitmap file. </li>
<li>wxBITMAP_TYPE_TGA: Load a TGA bitmap file. </li>
<li>wxBITMAP_TYPE_XPM: Load a XPM bitmap file. </li>
<li>wxBITMAP_TYPE_ICO: Load a Windows icon file (ICO). </li>
<li>wxBITMAP_TYPE_CUR: Load a Windows cursor file (CUR). </li>
<li>wxBITMAP_TYPE_ANI: Load a Windows animated cursor file (ANI). </li>
<li>wxBITMAP_TYPE_ANY: Will try to autodetect the format. </li>
</ul>
</td></tr>
<tr><td class="paramname">index</td><td>Index of the image to load in the case that the image file contains multiple images. This is only used by GIF, ICO and TIFF handlers. The default value (-1) means "choose the default image" and is interpreted as the first image (index=0) by the GIF and TIFF handler and as the largest and most colourful one by the ICO handler.</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. If the optional index parameter is out of range, <span class="literal">false</span> is returned and a call to <a class="el" href="group__group__funcmacro__log.html#ga0dd3c633f990f794e76065c9a7af4c87" title="The functions to use for error messages, i.e.">wxLogError()</a> takes place.</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 note"><dt>Note</dt><dd>You can use <a class="el" href="classwx_image.html#af752636f2a2baecd5d33cd8e8501c044" title="Gets a user-defined integer-valued option.">GetOptionInt()</a> to get the hotspot when loading cursor files: <div class="fragment"><div class="line"><span class="keywordtype">int</span> hotspot_x = image.GetOptionInt(<a class="code" href="image_8h.html#a22847044c140504122efa4943b0f6e7f">wxIMAGE_OPTION_CUR_HOTSPOT_X</a>);</div>
<div class="line"><span class="keywordtype">int</span> hotspot_y = image.GetOptionInt(<a class="code" href="image_8h.html#a420ba1d2430b0c7d92c9a09ccf41fae8">wxIMAGE_OPTION_CUR_HOTSPOT_Y</a>);</div>
</div><!-- fragment --></dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#adbdd72be525d71ebb3fe01a5de02607c" title="Saves an image in the given stream.">SaveFile()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a2f514d576c0c086249cd39edac0c1bd6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::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><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5a4a98d7f5c49774d498c53ad4a8923fcc">wxBITMAP_TYPE_ANY</a></code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em> = <code>-1</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 an image from a file. </p>
<p>If no handler type is provided, the library will try to autodetect the format.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the file from which to load the image. </td></tr>
<tr><td class="paramname">type</td><td>See the description in the <a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile(wxInputStream&, wxBitmapType, int)</a> overload. </td></tr>
<tr><td class="paramname">index</td><td>See the description in the <a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile(wxInputStream&, wxBitmapType, int)</a> overload. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5261b155bbc93ed1719462d80ce699be"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::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">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>mimetype</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em> = <code>-1</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 an image from a file. </p>
<p>If no handler type is provided, the library will try to autodetect the format.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the file from which to load the image. </td></tr>
<tr><td class="paramname">mimetype</td><td>MIME type string (for example 'image/jpeg') </td></tr>
<tr><td class="paramname">index</td><td>See the description in the <a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile(wxInputStream&, wxBitmapType, int)</a> overload. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a318ae843ecc2e10fdc460865dff49a99"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::LoadFile </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_input_stream.html">wxInputStream</a> & </td>
<td class="paramname"><em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>mimetype</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</em> = <code>-1</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 an image from an input stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">stream</td><td>Opened input stream from which to load the image. Currently, the stream must support seeking. </td></tr>
<tr><td class="paramname">mimetype</td><td>MIME type string (for example 'image/jpeg') </td></tr>
<tr><td class="paramname">index</td><td>See the description in the <a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile(wxInputStream&, wxBitmapType, int)</a> overload. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="abe3a18acec23fc0afbae68c5ec3f446f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::Mirror </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>horizontally</em> = <code>true</code></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a mirrored copy of the image. </p>
<p>The parameter <em>horizontally</em> indicates the orientation. </p>
</div>
</div>
<a class="anchor" id="a4be78fed2c5a82d53114d77aad916371"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a>& wxImage::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_image.html">wxImage</a> & </td>
<td class="paramname"><em>image</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Assignment operator, using <a class="el" href="overview_refcount.html">reference counting</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">image</td><td>Image to assign.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 'this' object. </dd></dl>
</div>
</div>
<a class="anchor" id="adb034510c331ea2fd26843e4d47b8629"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::Paste </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_image.html">wxImage</a> & </td>
<td class="paramname"><em>image</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy the data of the given <em>image</em> to the specified position in this image. </p>
</div>
</div>
<a class="anchor" id="a70ef86ff481bc18c0a32f5467a071e42"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static bool wxImage::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 also 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_image_handler.html" title="This is the base class for implementing image file loading/saving, and image creation from data...">wxImageHandler</a> </dd></dl>
</div>
</div>
<a class="anchor" id="aec8466530f4aea8e2cea8cb24bfb74fb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::Replace </td>
<td>(</td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>r1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>g1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>b1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>r2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>g2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>b2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Replaces the colour specified by <em>r1</em>,g1,b1 by the colour <em>r2</em>,g2,b2. </p>
</div>
</div>
<a class="anchor" id="a35227071eb0de3c0c035324838071001"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a>& wxImage::Rescale </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"><a class="el" href="image_8h.html#a8cb59f5925c96a706710106f679d171a">wxImageResizeQuality</a> </td>
<td class="paramname"><em>quality</em> = <code><a class="el" href="image_8h.html#a8cb59f5925c96a706710106f679d171aacfa5fa2a8feb97568b19f5784d6ac5e3">wxIMAGE_QUALITY_NORMAL</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the size of the image in-place by scaling it: after a call to this function,the image will have the given width and height. </p>
<p>For a description of the <em>quality</em> parameter, see the <a class="el" href="classwx_image.html#aaf10a9f0a8284a9ccfe988d0a470d4e9" title="Returns a scaled version of the image.">Scale()</a> function. Returns the (modified) image itself.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#aaf10a9f0a8284a9ccfe988d0a470d4e9" title="Returns a scaled version of the image.">Scale()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ac4dd8e967436c3206dfe4460345af794"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a>& wxImage::Resize </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_size.html">wxSize</a> & </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwx_point.html">wxPoint</a> & </td>
<td class="paramname"><em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>red</em> = <code>-1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>green</em> = <code>-1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>blue</em> = <code>-1</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the size of the image in-place without scaling it by adding either a border with the given colour or cropping as necessary. </p>
<p>The image is pasted into a new image with the given <em>size</em> and background colour at the position <em>pos</em> relative to the upper left of the new image.</p>
<p>If <em>red</em> = green = blue = -1 then use either the current mask colour if set or find, use, and set a suitable mask colour for any newly exposed areas.</p>
<dl class="section return"><dt>Returns</dt><dd>The (modified) image itself.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a8c3ef171a27cdb93a315eb78cf7b0377" title="Returns a resized version of this image without scaling it by adding either a border with the given c...">Size()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a28041e34c4dccaf9cba3fff358121b83"></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_image_1_1_h_s_v_value.html">wxImage::HSVValue</a> wxImage::RGBtoHSV </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_image_1_1_r_g_b_value.html">wxImage::RGBValue</a> & </td>
<td class="paramname"><em>rgb</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>Converts a color in RGB color space to HSV color space. </p>
</div>
</div>
<a class="anchor" id="a17daea3936f98c3b25204ab2b938a55a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::Rotate </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>angle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwx_point.html">wxPoint</a> & </td>
<td class="paramname"><em>rotationCentre</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>interpolating</em> = <code>true</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classwx_point.html">wxPoint</a> * </td>
<td class="paramname"><em>offsetAfterRotation</em> = <code>NULL</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Rotates the image about the given point, by <em>angle</em> radians. </p>
<p>Passing <span class="literal">true</span> to <em>interpolating</em> results in better image quality, but is slower.</p>
<p>If the image has a mask, then the mask colour is used for the uncovered pixels in the rotated image background. Else, black (rgb 0, 0, 0) will be used.</p>
<p>Returns the rotated image, leaving this image intact. </p>
</div>
</div>
<a class="anchor" id="a227870b034b06a9b1869ce636af8fea6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::Rotate180 </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a copy of the image rotated by 180 degrees. </p>
<dl class="section since"><dt>Since</dt><dd>2.9.2 </dd></dl>
</div>
</div>
<a class="anchor" id="a55e17b1b5e664904c7b4946d315df168"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::Rotate90 </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>clockwise</em> = <code>true</code></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a copy of the image rotated 90 degrees in the direction indicated by <em>clockwise</em>. </p>
</div>
</div>
<a class="anchor" id="a96a43d7bbb26ed775fa10c979c6e511f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::RotateHue </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>angle</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Rotates the hue of each pixel in the image by <em>angle</em>, which is a double in the range of -1.0 to +1.0, where -1.0 corresponds to -360 degrees and +1.0 corresponds to +360 degrees. </p>
</div>
</div>
<a class="anchor" id="adbdd72be525d71ebb3fe01a5de02607c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::SaveFile </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_output_stream.html">wxOutputStream</a> & </td>
<td class="paramname"><em>stream</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>mimetype</em> </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 an image in the given stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">stream</td><td>Opened output stream to save the image to. </td></tr>
<tr><td class="paramname">mimetype</td><td>MIME type.</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 note"><dt>Note</dt><dd>You can use <a class="el" href="classwx_image.html#a952ee065b17ee07a8cbee568486e01a4" title="Sets a user-defined option.">SetOption()</a> to set the hotspot when saving an image into a cursor file (default hotspot is in the centre of the image): <div class="fragment"><div class="line">image.SetOption(<a class="code" href="image_8h.html#a22847044c140504122efa4943b0f6e7f">wxIMAGE_OPTION_CUR_HOTSPOT_X</a>, hotspotX);</div>
<div class="line">image.SetOption(<a class="code" href="image_8h.html#a420ba1d2430b0c7d92c9a09ccf41fae8">wxIMAGE_OPTION_CUR_HOTSPOT_Y</a>, hotspotY);</div>
</div><!-- fragment --></dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a9416097f955a828243cba8431e7044d4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::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></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 an image in the named file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the file to save the image to. </td></tr>
<tr><td class="paramname">type</td><td>Currently these types can be used: <ul>
<li>wxBITMAP_TYPE_BMP: Save a BMP image file. </li>
<li>wxBITMAP_TYPE_JPEG: Save a JPEG image file. </li>
<li>wxBITMAP_TYPE_PNG: Save a PNG image file. </li>
<li>wxBITMAP_TYPE_PCX: Save a PCX image file (tries to save as 8-bit if possible, falls back to 24-bit otherwise). </li>
<li>wxBITMAP_TYPE_PNM: Save a PNM image file (as raw RGB always). </li>
<li>wxBITMAP_TYPE_TIFF: Save a TIFF image file. </li>
<li>wxBITMAP_TYPE_XPM: Save a XPM image file. </li>
<li>wxBITMAP_TYPE_ICO: Save a Windows icon file (ICO). The size may be up to 255 wide by 127 high. A single image is saved in 8 colors at the size supplied. </li>
<li>wxBITMAP_TYPE_CUR: Save a Windows cursor file (CUR). </li>
</ul>
</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="adef2e0344bfa416816cc4d63c76375e4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::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">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>mimetype</em> </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 an image in the named file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the file to save the image to. </td></tr>
<tr><td class="paramname">mimetype</td><td>MIME type. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a4c5201cc30a99d5cc006d99100dcf55d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::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><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 an image in the named file. </p>
<p>File type is determined from the extension of the file name. Note that this function may fail if the extension is not recognized! You can use one of the forms above to save images to files with non-standard extensions.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Name of the file to save the image to. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af8ac6fad3c44385296cdaa1d82358ad0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool wxImage::SaveFile </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classwx_output_stream.html">wxOutputStream</a> & </td>
<td class="paramname"><em>stream</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></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 an image in the given stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">stream</td><td>Opened output stream to save the image to. </td></tr>
<tr><td class="paramname">type</td><td>MIME type. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aaf10a9f0a8284a9ccfe988d0a470d4e9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::Scale </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"><a class="el" href="image_8h.html#a8cb59f5925c96a706710106f679d171a">wxImageResizeQuality</a> </td>
<td class="paramname"><em>quality</em> = <code><a class="el" href="image_8h.html#a8cb59f5925c96a706710106f679d171aacfa5fa2a8feb97568b19f5784d6ac5e3">wxIMAGE_QUALITY_NORMAL</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a scaled version of the image. </p>
<p>This is also useful for scaling bitmaps in general as the only other way to scale bitmaps is to blit 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> into another <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>.</p>
<p>The parameter <em>quality</em> determines what method to use for resampling the image, see wxImageResizeQuality documentation.</p>
<p>It should be noted that although using <code>wxIMAGE_QUALITY_HIGH</code> produces much nicer looking results it is a slower method. Downsampling will use the box averaging method which seems to operate very fast. If you are upsampling larger images using this method you will most likely notice that it is a bit slower and in extreme cases it will be quite substantially slower as the bicubic algorithm has to process a lot of data.</p>
<p>It should also be noted that the high quality scaling may not work as expected when using a single mask colour for transparency, as the scaling will blur the image and will therefore remove the mask partially. Using the alpha channel will work.</p>
<p>Example: </p>
<div class="fragment"><div class="line"><span class="comment">// get the bitmap from somewhere</span></div>
<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> bmp = ...;</div>
<div class="line"></div>
<div class="line"><span class="comment">// rescale it to have size of 32*32</span></div>
<div class="line"><span class="keywordflow">if</span> ( bmp.<a class="code" href="classwx_bitmap.html#a513b5dc67c3ffa7c9a6a5aacbc5ed0f2" title="Gets the width of the bitmap in pixels.">GetWidth</a>() != 32 || bmp.<a class="code" href="classwx_bitmap.html#a43fa1cfa77a428259d68e6a237aaeba2" title="Gets the height of the bitmap in pixels.">GetHeight</a>() != 32 )</div>
<div class="line">{</div>
<div class="line"> <a class="code" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> image = bmp.<a class="code" href="classwx_bitmap.html#a063fed54a77f63d2cfa69d12f9035fe2" title="Creates an image from a platform-dependent bitmap.">ConvertToImage</a>();</div>
<div class="line"> bmp = <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>(image.<a class="code" href="classwx_image.html#aaf10a9f0a8284a9ccfe988d0a470d4e9" title="Returns a scaled version of the image.">Scale</a>(32, 32));</div>
<div class="line"></div>
<div class="line"> <span class="comment">// another possibility:</span></div>
<div class="line"> image.<a class="code" href="classwx_image.html#a35227071eb0de3c0c035324838071001" title="Changes the size of the image in-place by scaling it: after a call to this function,the image will have the given width and height.">Rescale</a>(32, 32);</div>
<div class="line"> bmp = image;</div>
<div class="line">}</div>
</div><!-- fragment --><dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#a35227071eb0de3c0c035324838071001" title="Changes the size of the image in-place by scaling it: after a call to this function,the image will have the given width and height.">Rescale()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ab46f59f69221258da1397fd7c59e8671"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetAlpha </td>
<td>(</td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>alpha</em> = <code>NULL</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>This function is similar to <a class="el" href="classwx_image.html#a736a8fc26d32e5eab70682b115bacacf" title="Sets the image data without performing checks.">SetData()</a> and has similar restrictions. </p>
<p>The pointer passed to it may however be <span class="literal">NULL</span> in which case the function will allocate the alpha array internally – this is useful to add alpha channel data to an image which doesn't have any.</p>
<p>If the pointer is not <span class="literal">NULL</span>, it must have one byte for each image pixel and be allocated with malloc(). <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> takes ownership of the pointer and will free it unless <em>static_data</em> parameter is set to <span class="literal">true</span> – in this case the caller should do it. </p>
</div>
</div>
<a class="anchor" id="a882406861db4666fb619af90a1cb4b45"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetAlpha </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>alpha</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the alpha value for the given pixel. </p>
<p>This function should only be called if the image has alpha channel data, use <a class="el" href="classwx_image.html#abd42fd2c579837850ab5909ab2bf200c" title="Returns true if this image has alpha channel, false otherwise.">HasAlpha()</a> to check for this. </p>
</div>
</div>
<a class="anchor" id="a736a8fc26d32e5eab70682b115bacacf"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetData </td>
<td>(</td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the image data without performing checks. </p>
<p>The data given must have the size (width*height*3) or results will be unexpected. Don't use this method if you aren't sure you know what you are doing.</p>
<p>The data must have been allocated with <code>malloc()</code>, <b>NOT</b> with <code>operator</code> new.</p>
<p>If <em>static_data</em> is <span class="literal">false</span>, after this call the pointer to the data is owned by the <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> object, that will be responsible for deleting it. Do not pass to this function a pointer obtained through <a class="el" href="classwx_image.html#a5cac38e8fd2536852406d9c8daa55023" title="Returns the image data as an array.">GetData()</a>. </p>
</div>
</div>
<a class="anchor" id="afda57bc7ba823e7c060dbd7698c6ad31"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetData </td>
<td>(</td>
<td class="paramtype">unsigned char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>new_width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>new_height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>static_data</em> = <code>false</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="a62645fe559149a8ee6b27ddc07cfc220"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetMask </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>hasMask</em> = <code>true</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Specifies whether there is a mask or not. </p>
<p>The area of the mask is determined by the current mask colour. </p>
</div>
</div>
<a class="anchor" id="a25fcd0777ea579c7a27d78a2a81627e5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetMaskColour </td>
<td>(</td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>red</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>green</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>blue</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the mask colour for this image (and tells the image to use the mask). </p>
</div>
</div>
<a class="anchor" id="aaa8be307e013440b9a3e4791eab91771"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool wxImage::SetMaskFromImage </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_image.html">wxImage</a> & </td>
<td class="paramname"><em>mask</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>mr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>mg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>mb</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets image's mask so that the pixels that have RGB value of mr,mg,mb in mask will be masked in the image. </p>
<p>This is done by first finding an unused colour in the image, setting this colour as the mask colour and then using this colour to draw all pixels in the image who corresponding pixel in mask has given RGB value.</p>
<p>The parameter <em>mask</em> is the mask image to extract mask shape from. It must have the same dimensions as the image.</p>
<p>The parameters <em>mr</em>, <em>mg</em>, <em>mb</em> are the RGB values of the pixels in mask that will be used to create the mask.</p>
<dl class="section return"><dt>Returns</dt><dd>Returns <span class="literal">false</span> if mask does not have same dimensions as the image or if there is no unused colour left. Returns <span class="literal">true</span> if the mask was successfully applied.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Note that this method involves computing the histogram, which is a computationally intensive operation. </dd></dl>
</div>
</div>
<a class="anchor" id="a952ee065b17ee07a8cbee568486e01a4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetOption </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">const <a class="el" href="classwx_string.html">wxString</a> & </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets a user-defined option. </p>
<p>The function is case-insensitive to <em>name</em>.</p>
<p>For example, when saving as a JPEG file, the option <b>quality</b> is used, which is a number between 0 and 100 (0 is terrible, 100 is very good).</p>
<p>The lists of the currently supported options are in <a class="el" href="classwx_image.html#af006480a04b88e20033bab1615e05de4" title="Gets a user-defined string-valued option.">GetOption()</a> and <a class="el" href="classwx_image.html#af752636f2a2baecd5d33cd8e8501c044" title="Gets a user-defined integer-valued option.">GetOptionInt()</a> function docs.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#af006480a04b88e20033bab1615e05de4" title="Gets a user-defined string-valued option.">GetOption()</a>, <a class="el" href="classwx_image.html#af752636f2a2baecd5d33cd8e8501c044" title="Gets a user-defined integer-valued option.">GetOptionInt()</a>, <a class="el" href="classwx_image.html#a868ae81f470e1bef6ca81dd985078782" title="Returns true if the given option is present.">HasOption()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="acc3d48af8a50bff5ceca51fd649ec981"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetOption </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">int </td>
<td class="paramname"><em>value</em> </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="acbf3a8b9f954b7da7d65adbb9cc9e026"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::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>
</div><div class="memdoc">
<p>Associates a palette with the image. </p>
<p>The palette may be used when converting <a class="el" href="classwx_image.html" title="This class encapsulates a platform-independent image.">wxImage</a> to <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> (MSW only at present) or in file save operations (none as yet). </p>
</div>
</div>
<a class="anchor" id="a1c75932734bdc807c5a163e98a6e3077"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetRGB </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>r</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>g</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>b</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the color of the pixel at the given x and y coordinate. </p>
</div>
</div>
<a class="anchor" id="a17f90246727d089675e7f44a414280d1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetRGB </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_rect.html">wxRect</a> & </td>
<td class="paramname"><em>rect</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>red</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>green</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char </td>
<td class="paramname"><em>blue</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the colour of the pixels within the given rectangle. </p>
<p>This routine performs bounds-checks for the coordinate so it can be considered a safe way to manipulate the data. </p>
</div>
</div>
<a class="anchor" id="ab4a6c25da79e4f2473246108951906e6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxImage::SetType </td>
<td>(</td>
<td class="paramtype"><a class="el" href="gdicmn_8h.html#a90a1eb6d85b5044a99b706fd979f27f5">wxBitmapType</a> </td>
<td class="paramname"><em>type</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the type of image returned by <a class="el" href="classwx_image.html#ac711680e14facac5476a4a2946b7dc42" title="Gets the type of image found by LoadFile() or specified with SaveFile().">GetType()</a>. </p>
<p>This method is mostly used internally by the library but can also be called from the user code if the image was created from data in the given bitmap format without using <a class="el" href="classwx_image.html#aa249e657259fe6518d68a5208b9043d0" title="Loads an image from an input stream.">LoadFile()</a> (which would set the type correctly automatically).</p>
<p>Notice that the image must be created before this function is called.</p>
<dl class="section since"><dt>Since</dt><dd>2.9.0</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">type</td><td>One of bitmap type constants, <code>wxBITMAP_TYPE_INVALID</code> is a valid value for it and can be used to reset the bitmap type to default but <code>wxBITMAP_TYPE_MAX</code> is not allowed here. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a8c3ef171a27cdb93a315eb78cf7b0377"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classwx_image.html">wxImage</a> wxImage::Size </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwx_size.html">wxSize</a> & </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwx_point.html">wxPoint</a> & </td>
<td class="paramname"><em>pos</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>red</em> = <code>-1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>green</em> = <code>-1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>blue</em> = <code>-1</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a resized version of this image without scaling it by adding either a border with the given colour or cropping as necessary. </p>
<p>The image is pasted into a new image with the given <em>size</em> and background colour at the position <em>pos</em> relative to the upper left of the new image.</p>
<p>If <em>red</em> = green = blue = -1 then the areas of the larger image not covered by this image are made transparent by filling them with the image mask colour (which will be allocated automatically if it isn't currently set).</p>
<p>Otherwise, the areas will be filled with the colour with the specified RGB components.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classwx_image.html#ac4dd8e967436c3206dfe4460345af794" title="Changes the size of the image in-place without scaling it by adding either a border with the given co...">Resize()</a> </dd></dl>
</div>
</div>
</div><!-- contents -->
<address class="footer">
<small>
Generated on Thu Nov 27 2014 13:46:49 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>
|