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 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Documentation for LCL (Lazarus Component Library) and LazUtils (Lazarus
Utilities) are published under the Creative Commons Attribution-ShareAlike 4.0
International public license.
https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt
https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/docs/cc-by-sa-4-0.txt
Copyright (c) 1997-2025, by the Lazarus Development Team.
-->
<fpdoc-descriptions>
<package name="lcl">
<!--
====================================================================
Graphics
====================================================================
-->
<module name="Graphics">
<short>
Contains classes, types, and routines used in graphics applications.
</short>
<descr>
<p>
<file>graphics.pp</file> contains classes, types, and routines used to
represent graphic images in a Lazarus Component Library (<b>LCL</b>)
application. The following classes are added to the registered class list
used by the Run-time Library (<b>RTL</b>):
</p>
<ul>
<li>TBitmap</li>
<li>TPixmap</li>
<li>TPortableNetworkGraphic</li>
<li>TPortableAnyMapGraphic (when not explicitly disabled)</li>
<li>TJpegImage (when not explicitly disabled)</li>
<li>TGIFImage (when not explicitly disabled)</li>
<li>TPicture</li>
<li>TFont</li>
<li>TPen</li>
<li>TBrush</li>
<li>TRegion</li>
</ul>
<p>
<file>graphics.pp</file> is part of the Lazarus Component Library (<b>LCL</b>).
</p>
</descr>
<!-- unresolved external references -->
<element name="SysUtils"/>
<element name="Math"/>
<element name="Types"/>
<element name="Classes"/>
<element name="Contnrs"/>
<element name="Laz_AVL_Tree"/>
<element name="FPImage"/>
<element name="FPCanvas"/>
<element name="FPWriteBMP"/>
<element name="FPWritePNG"/>
<element name="PNGComn"/>
<element name="FPReadPNM"/>
<element name="FPWritePNM"/>
<element name="FPReadJpeg"/>
<element name="FPWriteJpeg"/>
<element name="FPReadTiff"/>
<element name="FPTiffCmn"/>
<element name="FPReadGif"/>
<element name="System.UITypes"/>
<element name="LCLVersion"/>
<element name="LCLStrConsts"/>
<element name="LCLType"/>
<element name="LCLProc"/>
<element name="LMessages"/>
<element name="LResources"/>
<element name="LCLResCache"/>
<element name="IntfGraphics"/>
<element name="IcnsTypes"/>
<element name="WSReferences"/>
<element name="GraphType"/>
<element name="GraphMath"/>
<element name="FPCAdds"/>
<element name="LazLoggerBase"/>
<element name="LazTracer"/>
<element name="LazUtilities"/>
<element name="PColor">
<short>Pointer to the TColor type.</short>
<descr>
<p>
The base type used for the definition is dependent on the FPC compiler
version used to build the LCL. Starting in FPC version 3.2.3, the base type
is the type defined in the System.UITypes namespace in the FPC run-time
library (RTL). For previous compiler versions, the base type is a pointer to
TColor.
</p>
<p>
This is done to prevent type conflicts when both System.UITypes and LCL units
are used.
</p>
</descr>
<seealso/>
</element>
<element name="TColor">
<short>Color type used by most LCL drawing functions.</short>
<descr>
<p>
<var>TColor</var> is an alias for the <var>TGraphicsColor</var> type in
<file>GraphType.pp</file> from the <file>LazUtils</file> package. TColor
allows hexadecimal values in the range <b>-$7FFFFFFF-1..$7FFFFFFF</b> and
represent the minimum and maximum values for the Long data type.
</p>
<p>
Bytes in the hexadecimal value are used as follows: <b>$OOBBGGRR</b>.
</p>
<dl>
<dt>OO</dt>
<dd>
Opacity values are not used for standard LCL colors. $1F is reserved for
clNone. $20 is reserved for clDefault.
</dd>
<dt>BB</dt>
<dd>Blue color level. $00 is none. $FF is full.</dd>
<dt>GG</dt>
<dd>Green color level. $00 is none. $FF is full.</dd>
<dt>RR</dt>
<dd>Red color level. $00 is none. $FF is full.</dd>
</dl>
<p>
There are predefined color constants like those in Delphi, such as:
<var>clBlack</var>, <var>clRed</var>, <var>clGreen</var>, and
<var>clBlue</var>. There are extended color constants, like:
<var>clMoneyGreen</var> and <var>clMedGray</var>. There are special color
constants like: <var>clDefault</var> and <var>clNone</var>.
</p>
<p>
Additionally, there are system color constants like: <var>clWindowText</var>
and <var>clForm</var>. These constants have a color and/or pattern depending
on the users theme, the LCL control, or the drawing tool (Pen, Brush, Font).
</p>
<p>
See <link id="ColorToRGB">ColorToRGB</link> and <link
id="RGBToColor">RGBToColor</link>.
</p>
</descr>
<seealso>
<link id="#lazutils.graphtype.TGraphicsColor">TGraphicsColor</link>
<link id="ColorToRGB"/>
<link id="RGBToColor"/>
<link id="clBlack"/>
<link id="clNone"/>
<link id="clDefault"/>
</seealso>
</element>
<!-- Modified in 43d7f203. -->
<element name="TFontPitch">
<short>
Represents pitches (or spacings) used in typefaces.
</short>
<descr>
<p>
Used to implement the Pitch member in TFontData and the Pitch property in
TFont.
</p>
</descr>
<version>
Modified in LCL 3.0 to be an alias to TFontPitch in System.UITypes for FPC
3.3.0 or higher.
</version>
<seealso>
<link id="TFontData"/>
<link id="TFont"/>
<!--
TODO: Uncomment when the topic exists in the RTL documentation.
<link id="#rtl.system.uitypes.TFontPitch">TFontPitch</link>
-->
</seealso>
</element>
<element name="TFontPitch.fpDefault">
<short>Font uses the default spacing defined for the typeface.</short>
</element>
<element name="TFontPitch.fpVariable">
<short>Font uses variable pitch (or proportional spacing).</short>
</element>
<element name="TFontPitch.fpFixed">
<short>Font uses fixed pitch (or mono-spacing).</short>
</element>
<element name="TFontName">
<short>
Alias to the String type used to represent font names.
</short>
<descr>
<p>
<var>TFontName</var> is an alias for the <var>String</var> type. Not used in
the current LCL implementation.
</p>
</descr>
<version>
Modified in LCL 3.0 to be an alias to TFontName in System.UITypes for FPC
3.3.0 or higher.
</version>
<seealso>
<link id="TFont.Name"/>
<link id="TFontData"/>
<!--
TODO: Uncomment when the topic exists in the RTL documentation.
<link id="#rtl.system.uitypes.TFontName">TFontName</link>
-->
</seealso>
</element>
<element name="TFontDataName">
<short>
Short String type used for typeface names.
</short>
<descr>
<p>
<var>TFontDataName</var> is a <var>Short String</var> type used to represent
typeface names, and is used to implement the <var>Name</var> member in
<var>TFontData</var>. TFontData is defined with a maximum length of
<b>LF_FACESIZE-1</b>.
</p>
<remark>
Be aware that the definition can result in truncation of typeface names
longer than 31 characters.
</remark>
</descr>
<version>
Modified in LCL 3.0 to be an alias to TFontDataName in System.UITypes for FPC
3.3.0 or higher.
</version>
<seealso>
<link id="TFontData"/>
<link id="#lcl.lcltype.LF_FACESIZE">LF_FACESIZE</link>
<!--
TODO: Uncomment when the topic exists in the RTL documentation.
<link id="#rtl.system.uitypes.TFontDataName">TFontDataName</link>
-->
</seealso>
</element>
<element name="TFontStyle">
<short>
Represents styles or variants for a font.
</short>
<descr>
<var>TFontStyle</var> is an enumerated type with values used to represent
styles or variants for a typeface. Value(s) from TFontStyle are stored in the
<var>TFontStyles</var> and <var>TFontStylesBase</var> set types, and used to
implement the <var>Style</var> member in <var>TFontData</var> and the Style
property in <var>TFont</var>.
</descr>
<version>
Modified in LCL 3.0 to be an alias to TFontStyle in System.UITypes for FPC
3.3.0 or higher.
</version>
<seealso>
<link id="TFont.Style"/>
<link id="TFontStyles"/>
<link id="TFontData"/>
<!--
TODO: Uncomment when the topic exists in RTL documentation.
<link id="#rtl.system.uitypes.TFontStyle">TFontStyle</link>
-->
</seealso>
</element>
<element name="TFontStyle.fsBold">
<short>Bold font style.</short>
</element>
<element name="TFontStyle.fsItalic">
<short>Italic font style.</short>
</element>
<element name="TFontStyle.fsUnderline">
<short>Underline font style.</short>
</element>
<element name="TFontStyle.fsStrikeOut">
<short>Strike-out (or strike-through) font style.</short>
</element>
<element name="TFontStyles">
<short>
Set type used to store TFontStyle value(s).
</short>
<descr>
<p>
<var>TFontStyles</var> is a set type used to store <b>0</b> (<b>zero</b>) or
more values from the <var>TFontStyle</var> enumeration.
</p>
</descr>
<version>
Modified in LCL 3.0 to be an alias to TFontStyles in System.UITypes for FPC
3.3.0 or higher.
</version>
<seealso>
<link id="TFontStylesBase"/>
<link id="TFont.Style"/>
<link id="TFontData"/>
<!--
TODO: Uncomment when the topic exists in RTL documentation.
<link id="#rtl.system.uitypes.TFontStyles">TFontStyles</link>
-->
</seealso>
</element>
<element name="TFontStylesBase">
<short>Set type used to store TFontStyle value(s).</short>
<descr>
<p>
<var>TFontStylesBase</var> is a set type used to store <b>0</b> (<b>zero</b>)
or more values from the <var>TFontStyle</var> enumeration. It is used to
implement the <var>Style</var> member in <var>TFontData</var> and
<var>TFont</var>.
</p>
</descr>
<version>
Modified in LCL 3.0 to be an alias to TFontStylesBase in System.UITypes for
FPC 3.3.0 or higher.
</version>
<seealso>
<link id="TFontStyles"/>
<link id="TFontData"/>
<link id="TFont.Style"/>
<!--
TODO: Uncomment when the topic exists in RTL documentation.
<link id="#rtl.system.uitypes.TFontStylesBase">TFontStylesBase</link>
-->
</seealso>
</element>
<element name="TFontCharSet">
<short>
Represents a font character set as a numeric value.
</short>
<descr>
<p>
<var>TFontCharSet</var> is a range type with values representing font
character sets. TFontCharSet is limited to integer values in the range
<b>0..255</b>, and correspond to the character set identifiers as used in the
Win32 GDI LogFont structure. For other platforms, or widgetsets, the values
used refer to constants defined in the widgetset interface.
</p>
<p>
<var>TFontCharSet</var> is the type used to implement the <var>CharSet</var>
member in <var>TFontData</var> and <var>TFont</var>.
</p>
</descr>
<version>
Modified in LCL 3.0 to be an alias to TFontCharSet in System.UITypes for
FPC 3.3.0 or higher.
</version>
<seealso>
<link id="TFont.CharSet"/>
<link id="TFontData"/>
<!--
TODO: Uncomment when the topic exists in RTL documentation.
<link id="#rtl.system.uitypes.TFontCharSet">TFontCharSet</link>
-->
</seealso>
</element>
<element name="TFontQuality">
<short>Font output quality, like anti-aliasing.</short>
<descr>
<p>
<var>TFontQuality</var> is an enumerated type with values that represent the
output quality for fonts. Values in the enumeration control how carefully
font attributes are applied to output using a font.
</p>
<remark>
There are situations where an enumeration value may not produce the desired
result. ClearType and ClearTypeNatural anti-aliasing algorithms are oriented
to display usage. They cannot be applied to printed output in general. They
are ignored for fonts that are not TrueType or OpenType fonts with TrueType
outlines. Postscript Type 1 fonts, and Postscript OpenType fonts without
TrueType outlines, do not use ClearType anti-aliasing. Bitmap, vector, and
device fonts cannot use ClearType anti-aliasing. Fonts which contain embedded
bitmaps, like most East Asian fonts, do not use ClearType anti-aliasing.
</remark>
<p>
<var>TFontQuality</var> is the type used to implement the <var>Quality</var>
member in <var>TFontData</var> and <var>TFont</var>.
</p>
</descr>
<version>
Modified in LCL 3.0 to be an alias to TFontQuality in System.UITypes for FPC
3.3.0 or higher.
</version>
<seealso>
<link id="TFont.Quality"/>
<link id="TFontData"/>
<!--
TODO: Uncomment when the topic exists in RTL documentation.
<link id="#rtl.system.uitypes.TFontQuality">TFontQuality</link>
-->
</seealso>
</element>
<element name="TFontQuality.fqDefault">
<short>Default font quality; used when appearance is not important.</short>
</element>
<element name="TFontQuality.fqDraft">
<short>
Prefer other font features (size, style) against output quality. Appearance of
the font is less important than when fqProof is used. Generally offers lower
quality than fqProof or fqDefault.
</short>
</element>
<element name="TFontQuality.fqProof">
<short>
Prefer output quality against other font features (size, style). Font quality
is more important exactly reproducing the size or style for the font.
</short>
</element>
<element name="TFontQuality.fqNonAntialiased">
<short>Disable font anti-aliasing.</short>
</element>
<element name="TFontQuality.fqAntialiased">
<short>
Use font anti-aliasing. The font is always anti-aliased when supported, and
the font size is not too small or too large.
</short>
</element>
<element name="TFontQuality.fqCleartype">
<short>Use ClearType font anti-aliasing when available.</short>
</element>
<element name="TFontQuality.fqCleartypeNatural">
<short>Use Clear Type Natural font anti-aliasing when available.</short>
</element>
<element name="TFontData">
<short>
Contains information about a font used in an application.
</short>
<descr>
<p>
<var>TFontData</var> is a record type used to hold information about a font
in an application. It provides access to the system handle for the font, as
well as attributes for the font. Values in the record are read from the font
file when its handle is assigned, or when the default font from the widgetset
interface is assigned.
</p>
<p>
TFontData is the type used to implement the <var>FontData</var> property in
<var>TFont</var>.
</p>
</descr>
<seealso>
<link id="TFont.FontData"/>
<link id="DefFontData"/>
</seealso>
</element>
<element name="TFontData.Handle">
<short>The Operating System <var>Handle</var> for the <var>Font</var>.
</short>
</element>
<element name="TFontData.Height">
<short>The <var>Height</var> (in pixels) for the <var>Font</var>.
</short>
</element>
<element name="TFontData.Pitch">
<short>The <var>Pitch</var> (layout style) for the <var>Font</var>.</short>
</element>
<element name="TFontData.Style">
<short>
The <var>Style</var> (or variant) for the <var>Font</var>.
</short>
<descr>
<p>
<var>Style</var> is a <var>TFontStylesBase</var> member which contains the
style or variant for the typeface in a font. See <var>TFontStyle</var> for
more information about the enumeration values and their meanings.
</p>
</descr>
<seealso>
<link id="TFontStyle"/>
<link id="TFontStylesBase"/>
</seealso>
</element>
<element name="TFontData.CharSet">
<short>
The character set for a Font as an Integer value.
</short>
<descr>
<p>
<var>CharSet</var> is a <var>TFontCharSet</var> member which stores an Integer
identifier for a font character set. Its value identifies the character set or
encoding supported in the font.
</p>
<p>
The actual value is specific to the Operating System and/or widgetset for the
application. For the Windows platform, it corresponds to the value in TLogFont
as retrieved from the <var>Win32 GDI LogFont</var> routine. Other platforms
and widgetsets rely on the mechanism native to the interface like: X-Fonts,
device contexts, or whatever API mechanism the MacOS developers currently have
in place. The native values are translated to to the value represented in the
member as an Integer.
</p>
</descr>
<seealso>
<link id="TFontCharSet"/>
</seealso>
</element>
<element name="TFontData.Quality">
<short>Output quality for the font.</short>
<descr>
<p>
<var>Quality</var> is a <var>TFontQuality</var> member which contains an
enumeration value which indicates the output quality for the font. The output
quality determines how carefully font attributes are applied to output using
the font.
</p>
<p>
See <var>TFontQuality</var> for more information about the enumeration values
and their meanings.
</p>
</descr>
<seealso>
<link id="TFontQuality"/>
</seealso>
</element>
<element name="TFontData.Name">
<short>
The <var>Name</var> (as a string) of the current <var>Font</var>.
</short>
</element>
<!-- Added in 43d7f203. -->
<element name="fpDefault">
<short>
Represents the fpDefault enumeration value in TFontPitch.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fpVariable">
<short>
Represents the fpVariable enumeration value in TFontPitch.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fpFixed">
<short>
Represents the fpFixed enumeration value in TFontPitch.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fsBold">
<short>
Represents the fsBold enumeration value in TFontStyle.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fsItalic">
<short>
Represents the fsItalic enumeration value in TFontStyle.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fsUnderline">
<short>
Represents the fsUnderline enumeration value in TFontStyle.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fsStrikeOut">
<short>
Represents the fsStrikeout enumeration value in TFontStyle.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fqDefault">
<short>
Represents the fqDefault enumeration value in TFontQuality.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fqDraft">
<short>
Represents the fqDraft enumeration value in TFontQuality.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fqProof">
<short>
Represents the fqProof enumeration value in TFontQuality.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fqNonAntialiased">
<short>
Represents the fqNonAntialiased enumeration value in TFontQuality.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fqAntialiased">
<short>
Represents the fqAntialiased enumeration value in TFontQuality.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fqCleartype">
<short>
Represents the fqCleartype enumeration value in TFontQuality.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="fqCleartypeNatural">
<short>
Represents the fqCleartypeNatural enumeration value in TFontQuality.
</short>
<descr/>
<version>
Added in LCL 3.0 as an alias to the corresponding constant in System.UITypes
for FPC 3.3.0 or higher.
</version>
<seealso/>
</element>
<element name="DefFontData">
<short>Default font data used for new TFont instances.</short>
<descr>
<p>New <var>TFont</var> instances are initialized with the values in this
structure.
</p>
<p>The default font is chosen by the interfaces depending on the context. For
example, there can be a different default font for a button and a group box.
</p>
</descr>
<seealso>
<link id="TFontData"/>
</seealso>
</element>
<element name="TTextLayout">
<short>
Represents the text layout used to render text in its rectangle.
</short>
<descr>
<p>
<var>TTextLayout</var> is an enumerated type with values that indicate the
layout used for text in its rectangle. TTextLayout is the type used to
implement the <var>Layout</var> member in <var>TTextStyle</var>.
</p>
</descr>
<seealso>
<link id="TTextStyle"/>
</seealso>
</element>
<element name="TTextLayout.tlTop">
<short>Text is aligned to the top of the text rectangle.</short>
</element>
<element name="TTextLayout.tlCenter">
<short>Text is aligned to the center of the text rectangle.</short>
</element>
<element name="TTextLayout.tlBottom">
<short>Text is aligned to the bottom of the text rectangle.</short>
</element>
<element name="TTextStyle">
<short>
The <var>Style</var> of the <var>Text</var> to be drawn in a rectangle.
</short>
<descr>TTextStyle is a packed record type which contains setting used when a
control draws text using TextOut or TextRect. It is used to save, restore and
configure values needed for the canvas which renders a control.
</descr>
</element>
<element name="TTextStyle.Alignment">
<short>Horizontal alignment in the text rectangle.</short>
<descr/>
<seealso/>
</element>
<element name="TTextStyle.Layout">
<short>Vertical alignment in the text rectangle.</short>
<descr/>
<seealso/>
</element>
<element name="TTextStyle.SingleLine">
<short>Indicates if the text is rendered as a single line.</short>
<descr>
<p>When set to <b>True</b> and <var>WordBreak</var> is <b>False</b>,
<b>CR</b> (<b>#13</b>) and <b>LF</b> (<b>#10</b>) are handled as standard
characters and do not result in line breaks.
</p>
</descr>
<seealso>
<link id="TTextStyle.WordBreak"/>
</seealso>
</element>
<element name="TTextStyle.Clipping">
<short>Causes text to be clipped to the text rectangle.</short>
<descr/>
<seealso/>
</element>
<element name="TTextStyle.ExpandTabs">
<short>Causes Tab characters to be replaced with spaces.</short>
<descr>
<p>When set to <b>True</b>, occurrences of <b>Tab</b> (<b>#9</b>) characters
are replaced with the appropriate number of space characters. The default
value is <b>8</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TTextStyle.ShowPrefix">
<short>
Draws a single Ampersand characters as an accelerator key decoration.
</short>
<descr>
<p>
When set to <b>True</b>, the first <b>Ampersand</b> (<b>&</b>)
character on a line is drawn as the decoration used for an accelerator key.
The character after the Ampersand contains the key for the accelerator. When
<b>True</b>, double Ampersand (<b>&&</b>) characters are required to
draw an Ampersand character in the text.
</p>
</descr>
<seealso/>
</element>
<element name="TTextStyle.Wordbreak">
<short>Causes a long line of text to be word-wrapped.</short>
<descr>
<p>
When set to <b>True</b>, a line of text that is larger than the available
width in the rectangle is word-wrapped into multiple lines at word boundaries.
</p>
</descr>
<seealso/>
</element>
<element name="TTextStyle.Opaque">
<short>Causes the output to be drawn with full opacity.</short>
<descr/>
<seealso/>
</element>
<element name="TTextStyle.SystemFont">
<short>Causes the system font to be used instead of the canvas font.</short>
<descr/>
<seealso/>
</element>
<element name="TTextStyle.RightToLeft">
<short>For RightToLeft text reading (text direction).</short>
<descr/>
<seealso/>
</element>
<element name="TTextStyle.EndEllipsis">
<short>
Indicates if text is "ellipsified" when too long for its rectangle.
</short>
<descr>
<p>
If a line of text is too long to fit between left and right boundaries for
the text rectangle, the text is shortened and an <b>Ellipsis</b> (<b>...</b>)
is added to the end of the text value. Preference is given to
<var>WordBreak</var> when set.
</p>
</descr>
<seealso/>
</element>
<element name="psSolid">
<short>Represents the solid pen style.</short>
<descr>
<p>Alias for the FPCanvas.psSolid enumeration value in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="psDash">
<short>Represents the dashed pen style.</short>
<descr>
<p>Alias for the FPCanvas.psDash enumeration value in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="psDot">
<short>Represents the dotted pen style.</short>
<descr>
<p>Alias for the FPCanvas.psDot enumeration value in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="psDashDot">
<short>Represents the dash-dot pattern pen style.</short>
<descr>
<p>Alias for the FPCanvas.psDashDot enumeration value in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="psDashDotDot">
<short>Represents the dash-dot-dot pattern pen style.</short>
<descr>
<p>Alias for the FPCanvas.psDashDotDot enumeration value in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="psClear">
<short>Represents the clear pen style.</short>
<descr>
<p>Alias for the FPCanvas.psClear enumeration value in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="psInsideframe">
<short>Represents the pen style used for an inside frame.</short>
<descr>
<p>Alias for the FPCanvas.psInsideframe enumeration value in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="psPattern">
<short>Represents a pattern pen style.</short>
<descr>
<p>Alias for the FPCanvas.psPattern enumeration value in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="pmBlack">
<short>Represents the Black pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmBlack enumeration value in the FCL.
Pixels affected by the pen are always set to black.
</p>
</descr>
</element>
<element name="pmWhite">
<short>Represents the White pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmWhite enumeration value in the FCL.
Pixels affected by the pen are always set to white.
</p>
</descr>
</element>
<element name="pmNop">
<short>Represents the No OP pen mode.</short>
<descr>
<p>
Alias for the FPCanvas.pmNop enumeration value in the FCL.
Pixels affected by the pen are unchanged.
</p>
</descr>
</element>
<element name="pmNot">
<short>Represents the NOT pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmNot enumeration value in the FCL.
Pixels affected by the pen are set to the inverse for the current color.
</p>
</descr>
</element>
<element name="pmCopy">
<short>Represents the Copy pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmCopy enumeration value in the FCL.
Pixels affected by the pen are set to the pen color.
</p>
</descr>
</element>
<element name="pmNotCopy">
<short>Represents the Not Copy pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmNotCopy enumeration value in the FCL.
Pixels affected by the pen are set to the inverse of the pen color.
</p>
</descr>
</element>
<element name="pmMergePenNot">
<short>Represents the Merge Pen Not pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmMerge enumeration value in the FCL.
Pixels affected by the pen are set to a combination of the pen color and the
inverse of the pixel color.
</p>
</descr>
</element>
<element name="pmMaskPenNot">
<short>Represents the Mask Pen Not pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmMaskPenNot enumeration value in the FCL.
Pixels affected by the pen are set to colors common to both the pen and the
inverse of the pixel color.
</p>
</descr>
</element>
<element name="pmMergeNotPen">
<short>Represents the Merge Not Pen pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmMergePenNot enumeration value in the FCL.
Pixels affected by the pen are set to a combination of the pen color and the
inverse of the pixel color.
</p>
</descr>
</element>
<element name="pmMaskNotPen">
<short>Represents the Mask Not Pen pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmMaskNotPen enumeration value in the FCL.
Pixels affected by the pen are set to a combination of the colors common to
the inverse of the pen color and the current pixel color.
</p>
</descr>
</element>
<element name="pmMerge">
<short>Represents the Merge pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmMerge enumeration value in the FCL.
Pixels affected by the pen are set to a combination of the pen color and the
current pixel color.
</p>
</descr>
</element>
<element name="pmNotMerge">
<short>Represents the Not Merge pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmNotMerge enumeration value in the FCL.
Pixels affected by the pen are set to the inverse of the color derived using
pmMerge pen mode.
</p>
</descr>
</element>
<element name="pmMask">
<short>Represents the Mask pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmMask enumeration value in the FCL.
Pixels affected by the pen are set a combination of the colors common to the
pen color and the current pixel color.
</p>
</descr>
</element>
<element name="pmNotMask">
<short>Represents the Not Mask pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmNotMask enumeration value in the FCL.
Pixels affected by the pen are set to the inverse of the color for pmMask pen
mode.
</p>
</descr>
</element>
<element name="pmXor">
<short>Represents the XOR pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmXor enumeration value in the FCL.
Pixels affected by the pen are set to a combination of the pen color and the
current pixel color, but not both.
</p>
</descr>
</element>
<element name="pmNotXor">
<short>Represents the Not XOR pen mode.</short>
<descr>
<p>Alias for the FPCanvas.pmNotXor enumeration value in the FCL.
Pixels affected by the pen are set to the inverse of the color using pmXor
pen mode.
</p>
</descr>
</element>
<element name="bsSolid">
<short>Represents the Solid brush style.</short>
<descr>
<p>Alias for the TFPBrushStyle.bsSolid enumeration value in the FCL.
Fills a shape using the color for the brush.
</p>
</descr>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsClear">
<short>Represents the Clear brush style.</short>
<descr>
<p>Alias for the TFPBrushStyle.bsClear enumeration value in the FCL.
Fills a shape with transparency (using the existing color as the fill color).
</p>
</descr>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsHorizontal">
<short>Represents the Horizontal brush style.</short>
<descr>
<p>Alias for the TFPBrushStyle.bsHorizontal enumeration value in the FCL.
Fills a shape with a pattern consisting of equidistant horizontal lines.
</p>
</descr>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsVertical">
<short>Represents the Vertical brush style.</short>
<descr>
<p>Alias for the TFPBrushStyle.bsVertical enumeration value in the FCL.
Fills a shape with a pattern consisting of equidistant vertical lines.
</p>
</descr>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsFDiagonal">
<short>Represents the FDiagonal brush style.</short>
<descr>
<p>Alias for the TFPBrushStyle.bsFDiagonal enumeration value in the FCL.
Fills a shape with a pattern consisting of equidistant lines drawn with a
45-degree downward, left-to-right hatch.
</p>
</descr>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsBDiagonal">
<short>Represents the BDiagonal brush style.</short>
<descr>
<p>Alias for the TFPBrushStyle.bsBDiagonal enumeration value in the FCL.
Fills a shape with a pattern consisting of equidistant lines drawn with a
45-degree upward, left-to-right hatch.
</p>
</descr>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsCross">
<short>Represents the Cross brush style.</short>
<descr>
<p>Alias for the TFPBrushStyle.bsCross enumeration value in the FCL.
Fills a shape with a pattern consisting of equidistant lines drawn as a
horizontal and vertical cross-hatch.
</p>
</descr>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsDiagCross">
<short>Represents the DiagCross brush style.</short>
<descr>
<p>
Alias for the TFPBrushStyle.bsDiagCross enumeration value in the FCL. Fills a
shape with a pattern consisting of equidistant lines drawn as a 45 degree
cross-hatch.
</p>
</descr>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsImage">
<short>
Represents the user-specified Image (bitmap) brush style.
</short>
<descr>
<p>
Alias for the TFPBrushStyle.bsImage enumeration value in the FCL. Fills a
shape with a user-specified image (bitmap).
</p>
</descr>
<version>
Added in LCL version 3.0.
</version>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="bsPattern">
<short>
Represents the user-specified Pattern (bitmap) brush style.
</short>
<descr>
<p>
Alias for the TFPBrushStyle.bsPattern enumeration value in the FCL. Fills a
shape with a user-specified pattern (bitmap).
</p>
</descr>
<version>
Added in LCL version 3.0.
</version>
<seealso>
<link id="TBrushStyle"/>
</seealso>
</element>
<element name="pecRound">
<short>Represents the Round pen end cap.</short>
<descr/>
<version>Added in LCL version 1.2.0.</version>
</element>
<element name="pecSquare">
<short>Represents the Square pen end cap.</short>
<descr/>
<version>Added in LCL version 1.2.0.</version>
</element>
<element name="pecFlat">
<short>Represents the Flat pen end cap.</short>
<descr/>
<version>Added in LCL version 1.2.0.</version>
</element>
<element name="pjsRound">
<short>Represents the Round pen join style.</short>
<descr/>
<version>Added in LCL version 1.2.0.</version>
</element>
<element name="pjsBevel">
<short>Represents the Bevel pen join style.</short>
<descr/>
<version>Added in LCL version 1.2.0.</version>
</element>
<element name="pjsMiter">
<short>Represents the Miter pen join style.</short>
<descr/>
<version>Added in LCL version 1.2.0.</version>
</element>
<element name="TFillStyle">
<short>Alias for the TGraphicsFillStyle enumeration type in LazUtils.</short>
<descr>
<p>Alias for the TGraphicsFillStyle enumeration type in LazUtils.</p>
</descr>
<seealso>
<link id="#lazutils.graphtype.TGraphicsFillStyle">TGraphicsFillStyle</link>
</seealso>
</element>
<element name="TFillMode">
<short>Represents Fill Mode values.</short>
<descr>
<p>
Not used in the current LCL implementation. Replaced with the
<var>LazRegionFillMode</var> type in <file>lazregions.pas</file>.
</p>
</descr>
<seealso/>
</element>
<element name="TFillMode.fmAlternate">
<short/>
</element>
<element name="TFillMode.fmWinding">
<short/>
</element>
<element name="TCopyMode">
<short>Type used to represent canvas copy modes.</short>
<descr>
<p>
<var>TCopyMode</var> is an alias for the <var>LongInt</var> type. TCopyMode is
the type used to implement the <var>CopyMode</var> property in
<var>TCanvas</var>. Normally contains a value defined in the copy mode
constants:
</p>
<dl>
<dt>cmBlackness</dt>
<dd>
Fills the destination rectangle with the first color in the physical palette.
(Black for the default palette).
</dd>
<dt>cmDstInvert</dt>
<dd>
Inverts colors in the destination rectangle.
</dd>
<dt>cmMergeCopy</dt>
<dd>
Merges colors from the source rectangle with the brush color.
</dd>
<dt>cmMergePaint</dt>
<dd>
Merges inverted colors from the source rectangle with the colors in the
destination rectangle using an OR operation.
</dd>
<dt>cmNotSrcCopy</dt>
<dd>
Copies inverted colors from the source rectangle to the destination rectangle.
</dd>
<dt>cmNotSrcErase</dt>
<dd>
Combines the colors from the source and destination rectangles using an OR
operation, and inverts the result.
</dd>
<dt>cmPatCopy</dt>
<dd>
Copies the brush into the destination rectangle.
</dd>
<dt>cmPatInvert</dt>
<dd>
Combines the brush colors with the colors in the destination rectangle using
an XOR operation.
</dd>
<dt>cmPatPaint</dt>
<dd>
Combines the brush colors with the inverted colors from the source rectangle
using an OR operation, and combines the result with the colors in the
destination rectangle using an OR operation.
</dd>
<dt>cmSrcAnd</dt>
<dd>
Combines colors from the source and destination rectangles using an AND
operation.
</dd>
<dt>cmSrcCopy</dt>
<dd>
Copies the source rectangle to the destination rectangle.
</dd>
<dt>cmSrcErase</dt>
<dd>
Combines the inverted colors in the destination rectangle with the colors
from the source rectangle using an AND operation.
</dd>
<dt>cmSrcInvert</dt>
<dd>
Combines the colors in the source and destination rectangles using an XOR
operation.
</dd>
<dt>cmSrcPaint</dt>
<dd>
Combines the colors in the source and destination rectangles using an OR
operation.
</dd>
<dt>cmWhiteness</dt>
<dd>
Fills the destination rectangle using the second color in the physical
palette. (White for the default palette).
</dd>
</dl>
<p>
The default value for the propriety is <var>cmSrcCopy</var>.
</p>
<p>
Copy mode constants are omitted for the <b>CAPTUREBLT</b> and
<b>NOMIRRORBITMAP</b> values used in the Windows GDI API.
</p>
</descr>
<seealso>
<link id="TCanvas.CopyMode"/>
</seealso>
</element>
<element name="TCanvasStates">
<short>Represents states values for TCanvas.</short>
<descr>
<p>
<var>TCanvasStates</var> is an enumerated type with values that represent the
state for a <var>TCanvas</var> instance. Value(s) from the enumeration are
stored in the <var>TCanvasState</var> set type used to implement the
<var>State</var> property in <var>TCanvas</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvasStates.csHandleValid">
<short>The handle for the canvas is valid.</short>
</element>
<element name="TCanvasStates.csFontValid">
<short>
Font properties correspond to the selected Font Handle in the Device
Context (DC).
</short>
</element>
<element name="TCanvasStates.csPenvalid">
<short/>
</element>
<element name="TCanvasStates.csBrushValid">
<short/>
</element>
<element name="TCanvasStates.csRegionValid">
<short/>
</element>
<element name="TCanvasState">
<short>Set type used to store TCanvasStates values.</short>
<descr/>
<seealso/>
</element>
<element name="TCanvasOrientation">
<short>Represents orientations for a canvas.</short>
<descr>Not used in the current LCL implementation.
</descr>
<seealso/>
</element>
<element name="TCanvasOrientation.csLefttoRight">
<short/>
<notes>
<note>Needs to be changed to coLeftToRight.</note>
</notes>
</element>
<element name="TCanvasOrientation.coRighttoLeft">
<short/>
</element>
<element name="TProgressStage">
<short>
Alias for the TFPImgProgressStage type in the FCL.
</short>
<descr/>
<seealso/>
</element>
<element name="TProgressEvent">
<short>
Specifies an event handler for monitoring the progress of a drawing process.
</short>
<descr>
<p>
<var>TProgressEvent</var> is a alias for the TFPImgProgressEvent type in the
FCL. It specifies an event handler used to perform progress notifications for
computationally intensive (slow) operations such as loading, storing, or
transforming graphic image data.
</p>
<p>
The object procedure type (defined in fpimage.pp) includes the following
parameters:
</p>
<dl>
<dt>Sender</dt>
<dd>
Object instance for the notification.
</dd>
<dt>Stage</dt>
<dd>
Indicates whether the notification is to prepare for, process, or clean up
after a graphic operation. The first call for a graphic operation will be with
<var>Stage = psStarting</var>, to allow the event handler to allocate whatever
resources it needs to process subsequent progress notifications. After
<var>Stage = psStarting</var>, you are guaranteed that <var>OnProgress</var>
will be called again with <var>Stage = psEnding</var> to allow you to free
those resources, even if the graphic operation is aborted by an exception.
Zero or more calls to <var>OnProgress</var> with <var>Stage = psRunning</var>
may occur between the <var>psStarting</var> and <var>psEnding</var> calls.
</dd>
<dt>PercentDone</dt>
<dd>
The ratio of work done to work remaining, on a scale of 0 to 100. Values may
repeat or even regress (get smaller) in successive calls.
<var>PercentDone</var> is usually a guess, and the guess may be dramatically
altered as new information is discovered in decoding the image. The value of
this property could usefully be passed to a ProgressBar to show the user the
progress for the operation. Please note that the Byte type used for the
argument allows a value which can exceed 100.
</dd>
<dt>RedrawNow</dt>
<dd>
Indicates whether the graphic can or should be redrawn immediately. Useful
for showing successive approximations of an image as data is available
instead of waiting for all the data to arrive before drawing anything. Since
there is no message loop activity during graphic operations, you should call
<var>Update</var> to force a control to be redrawn immediately in the
<var>OnProgress</var> event handler. Redrawing a graphic when
<var>RedrawNow = <b>False</b></var> could corrupt the image or cause
exceptions.
</dd>
<dt>R</dt>
<dd>
TRect instance with the area on an image that has been changed and needs to be
redrawn.
</dd>
<dt>Msg</dt>
<dd>
Optional text describing in one or two words what the graphic class is
currently working on. For example: "Loading", "Storing", "Reducing colors",
etc. The <var>Msg</var> string can also be empty. <var>Msg</var> strings
should be resourced for translation, should not contain trailing periods, and
should be used only for display purposes. (Do not use the construct: if Msg =
'Loading' then...).
</dd>
<dt>Continue</dt>
<dd>
Variable Boolean argument which indicates if the current operation can be
continued. Set Continue to <b>False</b> to notifiy the calling procedure that
the operation should be aborted.
</dd>
</dl>
<p>
TProgressEvent is the type used to implement the OnProgress property in
TGraphic and TPicture.
</p>
</descr>
<seealso>
<link id="TGraphic.OnProgress"/>
<link id="TPicture.OnProgress"/>
<link id="TProgressStage"/>
</seealso>
</element>
<element name="TPixelFormat">
<short>Represents storage formats for pixels in image data.</short>
<descr>
<p>
<var>TPixelFormat</var> is an enumerated type with values that represent the
storage format for pixels in image data. In general, it indicates the number
of bits required for each pixel in an image. It also determines the color
spectrum and color depth available in image data.
</p>
<p>
TPixelFormat is the type used to implement the <var>PixelFormat</var>
property in TRasterImage, TSharedCustomBitmap, TCustomBitmap, TSharedIcon,
TIconImage, TCustomIcon, et. al.
</p>
</descr>
<seealso/>
</element>
<element name="TPixelFormat.pfDevice">
<short>Indicates that the source device determines the pixel format.</short>
</element>
<element name="TPixelFormat.pf1bit">
<short>1 bit per pixel. Monochrome.</short>
</element>
<element name="TPixelFormat.pf4bit">
<short>4 bits per pixel. 16 colors.</short>
</element>
<element name="TPixelFormat.pf8bit">
<short>8 bits per pixel. 256 colors.</short>
</element>
<element name="TPixelFormat.pf15bit">
<short>15 bits per pixel. 32,768 colors. Also called High Color.</short>
</element>
<element name="TPixelFormat.pf16bit">
<short>
16 bits per pixel. 65,536 colors. Also referred to as High Color.
</short>
</element>
<element name="TPixelFormat.pf24bit">
<short>24 bits per pixel. 16,777,216 colors. Also called TrueColor.</short>
</element>
<element name="TPixelFormat.pf32bit">
<short>
32 bits per pixel. 4,294,967,296 colors. Not a common pixel format.
</short>
</element>
<element name="TPixelFormat.pfCustom">
<short>Uses a pixel format other than the defined values.</short>
</element>
<element name="PIXELFORMAT_BPP">
<short>
Constant with the number of bits per pixel for TPixelFormat enumeration
values.
</short>
<descr>
<p>
<var>PIXELFORMAT_BPP</var> is a constant which contains an array of
<var>Byte</var> values representing the number of bits used for pixel data in
an image. Elements in the array are indexed values in the
<var>TPixelFormat</var> enumeration, and contain the number of bits per pixel
for the associated pixel format.
</p>
</descr>
<seealso>
<link id="TPixelFormat"/>
</seealso>
</element>
<element name="TTransparentMode">
<short>Represents transparency modes used in raster images.</short>
<descr/>
<seealso>
<link id="TRasterImage.TransparentMode"/>
<link id="TRasterImage.TransparentColor"/>
</seealso>
</element>
<element name="TTransparentMode.tmAuto">
<short>
Transparency is determined by examining a designated pixel in the image data.
</short>
</element>
<element name="TTransparentMode.tmFixed">
<short>Uses a designated color as the transparent color.</short>
</element>
<element name="clBlack">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clMaroon">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clGreen">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clOlive">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clNavy">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clPurple">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clTeal">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clGray">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clSilver">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clRed">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clLime">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clYellow">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clBlue">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clFuchsia">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clAqua">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="clLtGray">
<short>One of the standard colors. Delphi compatible.</short>
<descr>An alias for clSilver.</descr>
</element>
<element name="clDkGray">
<short>One of the standard colors. Delphi compatible.</short>
<descr>An alias for clGray.</descr>
</element>
<element name="clWhite">
<short>One of the standard colors. Delphi compatible.</short>
</element>
<element name="StandardColorsCount">
<short>Number of defined standard color constants.</short>
</element>
<element name="clMoneyGreen">
<short>One of the extended colors.</short>
</element>
<element name="clSkyBlue">
<short>One of the extended colors.</short>
</element>
<element name="clCream">
<short>One of the extended colors.</short>
</element>
<element name="clMedGray">
<short>One of the extended colors.</short>
</element>
<element name="ExtendedColorCount">
<short>The number of defined extended color constants.</short>
<descr/>
<seealso/>
</element>
<element name="clNone">
<short>One of the special colors.</short>
<descr/>
</element>
<element name="clDefault">
<short>The default color of a given control.
</short>
<descr>
<p>The default color for a given control. This color alone does not have any
meaning; it needs to be resolved using a control instance and one of the
methods like: TControl.GetDefaultColor, TControl.GetColorResolvingParent or
TControl.GetRGBColorResolvingParent.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.GetDefaultColor">TControl.GetDefaultColor</link>
<link id="#lcl.controls.TControl.GetColorResolvingParent">TControl.GetColorResolvingParent</link>
<link id="#lcl.controls.TControl.GetRGBColorResolvingParent">TControl.GetRGBColorResolvingParent</link>
</seealso>
</element>
<element name="clScrollBar">
<short>One of the System colors.</short>
</element>
<element name="clBackground">
<short>One of the System colors.</short>
</element>
<element name="clActiveCaption">
<short>One of the System colors.</short>
</element>
<element name="clInactiveCaption">
<short>One of the System colors.</short>
</element>
<element name="clMenu">
<short>One of the System colors.</short>
</element>
<element name="clWindow">
<short>Background color for an edit control.</short>
<descr>
<p>
The color of the background for a widget, for example a TEdit. This is usually
white. Don't confuse this with the background of a window, or form, which is
given by clForm.
</p>
</descr>
<seealso>
<link id="clForm"/>
<link id="clWindowText"/>
</seealso>
</element>
<element name="clWindowFrame">
<short>One of the System colors.</short>
</element>
<element name="clMenuText">
<short>The color of the text in menus.</short>
<descr/>
</element>
<element name="clWindowText">
<short>The color for the text in an edit control.
</short>
<descr>
<p>The color of the text in a widget, such as for example TEdit. This is
usually black. Don't confuse with the color of the window decoration caption
or of a raised control such as buttons or anything else.
</p>
</descr>
<seealso>
<link id="clWindow"/>
<link id="clBtnText"/>
</seealso>
</element>
<element name="clCaptionText">
<short>One of the System colors.</short>
</element>
<element name="clActiveBorder">
<short>One of the System colors.</short>
</element>
<element name="clInactiveBorder">
<short>One of the System colors.</short>
</element>
<element name="clAppWorkspace">
<short>One of the System colors.</short>
</element>
<element name="clHighlight">
<short>One of the System colors.</short>
</element>
<element name="clHighlightText">
<short>One of the System colors.</short>
</element>
<element name="clBtnFace">
<short>Color for a button face.
</short>
<descr>
<p>The color used for a button face. This color is also utilized in many
other places for raised areas such as a panel.
</p>
</descr>
</element>
<element name="clBtnShadow">
<short>One of the System colors.</short>
</element>
<element name="clGrayText">
<short>One of the System colors.</short>
</element>
<element name="clBtnText">
<short>The color for the text or other raised area on a button.</short>
<descr/>
</element>
<element name="clInactiveCaptionText">
<short>One of the System colors.</short>
</element>
<element name="clBtnHighlight">
<short>One of the System colors.</short>
</element>
<element name="cl3DDkShadow">
<short>One of the System colors.</short>
</element>
<element name="cl3DLight">
<short>One of the System colors.</short>
</element>
<element name="clInfoText">
<short>One of the System colors.</short>
</element>
<element name="clInfoBk">
<short>One of the System colors.</short>
</element>
<element name="clHotLight">
<short>One of the System colors.</short>
</element>
<element name="clGradientActiveCaption">
<short>One of the System colors.</short>
</element>
<element name="clGradientInactiveCaption">
<short>One of the System colors.</short>
</element>
<element name="clMenuHighlight">
<short>One of the System colors used for highlights on a menu.</short>
</element>
<element name="clMenuBar">
<short>One of the System colors used for the menu bar.</short>
</element>
<element name="clForm">
<short>Represents the color of the background for a form.</short>
<descr/>
</element>
<element name="clColorDesktop">
<short>A synonym not displayed in color lists.</short>
</element>
<element name="cl3DFace">
<short>A synonym not displayed in color lists.</short>
</element>
<element name="cl3DShadow">
<short>A synonym not displayed in color lists.</short>
</element>
<element name="cl3DHiLight">
<short>A synonym not displayed in color lists.</short>
</element>
<element name="clBtnHiLight">
<short>A synonym not displayed in color lists.</short>
</element>
<element name="clFirstSpecialColor">
<short>Alias for the clBtnHiLight constant.</short>
<descr/>
</element>
<element name="clMask">
<short>Alias for the clWhite constant.</short>
<descr/>
</element>
<element name="clDontMask">
<short>Alias for the clBlack constant.</short>
<descr/>
</element>
<element name="clForeground">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clButton">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clLight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clMidlight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDark">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clMid">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clBrightText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clButtonText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clBase">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clxBackground">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clShadow">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clxHighlight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clHighlightedText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="cloNormal">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="cloDisabled">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="cloActive">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalForeground">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalButton">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalLight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalMidlight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalDark">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalMid">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalBrightText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalButtonText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalBase">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalBackground">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalShadow">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalHighlight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clNormalHighlightedText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledForeground">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledButton">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledLight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledMidlight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledDark">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledMid">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledBrightText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledButtonText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledBase">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledBackground">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledShadow">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledHighlight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clDisabledHighlightedText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveForeground">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveButton">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveLight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveMidlight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveDark">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveMid">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveBrightText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveButtonText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveBase">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveBackground">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveShadow">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveHighlight">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="clActiveHighlightedText">
<short>Deprecated CLX color. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="TMappedColor">
<short>Deprecated CLX color range. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="TColorGroup">
<short>Deprecated CLX color enumeration. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="TColorGroup.cgInactive">
<short/>
</element>
<element name="TColorGroup.cgDisabled">
<short/>
</element>
<element name="TColorGroup.cgActive">
<short/>
</element>
<element name="TColorRole">
<short>Deprecated CLX color enumeration. Do not use.</short>
<descr/>
<seealso/>
</element>
<element name="TColorRole.crForeground">
<short/>
</element>
<element name="TColorRole.crButton">
<short/>
</element>
<element name="TColorRole.crLight">
<short/>
</element>
<element name="TColorRole.crMidlight">
<short/>
</element>
<element name="TColorRole.crDark">
<short/>
</element>
<element name="TColorRole.crMid">
<short/>
</element>
<element name="TColorRole.crText">
<short/>
</element>
<element name="TColorRole.crBrightText">
<short/>
</element>
<element name="TColorRole.crButtonText">
<short/>
</element>
<element name="TColorRole.crBase">
<short/>
</element>
<element name="TColorRole.crBackground">
<short/>
</element>
<element name="TColorRole.crShadow">
<short/>
</element>
<element name="TColorRole.crHighlight">
<short/>
</element>
<element name="TColorRole.crHighlightText">
<short/>
</element>
<element name="TColorRole.crNoRole">
<short/>
</element>
<!-- canvas modes (ternary raster operations) -->
<element link="#lcl.lcltype.BLACKNESS" name="cmBlackness"/>
<element link="#lcl.lcltype.DSTINVERT" name="cmDstInvert"/>
<element link="#lcl.lcltype.MERGECOPY" name="cmMergeCopy"/>
<element link="#lcl.lcltype.MERGEPAINT" name="cmMergePaint"/>
<element link="#lcl.lcltype.NOTSRCCOPY" name="cmNotSrcCopy"/>
<element link="#lcl.lcltype.NOTSRCERASE" name="cmNotSrcErase"/>
<element link="#lcl.lcltype.PATCOPY" name="cmPatCopy"/>
<element link="#lcl.lcltype.PATINVERT" name="cmPatInvert"/>
<element link="#lcl.lcltype.PATPAINT" name="cmPatPaint"/>
<element link="#lcl.lcltype.SRCAND" name="cmSrcAnd"/>
<element link="#lcl.lcltype.SRCCOPY" name="cmSrcCopy"/>
<element link="#lcl.lcltype.SRCERASE" name="cmSrcErase"/>
<element link="#lcl.lcltype.SRCINVERT" name="cmSrcInvert"/>
<element link="#lcl.lcltype.SRCPAINT" name="cmSrcPaint"/>
<element link="#lcl.lcltype.WHITENESS" name="cmWhiteness"/>
<element name="TRasterImageClass">
<short>Class reference used to create new instances of TRasterImage.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomBitmapClass">
<short>Class reference used to create new instances of TCustomBitmap.</short>
<descr/>
<seealso/>
</element>
<element name="TGraphicsObject">
<short>Primitive ancestor class, mainly for Delphi compatibility.
</short>
<descr>
<p>TGraphicsObject - In Delphi VCL this is the ancestor of TFont, TPen and
TBrush.
Since FPC 2.0 the LCL uses TFPCanvasHelper as ancestor.
</p>
</descr>
</element>
<!-- private -->
<element name="TGraphicsObject.FOnChanging"/>
<element name="TGraphicsObject.FOnChange"/>
<element name="TGraphicsObject.DoChange"/>
<element name="TGraphicsObject.DoChange.Msg"/>
<element name="TGraphicsObject.Changing">
<short>
<var>Changing</var> - software emulation of
<var>OnChanging</var> event.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphicsObject.Changed">
<short>
<var>Changed</var> - software emulation of
<var>OnChange</var> event.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphicsObject.Lock">
<short>
<var>Lock</var> - method for locking the object, making it unavailable for
changes.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphicsObject.UnLock">
<short>
<var>UnLock</var> - method for releasing locked object.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphicsObject.OnChanging">
<short>
<var>OnChanging</var> - event handler for changing object.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphicsObject.OnChange">
<short>
<var>OnChange</var> - event handler for changed object.
</short>
<descr/>
<seealso/>
</element>
<element name="TFontHandleCacheDescriptor">
<short>
<var>TFontHandleCacheDescriptor</var> - descriptor for items in Font Handle
Cache.
</short>
<descr/>
<seealso/>
</element>
<element name="TFontHandleCacheDescriptor.LogFont">
<short>Contains the logical font information for the cache descriptor.
</short>
<descr/>
<seealso/>
</element>
<element name="TFontHandleCacheDescriptor.LongFontName">
<short>
<var>LongFontName</var> - the long name for the Font.
</short>
<descr/>
<seealso/>
</element>
<element name="TFontHandleCache">
<short>
<var>TFontHandleCache</var> - a resource cache for font handles.
</short>
<descr/>
<seealso/>
</element>
<element name="TFontHandleCache.RemoveItem">
<short>Removes the specified resource item from the cache.</short>
<descr/>
<seealso>
<link id="#lcl.lclrescache.TResourceCache.RemoveItem">TResourceCache.RemoveItem</link>
</seealso>
</element>
<element name="TFontHandleCache.RemoveItem.Item">
<short>Item removed from the resource cache.</short>
</element>
<element name="TFontHandleCache.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>Calls the inherited constructor on entry. Assigns
TFontHandleCacheDescriptor to the ResourceCacheDescriptorClass property used
to create new cache entries.
</p>
</descr>
<seealso>
<link id="#lcl.lclrescache.TResourceCache.Create">TResourceCache.Create</link>
<link id="TFontHandleCacheDescriptor"/>
</seealso>
</element>
<element name="TFontHandleCache.CompareDescriptors">
<short>Compares the specified logical font names and font details.</short>
<descr/>
<seealso>
<link id="#lcl.lclrescache.TResourceCache.CompareDescriptors">TResourceCache.CompareDescriptors</link>
</seealso>
</element>
<element name="TFontHandleCache.CompareDescriptors.Result">
<short/>
</element>
<element name="TFontHandleCache.CompareDescriptors.Tree">
<short/>
</element>
<element name="TFontHandleCache.CompareDescriptors.Desc1">
<short/>
</element>
<element name="TFontHandleCache.CompareDescriptors.Desc2">
<short/>
</element>
<element name="TFontHandleCache.FindFont">
<short>
<var>FindFont</var> - returns the Font specified by its handle as a cache
item from the FontHandleCache.
</short>
<descr/>
<seealso/>
</element>
<element name="TFontHandleCache.FindFont.Result">
<short/>
</element>
<element name="TFontHandleCache.FindFont.TheFont">
<short/>
</element>
<element name="TFontHandleCache.FindFontDesc">
<short>
<var>FindFontDesc</var> - returns the descriptor for the FontHandle using its
<var>LogName</var> and its
<var>LongFontName</var>.
</short>
<descr/>
<seealso/>
</element>
<element name="TFontHandleCache.FindFontDesc.Result">
<short/>
</element>
<element name="TFontHandleCache.FindFontDesc.LogFont">
<short/>
</element>
<element name="TFontHandleCache.FindFontDesc.LongFontName">
<short/>
</element>
<element name="TFontHandleCache.Add">
<short>
<var>Add</var> the Font specified by its handle,
<var>LogFont</var> and
<var>LongFontName</var>, and returns a descriptor.
</short>
<descr/>
<seealso/>
</element>
<element name="TFontHandleCache.Add.Result">
<short/>
</element>
<element name="TFontHandleCache.Add.TheFont">
<short/>
</element>
<element name="TFontHandleCache.Add.LogFont">
<short/>
</element>
<element name="TFontHandleCache.Add.LongFontName">
<short/>
</element>
<element name="TFont">
<short>
Represents a font used to draw text in an application.
</short>
<descr>
<p>
<var>TFont</var> is a <var>TFPCustomFont</var> descendant, and provides
properties and methods needed to represent a font used in an LCL application.
</p>
<p>
Most of the information about the font is provided in a <var>TFontData</var>
instance used in protected methods like <var>GetData</var> and
<var>SetData</var>. Data items in the structure are exposed as properties,
and includes: <var>CharSet</var>, <var>Color</var>,
<var>Height</var>,<var>Name</var>, <var>Orientation</var>, <var>Pitch</var>,
<var>Quality</var>, <var>Size</var>, and <var>Style</var>.
</p>
<p>
The <var>Reference</var> property provides access to the font Handle in the
widgetset implementation.
</p>
</descr>
</element>
<!-- private -->
<element name="TFont.FIsMonoSpace"/>
<element name="TFont.FIsMonoSpaceValid"/>
<element name="TFont.FOrientation"/>
<element name="TFont.FPitch"/>
<element name="TFont.FQuality"/>
<element name="TFont.FStyle"/>
<element name="TFont.FCharSet"/>
<element name="TFont.FPixelsPerInch"/>
<element name="TFont.FUpdateCount"/>
<element name="TFont.FChanged"/>
<element name="TFont.FFontHandleCached"/>
<element name="TFont.FColor"/>
<element name="TFont.FHeight"/>
<element name="TFont.FReference"/>
<element name="TFont.FreeReference">
<short>Frees the widgetset font reference in the class instance.</short>
<descr>
<p>
<var>FreeReference</var> calls the inherited <var>Changing</var> method to
signal the <var>OnChanging</var> event handler (when assigned). FreeReference
ensures that a cache font handle for the font reference is removed from the
FontResourceCache. If the font handle is not cached, the handle is deleted
and the LCL handle in the font reference is set to <b>0</b> (<b>zero</b>).
</p>
<p>
FreeReference is called from methods which set the value in font properties
like: Name, Size, Pitch, Height, Style, and Orientation. It is also called
when the class instance is freed.
</p>
</descr>
<seealso>
<link id="TFont.Reference"/>
<link id="TFont.Name"/>
<link id="TFont.Height"/>
<link id="TFont.Size"/>
<link id="TFont.Pitch"/>
<link id="TFont.Style"/>
<link id="TFont.Orientation"/>
</seealso>
</element>
<element name="TFont.GetHandle">
<short>Gets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TFont.Handle"/>
</seealso>
</element>
<element name="TFont.GetHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.GetData">
<short>Gets the value for the FontData property.</short>
<descr/>
<seealso>
<link id="TFont.FontData"/>
</seealso>
</element>
<element name="TFont.GetData.Result">
<short>Values for the property.</short>
</element>
<element name="TFont.GetIsMonoSpace">
<short>Gets the value for the IsMonoSpace property.</short>
<descr/>
<seealso>
<link id="TFont.IsMonoSpace"/>
</seealso>
</element>
<element name="TFont.GetIsMonoSpace.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.GetReference">
<short>Gets the value for the Reference property.</short>
<descr/>
<seealso>
<link id="TFont.Reference"/>
</seealso>
</element>
<element name="TFont.GetReference.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.IsHeightStored">
<short>Gets the storage specifier for the Height property.</short>
<descr/>
<seealso>
<link id="TFont.Height"/>
</seealso>
</element>
<element name="TFont.IsHeightStored.Result">
<short>
<b>True</b> when Height contains a value different than the value in
DefFontData.
</short>
</element>
<element name="TFont.IsNameStored">
<short>Gets the storage specifier for the Name property.</short>
<descr/>
<seealso>
<link id="TFont.Name"/>
</seealso>
</element>
<element name="TFont.IsNameStored.Result">
<short>
<b>True</b> when Name contains a value different than the value in
DefFontData.
</short>
</element>
<element name="TFont.SetData">
<short>Sets the value for the FontData property.</short>
<descr/>
<seealso>
<link id="TFont.FontData"/>
</seealso>
</element>
<element name="TFont.SetData.FontData">
<short>New value for the property.</short>
</element>
<element name="TFont.SetHandle">
<short>Sets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TFont.Handle"/>
</seealso>
</element>
<element name="TFont.SetHandle.Value">
<short>New value for the property.</short>
</element>
<element name="TFont.ReferenceNeeded">
<short>
Ensures that Reference contains a valid logical font instance for the
widgetset.
</short>
<descr>
<p>No actions are performed in the method when the logical font in Reference
has already been allocated.
</p>
</descr>
<seealso>
<link id="TFont.Reference"/>
<link id="FontResourceCache"/>
<link id="TFontHandleCacheDescriptor"/>
</seealso>
</element>
<element name="TFont.SetPixelsPerInch">
<short>Sets the value for the PixelsPerInch property.</short>
<descr/>
<seealso>
<link id="TFont.PixelsPerInch"/>
</seealso>
</element>
<element name="TFont.SetPixelsPerInch.APixelsPerInch">
<short>New value for the property.</short>
</element>
<element name="TFont.GetCharSet">
<short>Gets the value for the CharSet property.</short>
<descr/>
<seealso>
<link id="TFont.CharSet"/>
</seealso>
</element>
<element name="TFont.GetCharSet.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.GetHeight">
<short>Gets the value for the Height property.</short>
<descr/>
<seealso>
<link id="TFont.Height"/>
</seealso>
</element>
<element name="TFont.GetHeight.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.GetName">
<short>Gets the value for the Name property.</short>
<descr/>
<seealso>
<link id="TFont.Name"/>
</seealso>
</element>
<element name="TFont.GetName.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.GetOrientation">
<short>Gets the value for the Orientation property.</short>
<descr/>
<seealso>
<link id="TFont.Orientation"/>
</seealso>
</element>
<element name="TFont.GetOrientation.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.GetPitch">
<short>Gets the value for the Pitch property.</short>
<descr/>
<seealso>
<link id="TFont.Pitch"/>
</seealso>
</element>
<element name="TFont.GetPitch.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.GetSize">
<short>Gets the value for the Size property.</short>
<descr/>
<seealso>
<link id="TFont.Size"/>
</seealso>
</element>
<element name="TFont.GetSize.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.GetStyle">
<short>Gets the value for the Style property.</short>
<descr>
<p>Bold, Italic, StrikeOut, Underline.
</p>
</descr>
<seealso/>
</element>
<element name="TFont.GetStyle.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.Changed">
<short>
Checks for pending updates (if there are any, returns <b>True</b>) or calls
inherited <var>Changed</var>.
</short>
<descr>
<p>
<var>Changed</var> is an overridden procedure used to maintain the internal
state for the class instance. If Changed has already been called for the font
instance, no additional actions are required or performed. Otherwise, the
inherited method is called to signal the <var>OnChanged</var> event handler
(when assigned).
</p>
<p>
Changed is called when any of the properties for the font are modified, or
when a new value is assigned to FontData or PixelsPerInch. Changed is called
from the <var>EndUpdate</var> method when the internal update count reaches
<b>0</b> (<b>zero</b>).
</p>
</descr>
<seealso>
<link id="TFont.Name"/>
<link id="TFont.CharSet"/>
<link id="TFont.Pitch"/>
<link id="TFont.Size"/>
<link id="TFont.Height"/>
<link id="TFont.Color"/>
<link id="TFont.Orientation"/>
<link id="TFont.Quality"/>
<link id="TFont.Style"/>
<link id="TFont.PixelsPerInch"/>
<link id="TFont.FontData"/>
<link id="TFont.EndUpdate"/>
</seealso>
</element>
<element name="TFont.DoAllocateResources">
<short>
<var>DoAllocateResources</var> - calls inherited method then calls
<var>GetReference</var>.
</short>
<descr/>
<seealso/>
</element>
<element name="TFont.DoCopyProps">
<short>
<var>DoCopyProps</var> - calls inherited method; if <var>From</var> argument
is another Font, copies specified properties directly.
</short>
<descr/>
<seealso/>
</element>
<element name="TFont.DoCopyProps.From">
<short/>
</element>
<element name="TFont.DoDeAllocateResources">
<short>
<var>DoDeAllocateResources</var> - frees references then calls inherited
method.
</short>
<descr/>
<seealso/>
</element>
<element name="TFont.SetCharSet">
<short>Sets the value for the CharSet property.</short>
<descr/>
<seealso>
<link id="TFont.CharSet"/>
</seealso>
</element>
<element name="TFont.SetCharSet.AValue">
<short>New value for the property.</short>
</element>
<element name="TFont.SetColor">
<short>Sets the value for the Color property.</short>
<descr>
<p>An overloaded variant of the method handles converting the TColor value to
the TFPColor values used in ancestor class.
</p>
</descr>
<seealso>
<link id="TFont.Color"/>
</seealso>
</element>
<element name="TFont.SetColor.Value">
<short>New value for the property.</short>
</element>
<element name="TFont.SetColor.NewColor">
<short>New value for the property.</short>
</element>
<element name="TFont.SetColor.NewFPColor">
<short>New property value as a TFPColor type.</short>
</element>
<element name="TFont.GetColor">
<short>Gets the value for the Color property.</short>
<descr/>
<seealso>
<link id="TFont.Color"/>
</seealso>
</element>
<element name="TFont.GetColor.Result">
<short>Value for the property.</short>
</element>
<element name="TFont.SetFlags">
<short>Sets the value for an indexed style flag.</short>
<descr>
<p>
<var>SetFlags</var> is an overridden method used to set the value for an
individual style flag by its ordinal position.
</p>
<p>
<var>Index</var> contains the position for the style flag used in the canvas
helper for the class.
</p>
<p>
<var>AValue</var> is a
<var>Boolean</var> value that indicates whether the
<var>TFontStyle</var> value is included in or excluded from the style flags.
</p>
<p>
SetFlags is called when a new value is assigned to the <var>Style</var>
property differs from the existing value.
</p>
</descr>
<seealso>
<link id="TFont.Style"/>
<link id="TFontStyle"/>
<link id="TFontStyles"/>
</seealso>
</element>
<element name="TFont.SetFlags.Index">
<short>Ordinal position for the style flag updated in the method.</short>
</element>
<element name="TFont.SetFlags.AValue">
<short>New value for the style flag at the specified position.</short>
</element>
<element name="TFont.SetFPColor">
<short>Sets the font Color to the specified TFPColor value.</short>
<descr>
<p>
<var>SetFPColor</var> is a method used to set the
<var>Color</var> for the font to the value specified in
<var>AValue</var>. AValue contains a
<var>TFPColor</var> value as defined in the FCL. SetFPColor calls
<var>FPColorToTColor</var> to convert AValue to the
<var>TColor</var> value applied to the Color property.
</p>
</descr>
<seealso>
<link id="TFont.Color"/>
<link id="FPColorToTColor"/>
</seealso>
</element>
<element name="TFont.SetFPColor.AValue">
<short>TFPColor value applied to the Color property.</short>
</element>
<element name="TFont.SetHeight">
<short>Sets the value for the Height property.</short>
<descr>
<p>Any change to Height is also converted to Points and applied to Size.
</p>
</descr>
<seealso>
<link id="TFont.Height"/>
<link id="TFont.Size"/>
</seealso>
</element>
<element name="TFont.SetHeight.value">
<short>New value for the property.</short>
</element>
<element name="TFont.SetName">
<short>Sets the value for the Name property.</short>
<descr/>
<seealso>
<link id="TFont.Name"/>
</seealso>
</element>
<element name="TFont.SetName.AValue">
<short>New value for the property.</short>
</element>
<element name="TFont.SetOrientation">
<short>Sets the value for the Orientation property.</short>
<descr/>
<seealso>
<link id="TFont.Orientation"/>
</seealso>
</element>
<element name="TFont.SetOrientation.AValue">
<short>New value for the property.</short>
</element>
<element name="TFont.SetPitch">
<short>Sets the value for the Pitch property.</short>
<descr/>
<seealso>
<link id="TFont.Pitch"/>
</seealso>
</element>
<element name="TFont.SetPitch.Value">
<short>New value for the property.</short>
</element>
<element name="TFont.SetSize">
<short>
<var>SetSize</var> - if
<var>AValue</var> is a new size, frees the old reference, calls the inherited
method, performs the appropriate rounding and sets the
<var>Changed</var> property.
</short>
<descr/>
<seealso>
<link id="TFont.Size"/>
</seealso>
</element>
<element name="TFont.SetSize.AValue">
<short/>
</element>
<element name="TFont.SetStyle">
<short>
<var>SetStyle</var> - specify which style to use.
</short>
<descr/>
<seealso/>
</element>
<element name="TFont.SetStyle.Value">
<short>New value for the property.</short>
</element>
<element name="TFont.SetQuality">
<short>
<var>SetQuality</var> - specify the quality.
</short>
<descr>Default, Draft, Proof, NonAntialiased, Antialiased
</descr>
<seealso/>
</element>
<element name="TFont.SetQuality.AValue">
<short>New value for the property.</short>
</element>
<element name="TFont.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor in
<var>TFont</var>. Create calls the inherited constructor on entry, and sets
the default values for properties including:
</p>
<dl>
<dt>Color</dt>
<dd>
Set to clDefault for platforms or widgetsets where it is enabled. Otherwise,
set to clWindowText.
</dd>
<dt>Pitch</dt>
<dd>Set to the value in DefFontData.</dd>
<dt>Charset</dt>
<dd>Set to the value in DefFontData.</dd>
<dt>Quality</dt>
<dd>Set to the value in DefFontData.</dd>
<dt>Height</dt>
<dd>Set to the value in DefFontData.</dd>
<dt>Style</dt>
<dd>Set to the value in DefFontData.</dd>
<dt>PixelsPerInch</dt>
<dd>Set to the vertical display density used in ScreenInfo.</dd>
<dt>Size</dt>
<dd>
Calculated using values in Height and PixelsPerInch. Applied by calling the
SetSize method inherited from TFPCustomFont.
</dd>
<dt>Name</dt>
<dd>
Set to the value in DefFontData, and applied by calling the SetName name
method inherited from TFPCustomFont.
</dd>
<dt>FPColor</dt>
<dd>
Calls the SetFPColor method inherited from TFPCanvasHelper to set the font
color to colBlack.
</dd>
</dl>
<p>
The DelayAllocate property from the TFPCanvasHelper ancestor is set to
<b>True</b> to defer resource allocation for the Canvas until it is used.
</p>
</descr>
<seealso>
<link id="#rtl.System.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TFont.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance.
Destroy calls <var>FreeReference</var> to free cached font resources for the
<var>Reference</var> class, and frees the <var>Handle</var> for the font. The
inherited destructor is called prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Destroy">TPersistent.Destroy</link>
</seealso>
</element>
<element name="TFont.Assign">
<short>Copies values from Source to the current class instance.</short>
<descr>
<p>
<var>Assign</var> is an overridden method used to copy values from the
specified Source into the current class instance. Overloaded variants are
provided that allow the source to be a <var>TPersistent</var> instance (which
is cast to <var>TFont</var>) or a <var>TLogFont</var> record instance.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
<link id="#lcl.lcltype.TLogFont">TLogFont</link>
</seealso>
</element>
<element name="TFont.Assign.Source">
<short>Persistent object with values stored in the method.</short>
</element>
<element name="TFont.Assign.ALogFont">
<short>Logical font resource with values stored in the method.</short>
</element>
<element name="TFont.BeginUpdate">
<short>Starts an update process for the class instance.</short>
<descr/>
<seealso/>
</element>
<element name="TFont.EndUpdate">
<short>Finishes an update process for the class instance.</short>
<descr/>
<seealso/>
</element>
<element name="TFont.FontData">
<short>Contains the data describing the font.</short>
<descr/>
<seealso/>
</element>
<element name="TFont.HandleAllocated">
<short>
<var>HandleAllocated</var> - returns <b>True</b> if a handle has been
allocated.
</short>
<descr/>
<seealso/>
</element>
<element name="TFont.HandleAllocated.Result">
<short/>
</element>
<element name="TFont.Handle">
<short>Operating system <var>Handle</var> for the Font.</short>
<descr>
<p>
Operating system <var>Handle</var> for the Font.
</p>
</descr>
<seealso/>
</element>
<element name="TFont.IsDefault">
<short>
<var>IsDefault</var> - returns <b>True</b> if this is the default Font.
</short>
<descr/>
<seealso/>
</element>
<element name="TFont.IsDefault.Result">
<short/>
</element>
<element name="TFont.IsEqual">
<short>
<var>IsEqual</var> - returns <b>True</b> if this Font is the same as the
specified Font.
</short>
<descr/>
<seealso/>
</element>
<element name="TFont.IsEqual.Result">
<short>
<b>True</b> when the font matches the one in the current class instance.
</short>
</element>
<element name="TFont.IsEqual.AFont">
<short>Font instance to compare to the current class instance.</short>
</element>
<element name="TFont.IsMonoSpace">
<short>Indicates if the font uses fixed-width characters (monospace).</short>
<descr>
<p>
<var>IsMonoSpace</var> is a read-only <var>Boolean</var> property which
indicates if the font is a monospaced font with a fixed character width. The
<var>FontIsMonoSpace</var> routine from the LCL interface is called to get the
property value, and uses the font handle in <var>Reference</var> to retrieve
the font data.
</p>
</descr>
<seealso>
<link id="TFont.Reference"/>
<link id="#lcl.lclintf.FontIsMonoSpace">FontIsMonoSpace</link>
</seealso>
</element>
<element name="TFont.SetDefault">
<short>Sets font properties to their default values.</short>
<descr>
<p>
<var>SetDefault</var> is a procedure used to set properties in the font to the
values used in the <var>DefFontData</var> variable. SetDefault calls
<var>BeginUpdate</var> to start an update process, and sets the values for the
following properties:
</p>
<ul>
<li>Name</li>
<li>Charset</li>
<li>Height</li>
<li>Pitch</li>
<li>Quality</li>
<li>Style</li>
<li>Color</li>
</ul>
<p>
Color is set to <var>clDefault</var> when the UseCLDefault compiler directive
is defined. Otherwise, the value <var>clWindowText</var> is used in the
property.
</p>
<p>
<var>EndUpdate</var> is called to finish the update process prior to exiting
from the method.
</p>
</descr>
<seealso>
<link id="DefFontData"/>
<link id="TFont.BeginUpdate"/>
<link id="TFont.EndUpdate"/>
</seealso>
</element>
<element name="TFont.PixelsPerInch">
<short>Display density for the font.</short>
<descr>
<p>
<var>PixelsPerInch</var> is an <var>Integer</var> property which indicates
the display density (or pixels per inch) for the font.
</p>
<p>
The default value for the property is set when the class instance is created,
and uses the value from the PixelsPerInchY member in ScreenInfo. It is also
updated when Assign is used to copy property values from another font
instance.
</p>
<p>
PixelsPerInch is used when values are assigned to the Height or Size
properties to convert pixel values to the Points unit of measure used in Size.
</p>
<p>
Setting a new value in PixelsPerInch causes Height to be scaled to the new
value for the property. Changed is also called to signal the OnChange event
handler (when assigned).
</p>
</descr>
<seealso/>
</element>
<element name="TFont.Reference">
<short>
<var>Reference</var> - References made to this Font.
</short>
<descr>
<p>
<var>Reference</var> is a read-only <var>TWSFontReference</var> property
which contains a reference to the widgetset class used for the font instance.
It provides access to the Handle for the font resource, and is used in
methods that need access to an existing font handle.
</p>
<p>
Resources for the property are allocated (when needed) and initialized by
calling the ReferenceNeeded method. The resources are freed in the
FreeReference method.
</p>
</descr>
<seealso/>
</element>
<element name="TFont.CharSet">
<short>Indicates the character set used in the font.</short>
<descr>
<p>
<var>CharSet</var> is a <var>TFontCharSet</var> property which contains a
numeric value representing the character set in the font instance. The
default value for the property is defined in the <var>DEFAULT_CHARSET</var>
constant, and indicates that the default character set for the operating
system or platform is used.
</p>
<p>
Setting a new value for the property causes the font <var>Reference</var>
class to be re-created, and <var>Changed</var> is called to signal the
<var>OnChange</var> event handler (when assigned).
</p>
<p>
CharSet is updated when the font data is read for the class instance, and
when <var>Assign</var> is called to copy values from another font instance.
</p>
</descr>
<seealso/>
</element>
<element name="TFont.Color">
<short>Color used to render text using the font.</short>
<descr>
<p>
<var>Color</var> is a <var>TColor</var> property which contains the color
used to render text using the font. The default value for the property is
clDefault when the UseCLDefault compiler directive is defined. Otherwise, the
default value is clWindowText.
</p>
<p>
Setting a new value for the property causes the ancestor class to be
notified, and Changed is called to signal the OnChange event handler (when
assigned).
</p>
</descr>
<seealso/>
</element>
<element name="TFont.Height">
<short>Height for the font (in pixels).</short>
<descr>
<p>
<var>Height</var> is an <var>Integer</var> property which contains the height
for the font in pixels. The property value is not stored during LCL streaming
operations when its value is the same as the value in <var>DefFontData</var>.
</p>
<p>
Setting a new value for the property causes the font handle in
<var>Reference</var> to be re-created. <var>Size</var> is also updated with
the new property value converted to Points (1/72 of an inch). The formula for
the conversion is:
</p>
<code>
Size := -MulDiv(AValue, 72, FPixelsPerInch);
</code>
<p>
<var>Changed</var> is called to signal the <var>OnChange</var> event handler
(when assigned).
</p>
<p>
When a value is assigned to Height, the value in Size is represented as a
negative number. Conversely, when a value is assigned to Size, the value in
Height is represented as a negative number.
</p>
<p>
Use Size to read or write the height for the font as a number of Points (1/72
inch).
</p>
</descr>
<seealso>
<link id="TFont.Size"/>
<link id="TFont.Reference"/>
<link id="TFont.PixelsPerInch"/>
</seealso>
</element>
<element name="TFont.Name">
<short>Name of the font.</short>
<descr>
<p>
Name is a String property which contains the name of the font in the class
instance. The initial value for the property is set when the class instance
is created, and uses the Name from the DefFontData variable. The property is
updated when Assign is called to copy values from another font instance.
</p>
<p>
Setting a new value for the property causes the font Reference to be
re-created, and the Changed method is called to signal the OnChange event
handler (when assigned).
</p>
<p>
Name is not included in LCL streaming when the property value is the same as
the Name member in DefFontData.
</p>
</descr>
<seealso/>
</element>
<element name="TFont.Orientation">
<short>Rotation for the current font in 1/10ths of a degree.</short>
<descr>
<p>
<var>Orientation</var> is an <var>Integer</var> property which contains the
rotation angle used for text in 1/10ths of a degree. The rotation angle is
determined by the relationship between the X Axis for the Canvas and the
baseline for the font, and uses the following directions:
</p>
<table>
<caption>Orientation Values and Directions</caption>
<tr>
<td>0</td>
<td>Text is drawn horizontally from left to right.</td>
</tr>
<tr>
<td>900</td>
<td>Text is drawn vertically from bottom to top.</td>
</tr>
<tr>
<td>1800</td>
<td>Text is drawn upside down from right to left.</td>
</tr>
<tr>
<td>2700</td>
<td>Text is drawn vertically from top to bottom.</td>
</tr>
</table>
<p>
Setting a new value for the property causes the font Reference to be
re-created, and calls Changes to signal the OnChange event handler (when
assigned).
</p>
<p>
The default value for the property is <b>0</b> (<b>zero</b>).
</p>
</descr>
</element>
<element name="TFont.Pitch">
<short>
<var>Pitch</var> type of the <var>Font</var>.
</short>
<descr>
<p>
<var>Pitch</var> is a <var>TFontPitch</var> property which indicates the
pitch for the font face.
</p>
<p>
Setting a new value for the property causes the font <var>Reference</var> to
be re-created, and the <var>Changed</var> method is called to signal the
<var>OnChange</var> event handler (when assigned).
</p>
</descr>
<seealso>
<link id="TFontPitch"/>
</seealso>
</element>
<element name="TFont.Quality">
<short>Output quality for the <var>Font</var>, such as anti-aliasing.</short>
<descr>
<p>
<var>Quality</var> is a <var>TFontQuality</var> property which contains a
value with the output quality for the font. The output quality determines how
carefully font attributes are applied to output using the font.
</p>
<p>
The default value for the property is <var>fqDefault</var>. See
<var>TFontQuality</var> for more information about the enumeration values and
their meanings.
</p>
<p>
Setting a new value for the property causes the font <var>Reference</var> to
be re-created, and <var>Changed</var> is called to signal the
<var>OnChange</var> event handler (when assigned).
</p>
</descr>
<seealso>
<link id="TFontQuality"/>
<link id="TFontData"/>
</seealso>
</element>
<element name="TFont.Size">
<short>Vertical size for the font in Points.</short>
<descr>
<p>
<var>Size</var> is an <var>Integer</var> property which contains the height
for the font in Points (1/72 of an inch). The value in Size is calculated
using the logical font height, and is not read or written in LCL component
streaming.
</p>
<p>
Setting a new value for the property causes the font Reference to be
re-created for the class instance. The new property value is stored by
calling <var>SetSize</var> in the ancestor class. The value is also converted
to pixels (using <var>PixelsPerInch</var>) and stored in the
<var>Height</var> property. The formula used for the conversion is:
</p>
<code>
FHeight := -MulDiv(AValue, FPixelsPerInch, 72);
</code>
<p>
When a value is assigned to Size, the value in Height is represented as a
negative number. Conversely, when a value is assigned to Height, the value in
Size is represented as a negative number.
</p>
<p>
Use the Height property to set the vertical size for the font as a number of
pixels.
</p>
</descr>
<seealso>
<link id="TFont.Height"/>
<link id="TFont.PixelsPerInch"/>
<link id="TFont.Reference"/>
</seealso>
</element>
<element name="TFont.Style">
<short>Styles applied to the font face.</short>
<descr>
<p>
<var>Style</var> is a
<var>TFontStyles</var> property which indicates the font styles applied to
the font face. The Style set contains 0 (zero ) or more values from the
<var>TFontStyle</var> enumeration, including:
</p>
<dl>
<dt>fsBold</dt>
<dd>Bold font style</dd>
<dt>fsItalic</dt>
<dd>Italic font style</dd>
<dt>fsStrikeOut</dt>
<dd>Strike-out (or strike-through) font style</dd>
<dt>fsUnderline</dt>
<dd>Underline font style</dd>
</dl>
<p>The default value for the property is an empty set (<b>[]</b>), and
indicates that no styles are applied to the font face.
</p>
<p>Setting a new value for the property causes the font Reference to be
re-created. The Change method is called to signal the OnChange event handler
(when assigned).
</p>
</descr>
<seealso>
<link id="TFontStyles"/>
<link id="TFontStyle"/>
</seealso>
</element>
<element name="TPenStyle">
<short>Represents line drawing styles used when rendering to a canvas.</short>
<descr>
<p>
TPenStyle is an alias for the TFPPenStyle type in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="TPenMode">
<short>Represents pen modes used when rendering to a canvas.</short>
<descr>
<p>TPenMode is an alias for the TFPPenMode type in the FCL.
</p>
</descr>
<seealso/>
</element>
<element name="TPenEndCap">
<short>Represents end cap styles used for a pen.</short>
<descr>
<p>
TPenEndCap is an enumerated typed with values representing geometric shapes
used as end caps for a pen. End caps are applied to the starting and ending
points in a line segment.
</p>
<p>
TPenEndCap is the type used to implement the EndCap property in TPen.
</p>
</descr>
<version>Added in LCL version 1.2.0.</version>
<seealso>
<link id="TPen.EndCap"/>
</seealso>
</element>
<element name="TPenEndCap.pecRound">
<short>Rounded end cap which extends beyond the point.</short>
</element>
<element name="TPenEndCap.pecSquare">
<short>Rectangular end cap which extends beyond the point.</short>
</element>
<element name="TPenEndCap.pecFlat">
<short>Flat (or blunt) end cap which does not extend beyond the point.</short>
</element>
<element name="TPenJoinStyle">
<short>Represents join styles used between line segments.</short>
<descr/>
<version>Added in LCL version 1.2.0.</version>
<seealso/>
</element>
<element name="TPenJoinStyle.pjsRound">
<short>Round shape used at the join points.</short>
</element>
<element name="TPenJoinStyle.pjsBevel">
<short>Bevel shape used at the join points.</short>
</element>
<element name="TPenJoinStyle.pjsMiter">
<short>Mitered angular shape used at join points.</short>
</element>
<element name="TPenPattern">
<short>Represents a pattern brush for a pen.</short>
<descr>
<p>
<var>TPenPattern</var> is an array type used to store the sequence of
<var>LongWord</var> values that make up the pen pattern. TPenPattern is
essentially a user-defined pen style.
</p>
<p>TPenPattern is the type used to implement the <var>Pattern</var> property
in <var>TPen</var>.
</p>
</descr>
<seealso>
<link id="TPen"/>
</seealso>
</element>
<element name="TPenHandleCacheDescriptor">
<short>Cache descriptor for Pen Handles.</short>
<descr/>
<seealso/>
</element>
<element name="TPenHandleCacheDescriptor.ExtPen">
<short>Extended logical pen structure for the cache entry.</short>
</element>
<element name="TPenHandleCacheDescriptor.Pattern">
<short>The <var>Pattern</var> for this pen.</short>
</element>
<element name="TPenHandleCache">
<short>
<var>TPenHandleCache</var> - Resource Cache for Pen Handles.
</short>
<descr/>
<seealso/>
</element>
<element name="TPenHandleCache.RemoveItem">
<short/>
<descr/>
<seealso>
<link id="#lcl.lclrescache.TResourceCache.RemoveItem">TResourceCache.RemoveItem</link>
</seealso>
</element>
<element name="TPenHandleCache.RemoveItem.Item">
<short/>
</element>
<element name="TPenHandleCache.Create">
<short>Constructor for the class instance.</short>
<descr/>
<seealso/>
</element>
<element name="TPenHandleCache.CompareDescriptors">
<short>
Compares the specified image descriptors to determine if they have the same
pens and pattern data.
</short>
<descr/>
<seealso>
<link id="#lcl.lclrescache.TResourceCache.CompareDescriptors">TResourceCache.CompareDescriptors</link>
</seealso>
</element>
<element name="TPenHandleCache.CompareDescriptors.Result">
<short/>
</element>
<element name="TPenHandleCache.CompareDescriptors.Tree">
<short/>
</element>
<element name="TPenHandleCache.CompareDescriptors.Desc1">
<short/>
</element>
<element name="TPenHandleCache.CompareDescriptors.Desc2">
<short/>
</element>
<element name="TPenHandleCache.FindPen">
<short>
<var>FindPen</var> - returns a
<var>ResourceCacheItem</var> corresponding to the nominated Handle.
</short>
<descr/>
<seealso/>
</element>
<element name="TPenHandleCache.FindPenDesc">
<short>
<var>FindPenDesc</var> - returns a descriptor for the given pen and pattern.
</short>
</element>
<element name="TPenHandleCache.Add">
<short>
<var>Add</var> - returns a cache descriptor corresponding to the pen that has
been added to the cache.
</short>
</element>
<element name="TPenHandleCache.Add.Result">
<short/>
</element>
<element name="TPenHandleCache.Add.APen">
<short/>
</element>
<element name="TPenHandleCache.Add.AExtPen">
<short/>
</element>
<element name="TPenHandleCache.Add.APattern">
<short/>
</element>
<element name="TPen">
<short>Represents a pen used to draw on a canvas.</short>
<descr>
<p>
<var>TPen</var> is a <var>TFPCustomPen</var> descendant which contains
settings for a pen used to draw lines and shapes on a canvas. It includes
properties that define the color for the pen, the end cap and join style used
for line segments, and a pattern used for user-defined line drawing styles.
</p>
<p>
Essentially, TPen maps the types used for properties in the FCL ancestor
class to the types used in the LCL.
</p>
<p>
TPen is the type used to implement the Pen property in <var>TCanvas</var>.
</p>
</descr>
<seealso>
<link id="TCanvas.Pen"/>
</seealso>
</element>
<!-- private -->
<element name="TPen.FColor"/>
<element name="TPen.FEndCap"/>
<element name="TPen.FCosmetic"/>
<element name="TPen.FJoinStyle"/>
<element name="TPen.FPattern"/>
<element name="TPen.FPenHandleCached"/>
<element name="TPen.FReference"/>
<element name="TPen.FreeReference">
<short>
Frees the Pen class reference and optionally removes it from the Pen resource
cache.
</short>
<descr/>
<seealso/>
</element>
<element name="TPen.GetHandle">
<short>Gets the value for the Handle property.</short>
<descr/>
<seealso/>
</element>
<element name="TPen.GetHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TPen.GetReference">
<short>Gets the value for the Reference property.</short>
<descr/>
<seealso/>
</element>
<element name="TPen.GetReference.Result">
<short>Value for the property.</short>
</element>
<element name="TPen.ReferenceNeeded">
<short>Ensures that the Reference class is allocated and initialized.</short>
<descr/>
<seealso/>
</element>
<element name="TPen.SetCosmetic">
<short>Sets the value for the Cosmetic property.</short>
<descr/>
<seealso>
<link id="TPen.Cosmetic"/>
</seealso>
</element>
<element name="TPen.SetCosmetic.AValue">
<short>New value for the property.</short>
</element>
<element name="TPen.SetHandle">
<short>Sets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TPen.Handle"/>
<link id="TPen.Reference"/>
</seealso>
</element>
<element name="TPen.SetHandle.Value">
<short>New value for the property.</short>
</element>
<element name="TPen.DoAllocateResources">
<short>
Performs actions needed to allocate resources for the class instance.
</short>
<descr>
<p>
<var>DoAllocateResources</var> is an overridden method used to allocate
resources for the class instance. DoAllocateResources calls the inherited
method , and calls GetReference to initialize the <var>Reference</var>
property used in the class instance.
</p>
</descr>
<seealso>
<link id="TPen.Reference"/>
</seealso>
</element>
<element name="TPen.DoDeAllocateResources">
<short>
Performs actions to free resources allocated for the class instance.
</short>
<descr>
<p>
Overridden.
Calls FreeReference.
Calls the inherited method prior to exiting from the method.
</p>
</descr>
<seealso/>
</element>
<element name="TPen.DoCopyProps">
<short>
Copies properties from the specified source to the class instance.
</short>
<descr>
<p>Overridden.
Provides support for the TPen type in the From parameter.
Calls the inherited method.
</p>
</descr>
<seealso/>
</element>
<element name="TPen.DoCopyProps.From">
<short>Canvas helper descendant with properties copied in the method.</short>
</element>
<element name="TPen.SetColor">
<short>Sets the value for the Color property.</short>
<descr/>
<seealso>
<link id="TPen.Color"/>
</seealso>
</element>
<element name="TPen.SetColor.Value">
<short>New value for the property.</short>
</element>
<element name="TPen.SetFPColor">
<short>Sets the pen Color to the specified TFPColor value.</short>
<descr>
<p>
<var>SetFPColor</var> is a method used to set the <var>Color</var> for the
pen to the value specified in <var>AValue</var>. AValue contains a
<var>TFPColor</var> value as defined in the FCL. SetFPColor calls
<var>FPColorToTColor</var> to convert AValue to the <var>TColor</var> value
applied to the <var>Color</var> property.
</p>
</descr>
<seealso>
<link id="TPen.Color"/>
<link id="FPColorToTColor"/>
</seealso>
</element>
<element name="TPen.SetEndCap">
<short>
Specifies the type of end cap used for the pen if it is a geometric pen.
</short>
<descr>
<p>
Defined for FCL versions where the EndCap property is implemented.
</p>
</descr>
<seealso/>
</element>
<element name="TPen.SetEndCap.AValue">
<short>New value for the property.</short>
</element>
<element name="TPen.SetJoinStyle">
<short>Sets the value for the JoinStyle property.</short>
<descr>
<p>
<var>SetJoinStyle</var> specifies the style used on a geometric pen when lines
join (at corners etc).
</p>
</descr>
<seealso/>
</element>
<element name="TPen.SetJoinStyle.AValue">
<short>New value for the property.</short>
</element>
<element name="TPen.SetMode">
<short>Sets the value for the Mode property.</short>
<descr>Overridden write access specifier.
</descr>
<seealso>
<link id="TPen.Mode"/>
</seealso>
</element>
<element name="TPen.SetMode.Value">
<short>New value for the property.</short>
</element>
<element name="TPen.SetStyle">
<short>Sets the value for the Style property.</short>
<descr>
<p>
Overridden write access specifier for the Style property.
</p>
</descr>
<seealso>
<link id="TPen.Style"/>
</seealso>
</element>
<element name="TPen.SetStyle.Value">
<short>New value for the property.</short>
</element>
<element name="TPen.SetWidth">
<short>Sets the value for the Width property.</short>
<descr>
<p>
Overridden write access specifier for the Width property.
</p>
</descr>
<seealso>
<link id="TPen.Width"/>
</seealso>
</element>
<element name="TPen.SetWidth.value">
<short>New value for the property.</short>
</element>
<element name="TPen.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for TPen. It calls the
inherited Create method, and sets the default values for properties including:
</p>
<ul>
<li>DelayAllocate</li>
<li>Cosmetic</li>
<li>EndCap</li>
<li>JoinStyle</li>
<li>Width</li>
<li>Style</li>
<li>Mode</li>
<li>Color</li>
</ul>
</descr>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TPen.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the destructor for <var>TPen</var>. It frees resources
in Reference and calls the inherited Destroy method.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Destroy">TPersistent.Destroy</link>
</seealso>
</element>
<element name="TPen.Assign">
<short>Copies property values from the specified persistent object.</short>
<descr>
<p>
<var>Assign</var> is an overridden method used to copy property values from
the persistent object in <var>Source</var> to the current class instance.
</p>
<p>Source is the <var>TPersistent</var> class instance with the property
values copied in the method. If Source is a <var>TPen</var> instance, the
properties introduced in TPen are copied into the current class instance.
Otherwise, the inherited method is called.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TPen.Assign.Source">
<short>Persistent object with values copied in the method.</short>
</element>
<element name="TPen.Handle">
<short>The Operating System <var>Handle</var> for the current <var>Pen</var>.
</short>
<descr>
<p>
<var>Handle</var> is a <var>HPEN</var> property with the handle allocated for
the pen by the operating system or widgetset. Setting a new value for the
property causes the pen <var>Reference</var> to be re-created. The
<var>Changed</var> method is called to signal the <var>OnChange</var> event
handler (when assigned).
</p>
<remark>
The Handle property has been marked as deprecated. Use the Reference property
to access the Handle for the pen.
</remark>
</descr>
<seealso>
<link id="TPen.Reference"/>
</seealso>
</element>
<element name="TPen.Reference">
<short>A <var>Reference</var> made to this Pen.</short>
<descr>
<p>
<var>Reference</var> is a read-only <var>TWSPenReference</var> property which
provides a reference to the class allocated for the pen by a widgetset class.
Use <var>Reference</var> to access the handle allocated for the pen resource.
</p>
</descr>
<seealso/>
</element>
<element name="TPen.GetPattern">
<short>Gets the Pattern used in the Pen.
</short>
<descr>
<p>
<var>GetPattern</var> is a <var>TPenPattern</var> function used to get Pattern
for the pen. Use SetPattern to assign the Pattern used for the pen.
</p>
<remark>
Please note that the Pattern property in the TFPCustomPen ancestor class uses
a different type (LongWord instead of TPenPattern).
</remark>
</descr>
<seealso>
<link id="TPen.SetPattern"/>
</seealso>
</element>
<element name="TPen.SetPattern">
<short>
<var>SetPattern</var> - specifies the pattern for the pen.
</short>
<descr>
<p>SetPattern is a reintroduced procedure in TPen to use the TPenPattern
type. The property in the ancestor class uses the LongWord type.
</p>
</descr>
<seealso/>
</element>
<element name="TPen.Color">
<short>The <var>Color</var> of the current <var>Pen</var>.
</short>
<descr>
<p>
<var>Color</var> is a <var>TColor</var> property which contains the color used
by the pen to draw on a canvas. The default value for the property is
<var>clBlack</var>.
</p>
</descr>
</element>
<element name="TPen.Cosmetic">
<short>
Indicates whether the Pen is <var>Cosmetic</var> (non-geometric).
</short>
<descr>
<p>
<var>Cosmetic</var> is a <var>Boolean</var> property which indicates whether
the pen is a Cosmetic one. When set to <b>False</b>, it is a Geometric pen.
</p>
<p>
A pen can be either Cosmetic or Geometric. A cosmetic pen is always 1 pixel
wide, while a geometric pen can have any width. The width of a geometric pen
is defined in world units and thus depends on transforms (scaling, rotation,
shear, reflection) applied to a canvas. Operations using a cosmetic pen are
faster.
</p>
<p>
The default value for the property is <b>True</b>.
</p>
<p>
Setting a new value for the property causes the pen <var>Reference</var> to
be re-created. The <var>Changed</var> method is called to signal the
<var>OnChange</var> event handler (when assigned).
</p>
</descr>
</element>
<element name="TPen.EndCap">
<short>The sort of <var>EndCap</var> used on the Pen.</short>
<descr>
<p>
The end cap can be Round, Square or Flat. When end caps are round, the last
points are drawn with a rounded shape. When end caps are square, the last
points are drawn with a square aspect. When end caps are flat, the last points
are not drawn at all.
</p>
</descr>
<version>Added in LCL version 1.2.0.</version>
<seealso/>
</element>
<element name="TPen.JoinStyle">
<short>
<var>JoinStyle</var> - the style of joint where two lines meet or cross.
</short>
<descr>
<p>
The join style can be: Round, Bevel or Miter. When style is Round, then
line joins use a rounded shape. When style is Bevel, then line joins are
beveled at their intersection. When style is Miter, then line joins are
mitered at their intersection.
</p>
</descr>
<version>Added in LCL version 1.2.0.</version>
<seealso/>
</element>
<element name="TPen.Mode">
<short>Pen mode for the class instance.</short>
<descr>
<p>
<var>Mode</var> is a <var>TFPPenMode</var> property which contains the pen
mode used in the class instance. A pen mode indicates the raster operation
performed to combine the pen color with existing pixels in the destination
bitmap. Mode can contain any of the values:
</p>
<dl>
<dt>pmBlack</dt>
<dd>Pixels affected by the pen are always set to black.</dd>
<dt>pmWhite</dt>
<dd>Pixels affected by the pen are always set to white.</dd>
<dt>pmNop</dt>
<dd>Pixels affected by the pen are unchanged.</dd>
<dt>pmNot</dt>
<dd>
Pixels affected by the pen are set to the inverse for the current color.
</dd>
<dt>pmCopy</dt>
<dd>Pixels affected by the pen are set to the pen color.</dd>
<dt>pmNotCopy</dt>
<dd>Pixels affected by the pen are set to the inverse of the pen color.</dd>
<dt>pmMergePenNot</dt>
<dd>
Pixels affected by the pen are set to a combination of the pen color and the
inverse of the pixel color.
</dd>
<dt>pmMaskPenNot</dt>
<dd>
Pixels affected by the pen are set to colors common to both the pen and the
inverse of the pixel color.
</dd>
<dt>pmMergeNotPen</dt>
<dd>
Pixels affected by the pen are set to a combination of the pen color and the
inverse of the pixel color.
</dd>
<dt>pmMaskNotPen</dt>
<dd>
Pixels affected by the pen are set to a combination of the colors common to
the inverse of the pen color and the current pixel color.
</dd>
<dt>pmMerge</dt>
<dd>
Pixels affected by the pen are set to a combination of the pen color and the
current pixel color.
</dd>
<dt>pmNotMerge</dt>
<dd>
Pixels affected by the pen are set to the inverse of the color derived using
pmMerge pen mode.
</dd>
<dt>pmMask</dt>
<dd>
Pixels affected by the pen are set a combination of the colors common to the
pen color and the current pixel color.
</dd>
<dt>pmNotMask</dt>
<dd>
Pixels affected by the pen are set to the inverse of the color for pmMask pen
mode.
</dd>
<dt>pmXor</dt>
<dd>
Pixels affected by the pen are set to a combination of the pen color and the
current pixel color, but not both.
</dd>
<dt>pmNotXor</dt>
<dd>
Pixels affected by the pen are set to the inverse of the color using pmXor
pen mode.
</dd>
</dl>
<p>
The default value for the property is <var>pmCopy</var>.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TPen.Style">
<short>Contains the line drawing style for the pen.</short>
<descr>
<p>
Style is a TPenStyle property with the style used to draw lines with the Pen.
It can contain one of the following constant values:
</p>
<ul>
<li>psSolid</li>
<li>psDash</li>
<li>psDot</li>
<li>psDashDot</li>
<li>psDashDotDot</li>
<li>psInsideFrame</li>
<li>psPattern</li>
<li>psClear</li>
</ul>
<p>
psDash, psDot, psDashDot, and psDashDotDot are drawn using the corresponding
TPenPattern for the Style. On the Windows platform, these styles are not
available if Width has any value other than 1.
</p>
<p>
psInsideFrame uses a solid drawing style, and a Color dithered to one of the
values in the color table for the device. The content drawn with the pen is
reduced in size so that it appears inside of a bounding rectangle including
the Width for the pen.
</p>
<p>
psClear, in general, tells the implementing class or routine that the drawing
operation is not needed.
</p>
<p>
The default value for the property is <var>psSolid</var>. Setting a new value
for the property causes the handle in Reference to be freed. The Changed
method is called to signal the OnChange event handler (when assigned).
</p>
</descr>
<seealso>
<link id="TPen.Width"/>
<link id="TPenStyle"/>
<link id="TPenPattern"/>
</seealso>
</element>
<element name="TPen.Width">
<short>Width for lines drawn using the Pen.</short>
<descr>
<p>
<var>Width</var> is an <var>Integer</var> property which contains the width
for the pen.
</p>
<p>
Setting a new value for the property causes the pen <var>Reference</var> to
be re-created. The <var>Changed</var> method is called to signal the
<var>OnChange</var> event handler (when assigned). The default value for the
property is <b>1</b>.
</p>
<p>
Width is related to the <var>Cosmetic</var> property. A cosmetic pen has a
width of <b>1</b>. Setting Width to a value larger than <b>1</b> prevents
using it as a cosmetic pen.
</p>
</descr>
<seealso/>
</element>
<element name="TBrushStyle">
<short>Represents the pattern for a Brush.</short>
<descr>
<p>
TBrushStyle is an alias for the TFPBrushStyle type from the FCL. Brush style
constants defined in the LCL include:
</p>
<dl>
<dt>bsSolid</dt>
<dd>
Fills a shape with the color for the brush.
</dd>
<dt>bsClear</dt>
<dd>
Fills a shape with transparency (using the existing color as the fill color).
</dd>
<dt>bsHorizontal</dt>
<dd>
Fills a shape with a pattern consisting of equidistant horizontal lines.
</dd>
<dt>bsVertical</dt>
<dd>
Fills a shape with a pattern consisting of equidistant vertical lines.
</dd>
<dt>bsFDiagonal</dt>
<dd>
Fills a shape with a pattern consisting of equidistant lines drawn with a
45-degree downward, left-to-right hatch.
</dd>
<dt>bsBDiagonal</dt>
<dd>
Fills a shape with a pattern consisting of equidistant lines drawn with a
45-degree upward, left-to-right hatch.
</dd>
<dt>bsCross</dt>
<dd>
Fills a shape with a pattern consisting of equidistant lines drawn as a
horizontal and vertical cross-hatch.
</dd>
<dt>bsDiagCross</dt>
<dd>
Fills a shape with a pattern consisting of equidistant lines drawn as a 45
degree cross-hatch.
</dd>
<dt>bsImage</dt>
<dd>
Fills a shape with a user-specified image (bitmap).
</dd>
<dt>bsPattern</dt>
<dd>
Fills a shape with a user-specified pattern (bitmap).
</dd>
</dl>
<p>
The constant values are assigned to the Style property in TBrush.
</p>
</descr>
<seealso>
<link id="TBrush.Style"/>
</seealso>
</element>
<element name="TBrushHandleCache">
<short>
<var>TBrushHandleCache</var> - resource cache for Brush Handles.</short>
<descr/>
<seealso/>
</element>
<element name="TBrushHandleCache.RemoveItem">
<short>Deletes the widgetset object with the handle in Item and removes it
from the resource cache.
</short>
<descr/>
<seealso>
<link id="#lcl.lclrescache.TResourceCache.RemoveItem">TResourceCache.RemoveItem</link>
</seealso>
</element>
<element name="TBrushHandleCache.RemoveItem.Item">
<short>Item removed from the cache.</short>
</element>
<element name="TBrushHandleCache.Create">
<short>Constructor for the class instance.</short>
<descr/>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TBrush">
<short>The <var>Brush</var> to be used to <var>Paint</var> on the current
<var>Canvas</var>.
</short>
<descr>
<p>
A <var>Brush</var> is typically used to fill an enclosed area on the
<var>Canvas</var> with one particular color or colored pattern.
</p>
</descr>
<seealso/>
</element>
<element name="TBrush.FBrushHandleCached"/>
<element name="TBrush.FColor"/>
<element name="TBrush.FBitmap"/>
<element name="TBrush.FReference"/>
<element name="TBrush.FInternalUpdateIndex"/>
<element name="TBrush.FreeReference">
<short>Frees the widgetset reference for the Brush.</short>
</element>
<element name="TBrush.GetHandle">
<short>Gets the value for the Handle property.</short>
<descr/>
<seealso/>
</element>
<element name="TBrush.GetHandle.Result">
<short/>
</element>
<element name="TBrush.GetReference">
<short>Gets the value for the Reference property.</short>
<descr/>
<seealso/>
</element>
<element name="TBrush.GetReference.Result">
<short/>
</element>
<element name="TBrush.GetColor">
<short>Gets the value for the Color property.</short>
<descr/>
<seealso/>
</element>
<element name="TBrush.GetColor.Result">
<short/>
</element>
<element name="TBrush.ReferenceNeeded">
<short>
Ensures that resources are allocated for the Reference property.
</short>
<descr/>
<seealso/>
</element>
<element name="TBrush.SetHandle">
<short>Sets the value for the Handle property.</short>
<descr/>
<seealso/>
</element>
<element name="TBrush.SetHandle.Value">
<short>New value for the property.</short>
</element>
<element name="TBrush.DoChange">
<short>Performs action needed when the Brush is changed.</short>
<descr/>
<seealso/>
</element>
<element name="TBrush.DoChange.Msg">
<short/>
</element>
<element name="TBrush.DoAllocateResources">
<short>
Performs actions needed to allocate (or reallocate) resources for the brush
instance.
</short>
<descr/>
<seealso>
<link id="TBrush.Reference"/>
<link id="TBrush.Handle"/>
</seealso>
</element>
<element name="TBrush.DoDeAllocateResources">
<short>
Performs actions to free resources allocated for the brush instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TBrush.DoCopyProps">
<short>
Copies properties from the specified FCL brush into the current class instance.
</short>
<descr>
<p>
<var>DoCopyProps</var> is an overridden method in <var>TBrush</var> used to
copy properties from the brush instance in <var>From</var> to the current
brush instance. If From is derived from TBrush, it ensures that the Handle in
Reference is freed prior to copying values and calls the Changed method when
the operation has been completed.
</p>
<p>
DoCopyProps calls the inherited method to copy values for the Style, Image,
and Color properties.
</p>
<p>
DoCopyProps is called from the CopyBrush method in the ancestor class.
</p>
</descr>
<seealso/>
</element>
<element name="TBrush.DoCopyProps.From">
<short>
TFPCanvasHelper instance with the properties copied in the method.
</short>
</element>
<element name="TBrush.SetColor">
<short>Sets the value for the Color property.</short>
<descr>
<p>
An overloaded variant provides both <var>TColor</var> and <var>TFPColor</var>
values. It is used to set the color by calling the <var>SetFPColor</var>
method in the ancestor class. No actions are performed in the method when the
values in <var>Color</var> and <var>FPColor</var> have not been changed and
the brush <var>Style</var> contains <var>bsClear</var>.
</p>
<p>
Frees the brush handle in the <var>References</var> property, and sets the
value in <var>Bitmap</var> to <b>Nil</b>. Calls the inherited
<var>SetStyle</var> method when Style is bsClear. Calls <var>Changed</var> to
signal the <var>OnChange</var> event handler (when assigned).
</p>
</descr>
<seealso>
<link id="TBrush.Color"/>
<link id="TBrush.Style"/>
<link id="TBrush.Reference"/>
<link id="TBrush.Bitmap"/>
</seealso>
</element>
<element name="TBrush.SetColor.Value">
<short>New value for the property.</short>
</element>
<element name="TBrush.SetColor.NewColor">
<short>TColor value applied to the brush Color.</short>
</element>
<element name="TBrush.SetColor.NewFPColor">
<short>TFPColor value applied to the brush Color.</short>
</element>
<element name="TBrush.SetFPColor">
<short>Sets the Brush color to the specified TFPColor value.</short>
<descr>
<p>
<var>SetFPColor</var> is an overridden method used to set the color using the
<var>TFPColor</var> value in <var>AValue</var>. Calls FPColorToTColor to
convert AValue to a TColor value, and applies it to the Color property.
</p>
</descr>
<seealso>
<link id="TColor"/>
<link id="TBrush.Color"/>
<link id="TBrush.SetColor"/>
</seealso>
</element>
<element name="TBrush.SetFPColor.AValue">
<short>Color value applied to the Color property.</short>
</element>
<element name="TBrush.SetBitmap">
<short>Sets the value for the Bitmap property.</short>
<descr/>
<seealso>
<link id="TBrush.Bitmap"/>
</seealso>
</element>
<element name="TBrush.SetBitmap.Value">
<short>New value for the property.</short>
</element>
<element name="TBrush.SetStyle">
<short>Sets the value for the Style property.</short>
<descr/>
<seealso>
<link id="TBrush.Style"/>
</seealso>
</element>
<element name="TBrush.SetStyle.Value">
<short>New value for the property.</short>
</element>
<element name="TBrush.Assign">
<short>
Copies values from Source to the current brush instance.
</short>
<descr>
<p>
<var>Assign</var> is a procedure used to copy properties values from
<var>Source</var> to the current brush instance.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TBrush.Assign.Source">
<short>Brush instance with values copied in the method.</short>
</element>
<element name="TBrush.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance.
Create calls the inherited constructor on entry, and sets the default values
for properties including:
</p>
<dl>
<dt>Bitmap</dt>
<dd>Set to Nil.</dd>
<dt>Color</dt>
<dd>Set to clWhite. The inherited SetFPColor method is called to apply the
new value.</dd>
<dt>Style</dt>
<dd>The default value is bsSolid, and the inherited SetStyle method is called
to apply the value in ancestor classes.
</dd>
</dl>
<p>
Create sets the value in <var>DelayAllocate</var> to <b>True</b> to defer
resource allocation until the brush is used. The internal counter used to
track updates is reset.
</p>
</descr>
<seealso>
<link id="#rtl.System.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TBrush.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance.
Destroy frees the handle for the brush in the <var>Reference</var> property,
and calls the inherited destructor prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Destroy">TPersistent.Destroy</link>
</seealso>
</element>
<element name="TBrush.EqualsBrush">
<short>Compares the specified Brush to the current class instance.</short>
<descr/>
<seealso/>
</element>
<element name="TBrush.EqualsBrush.Result">
<short>
<b>True</b> when the properties from the specified brush match the values in
the current class instance.
</short>
</element>
<element name="TBrush.EqualsBrush.ABrush">
<short>Brush instance compared to the current class.</short>
</element>
<element name="TBrush.Bitmap">
<short>Bitmap with the pattern for the Brush.</short>
<descr>
<p>
<var>Bitmap</var> is a <var>TCustomBitmap</var> property which contains the
pattern used to draw the brush, and is generally used to fill shapes or
rectangular areas.
</p>
<p>
When assigned, the Bitmap image is used to draw the brush pattern instead of
using the <var>Style</var> for brush. Setting a value for the property causes
values in <var>Color</var> and <var>Style</var> to be reset. Color is set to
<var>clWhite</var>, and the brush Style is set to <var>bsSolid</var>. The
Handle for the brush is freed, and the <var>Changed</var> method is called to
signal the <var>OnChange</var> event handler (when assigned).
</p>
<p>
The image in Bitmap is discarded when a new value is assigned to the Style
property.
</p>
</descr>
<seealso>
<link id="TBrush.Style"/>
<link id="TBrush.Color"/>
</seealso>
</element>
<element name="TBrush.Handle">
<short>Operating System handle for the brush.</short>
<descr>
<p>
<var>Handle</var> is a <var>HBRUSH</var> property which contains the handle
allocated for the brush.
</p>
<remark>
Handle has been marked as deprecated. Use the Reference property to access the
handle for the brush.
</remark>
</descr>
<seealso>
<link id="TBrush.Reference"/>
</seealso>
</element>
<element name="TBrush.Reference">
<short>Contains a Reference to the handle allocated for the Brush.</short>
<descr>
<p>
<var>Reference</var> is a read-only <var>TWSBrushReference</var> property
which contains a reference to the widgetset class used for the brush
instance. It provides access to the Handle allocated for the brush resource,
and is used in methods that need access to an existing brush handle.
</p>
<p>
Resources for the property are allocated (when needed) and initialized by
calling the ReferenceNeeded method. The resources are freed in the
FreeReference method.
</p>
</descr>
<seealso>
<link id="TBrush.Handle"/>
</seealso>
</element>
<element name="TBrush.Color">
<short>
The <var>Color</var> of the current <var>Brush</var>.
</short>
<descr>
<p>
<var>Color</var> is a <var>TColor</var> property with the color used to draw
the brush pattern indicated in the <var>Style</var> property. It is the
background or fill color when Style contains <var>bsSolid</var>. Color is not
used when Style is set to <var>bsClear</var>; in fact, the brush style in
<var>TFPCustomBrush</var> ancestor is actually set to <var>bsSolid</var>.
</p>
<p>
Setting a new value for the property causes an existing brush handle in
<var>Reference</var> to be freed, and the pattern image in <var>Bitmap</var>
is discarded.
</p>
<p>
The default value for the property is <var>clWhite</var>. The default
property value is restored when a new value is assigned to the Bitmap
property.
</p>
</descr>
<seealso>
<link id="TBrush.Style"/>
<link id="TBrush.Bitmap"/>
<link id="TBrush.Reference"/>
<link id="TBrush.Handle"/>
</seealso>
</element>
<element name="TBrush.Style">
<short>Indicates the pattern drawn using the brush.</short>
<descr>
<p>
<var>Style</var> is a <var>TFPBrushStyle</var> property which indicates the
pattern drawn using the brush. Style contains one of the enumeration values
defined in the FCL. The enumeration values are introduced as constants in the LCL, and include:
</p>
<ul>
<li>bsSolid</li>
<li>bsClear</li>
<li>bsHorizontal</li>
<li>bsVertical</li>
<li>bsFDiagonal</li>
<li>bsBDiagonal</li>
<li>bsCross</li>
<li>bsDiagCross</li>
<li>bsImage</li>
<li>bsPattern</li>
</ul>
<p>
Setting a new value in Style causes the brush Handle in Reference to be freed.
The image in Bitmap is also discarded by setting the member to <b>Nil</b>. The
<var>Changed</var> method is called to signal the <var>OnChange</var> event
handler (when assigned).
</p>
<p>
The default value for the property is <var>bsSolid</var>. The value in Style
is automatically set to <var>bsSolid</var> when a value is assigned to the
<var>Bitmap</var> property.
</p>
</descr>
<seealso>
<link id="TBrush.Bitmap"/>
<link id="TBrushStyle"/>
<link id="bsSolid"/>
<link id="bsClear"/>
<link id="bsHorizontal"/>
<link id="bsVertical"/>
<link id="bsFDiagonal"/>
<link id="bsBDiagonal"/>
<link id="bsCross"/>
<link id="bsDiagCross"/>
<link id="bsImage"/>
<link id="bsPattern"/>
</seealso>
</element>
<element name="TRegionCombineMode">
<short>Represents combination methods used for regions.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionCombineMode.rgnAnd">
<short>
Create a region with the intersecting parts of the original regions.
</short>
</element>
<element name="TRegionCombineMode.rgnCopy">
<short>
Create a region that is a copy of the first of the two original regions.
</short>
</element>
<element name="TRegionCombineMode.rgnDiff">
<short>
Create a region with the area in the first region not found in the second
region.
</short>
</element>
<element name="TRegionCombineMode.rgnOr">
<short>Create a region that represents both of the original regions.</short>
</element>
<element name="TRegionCombineMode.rgnXOR">
<short>
Create a region with the areas from the original regions that do not overlap.
</short>
</element>
<element name="TRegionOperationType">
<short>Represents Region operators used in TRegionOperation.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionOperationType.rgnNewRect">
<short>Create a new bounding box for the region.</short>
</element>
<element name="TRegionOperationType.rgnCombine">
<short>Create a new region using the combine mode for an operation.</short>
</element>
<element name="TRegionOperation">
<short>Represents a region operation.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionOperation.ROType">
<short>Raster operation type.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionOperation.Source1">
<short>Index to a source region.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionOperation.Source2">
<short>Index to a source region.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionOperation.Dest">
<short>Index to the destination region.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionOperation.CombineMode">
<short>Region combine mode for the operation.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionOperation.Rect">
<short>Rectangle with the bounding box for the destination region.</short>
<descr/>
<seealso/>
</element>
<element name="TRegionOperations">
<short>Array type used to store TRegionOpertation elements.</short>
<descr/>
<seealso/>
</element>
<element name="TRegion">
<short>
A defined area on a screen or canvas used to render a graphic image or text
output.
</short>
<descr>
<p>
<var>TRegion</var> is a <var>TGraphicsObject</var> descendant which represents
shaped areas that can be drawn, filled, or examined on a screen or canvas. The
shaped areas can be one or more rectangles, and can overlap.
</p>
<p>
Use <var>AddRectangle</var> to create and combine a new rectangular area with
the existing areas in the region. Each region has a <var>Handle</var> which
identifies the construct. It is modified when a new rectangular area is added
to the region.
</p>
<p>
TRegion is the type used to implement the <var>Region</var> propriety in
<var>TCanvas</var>, and passed as an argument to the <var>SetShape</var>
method in <var>TWinControl</var>.
</p>
<remark>
Some operating systems and widgetsets allow regions to be defined with
ellipses, rounded rectangles, and polygons as the sub-regions. TRegion is
limited to the rectangle with the area that is the bounding box for a shape.
See <var>TLazRegion</var> in <file>LazRegions.pas</file> and
<var>TLazCanvas</var> in <file>LazCanvas.pas</file> for alternate
implementations that provide these capabilities.
</remark>
</descr>
<seealso/>
</element>
<element name="TRegion.FReference"/>
<element name="TRegion.AddOperation">
<short>Adds the specified operation to the region.</short>
<descr>
<p>
AddOperation is an empty implementation in the current LCL version.
</p>
</descr>
<seealso/>
</element>
<element name="TRegion.AddOperation.AOp">
<short/>
</element>
<element name="TRegion.ClearSubRegions">
<short>Clears sub-regions defined for the region.</short>
<descr>
<p>
ClearSubRegions is an empty implementation in the current LCL version.
</p>
</descr>
<seealso/>
</element>
<element name="TRegion.AddSubRegion">
<short>Adds a sub-region with the specified handle to the region .</short>
<descr>
<p>
<var>AddSubRegion</var> is an empty implementation in the current LCL version.
</p>
</descr>
<seealso/>
<seealso/>
</element>
<element name="TRegion.AddSubRegion.AHandle">
<short/>
</element>
<element name="TRegion.FreeReference">
<short>Frees the Region Reference in the class instance.</short>
<descr/>
<seealso/>
</element>
<element name="TRegion.GetReference">
<short>Gets the value for the Reference property.</short>
<descr/>
<seealso>
<link id="TRegion.Reference"/>
</seealso>
</element>
<element name="TRegion.GetReference.Result">
<short>Value for the property.</short>
</element>
<element name="TRegion.GetHandle">
<short>Gets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TRegion.Handle"/>
</seealso>
</element>
<element name="TRegion.GetHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TRegion.ReferenceNeeded">
<short>
Ensures that resources are allocated in Reference for the region.
</short>
<descr/>
<seealso/>
</element>
<element name="TRegion.SetHandle">
<short>Sets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TRegion.Handle"/>
</seealso>
</element>
<element name="TRegion.SetHandle.Value">
<short>New value for the property.</short>
</element>
<element name="TRegion.SetClipRect">
<short>Sets the value for the ClipRect property.</short>
<descr/>
<seealso>
<link id="TRegion.ClipRect"/>
</seealso>
</element>
<element name="TRegion.SetClipRect.value">
<short>New value for the property.</short>
</element>
<element name="TRegion.GetClipRect">
<short>Gets the value for the ClipRect property.</short>
<descr/>
<seealso>
<link id="TRegion.ClipRect"/>
</seealso>
</element>
<element name="TRegion.GetClipRect.Result">
<short>Value for the property.</short>
</element>
<element name="TRegion.Create">
<short>Constructor for the class instance.</short>
<descr/>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TRegion.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance. It
calls FreeReference to free resources allocated for the Reference, and calls
the inherited destructor prior to exit.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Destroy">TPersistent.Destroy</link>
</seealso>
</element>
<element name="TRegion.Assign">
<short>
<var>Assign</var> - if
<var>Source</var> is another
<var>TRegion</var>, copies the dimensions of the clipping rectangle.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TRegion.Assign.Source">
<short>Persistent object with properties copied in the method.</short>
</element>
<element name="TRegion.AddRectangle">
<short>Convenience routine to add a rectangle to the region.</short>
<descr>
<p>
Gets a handle for the rectangular defined by the opposing corners with the X1,
Y1, X2, and Y2 coordinates. The new region handle is OR-ed with the existing
handle for the region.
</p>
<p>
Calls ReferenceNeeded to ensure that the handle for the region has been
allocated.
</p>
<p>
Discards the new region handle by calling DeleteObject.
</p>
</descr>
<seealso/>
</element>
<element name="TRegion.AddRectangle.X1">
<short>Horizontal coordinate for one corner of the rectangular area.</short>
</element>
<element name="TRegion.AddRectangle.Y1">
<short>Vertical coordinate for one corner of the rectangular area.</short>
</element>
<element name="TRegion.AddRectangle.X2">
<short>
Horizontal coordinate for the opposing corner of the rectangular area.
</short>
</element>
<element name="TRegion.AddRectangle.Y2">
<short>
Vertical coordinate for the opposing corner of the rectangular area.
</short>
</element>
<element name="TRegion.ClipRect">
<short>The clipping rectangle for the region.</short>
<descr/>
<seealso/>
</element>
<element name="TRegion.Handle">
<short>Operating System Handle for the region.</short>
<descr/>
<seealso>
<link id="#lcl.lcltype.HRGN">HRGN</link>
<link id="#rtl.sysutils.THandle">THandle</link>
</seealso>
</element>
<element name="TRegion.Reference">
<short>A <var>Reference</var> to the current Region.</short>
<descr/>
<seealso/>
</element>
<element name="TGraphic">
<short>Abstract base class used for images in supported image formats.
</short>
<descr>
<p>
The <var>TGraphic</var> class is an <b>abstract</b> base class for graphic
images in image formats supported in the LCL. TGraphic establishes an API
that is used in the LCL to read and write image data using a file, stream,
resource, or the clipboard. Many of its methods are defined as <b>virtual</b>
and/or <b>abstract</b>, and must be implemented (or re-implemented) in
descendent classes to provide support for specific image formats.
</p>
<p>
Methods defined in TGraphic include:
</p>
<ul>
<li>LoadFromFile</li>
<li>LoadFromStream</li>
<li>LoadFromMimeStream</li>
<li>LoadFromLazarusResource</li>
<li>LoadFromResourceName</li>
<li>LoadFromResourceID</li>
<li>LoadFromClipboardFormat</li>
<li>LoadFromClipboardFormatID</li>
<li>SaveToFile</li>
<li>SaveToStream</li>
<li>SaveToClipboardFormat</li>
<li>SaveToClipboardFormatID</li>
<li>GetSupportedSourceMimeTypes</li>
<li>GetResourceType</li>
<li>GetFileExtensions</li>
<li>IsStreamFormatSupported</li>
</ul>
<p>
TGraphic does <b>not</b> contain a mechanism for displaying or rendering an
image. This capability is implemented in descendent classes which provide a
<var>TCanvas</var> suitable for the image data, such as: TRasterImage,
TBitmap, TIcon, TPixmap, TJPegImage, TGifImage, et. al.
</p>
<p>
Properties common to most image formats are defined in the class, and include:
</p>
<ul>
<li>Height</li>
<li>Width</li>
<li>Modified</li>
<li>Empty</li>
<li>MimeType</li>
<li>Palette</li>
<li>PaletteModified</li>
<li>Transparent</li>
</ul>
<p>Event handlers are provided for change and progress notifications,
including:
</p>
<ul>
<li>OnChange</li>
<li>OnProgress</li>
</ul>
<p>
TGraphic is the type used to implement the Graphic property in TPicture, and
passed as an argument to methods in TCanvas.
</p>
</descr>
<seealso>
<link id="TPicture"/>
<link id="TBitmap"/>
<link id="TIcon"/>
<link id="TJpegImage"/>
<link id="TGIFImage"/>
<link id="TPixmap"/>
<link id="TPortableNetworkGraphic"/>
<link id="TPortableAnyMapGraphic"/>
<link id="TCanvas"/>
</seealso>
</element>
<!-- private -->
<element name="TGraphic.FModified"/>
<element name="TGraphic.FTransparent"/>
<element name="TGraphic.FOnChange"/>
<element name="TGraphic.FOnProgress"/>
<element name="TGraphic.FPaletteModified"/>
<element name="TGraphic.Changed">
<short>Performs action needed when the image data has changed.
</short>
<descr>
<p>
<var>Changed</var> is a procedure used to perform actions needed when the
image data for the class instance has been changed. Changed sets the value in
<var>Modified</var> to <b>True</b>, and signals the <var>OnChange</var> event
handler (when assigned).
</p>
<p>
Changed is called when the value in Modified is changed from <b>False</b> to
<b>True</b>.
</p>
</descr>
<seealso>
<link id="TGraphic.Modified"/>
</seealso>
</element>
<element name="TGraphic.Changed.Sender">
<short>Object for the change notification.</short>
</element>
<element name="TGraphic.Equals">
<short>
Determines if the specified class instance is the same as the current class
instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphic.Equals.Result">
<short>
<b>True</b> when the specified object the same instance as the current class.
</short>
</element>
<element name="TGraphic.Equals.Graphic">
<short>TGraphics instance compared in the method.</short>
</element>
<element name="TGraphic.Equals.Obj">
<short>TObject instance compared in the method.</short>
</element>
<element name="TGraphic.DefineProperties">
<short>
<var>DefineProperties</var> finds out whether the object really is a binary
(graphic).
</short>
<descr>
<p>
Ensures that ReadData and WriteData are used to read the binary values for
image data in TGraphic instances. Calls the DefineBinaryProperty method in
Filer to set the read and write procedures for the data.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.DefineProperties.Filer">
<short>
TFiler instance used to read and write property values during component
streaming.
</short>
</element>
<element name="TGraphic.Draw">
<short>
Method used to draw the Graphic on the specified Canvas, in the specified
Rectangle.
</short>
<descr>
<p>
<var>Draw</var> is an <b>abstract virtual</b> procedure used to render data
in the graphic to the specified Canvas using the given coordinate rectangle.
Draw must be implemented in a descendent class to perform actions required
for a specific image format.
</p>
<p>
<var>Canvas</var> is the <var>TCanvas</var> instance where the graphic is
rendered.
</p>
<p>
<var>Rect</var> is a <var>TRect</var> instance with the coordinates where
graphic is drawn on the Canvas.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.Draw.ACanvas">
<short>Canvas used to render the graphic.</short>
</element>
<element name="TGraphic.Draw.Rect">
<short>Canvas coordinates where the graphic is drawn.</short>
</element>
<element name="TGraphic.GetEmpty">
<short>
Gets the value for the Empty property.
</short>
<descr>
<p>
<var>GetEmpty</var> is an <b>abstract virtual</b> <var>Boolean</var> function
used to get the value for the Empty property. The return value is <b>True</b>
when no image data exists for the graphic.
</p>
<p>
GetEmpty must be implemented in a descendent class to provide support for a
specific image format.
</p>
</descr>
<seealso>
<link id="TGraphic.Empty"/>
</seealso>
</element>
<element name="TGraphic.GetEmpty.Result">
<short><b>True</b> when no data exists in the graphic.</short>
</element>
<element name="TGraphic.GetHeight">
<short>Gets the value for the Height property.</short>
<descr/>
<seealso>
<link id="TGraphic.Height"/>
</seealso>
</element>
<element name="TGraphic.GetHeight.Result">
<short>Value for the property.</short>
</element>
<element name="TGraphic.GetMimeType">
<short>Gets the value for the MimeType property.</short>
<descr/>
<seealso>
<link id="TGraphic.MimeType"/>
</seealso>
</element>
<element name="TGraphic.GetMimeType.Result">
<short/>
</element>
<element name="TGraphic.GetPalette">
<short>Gets the value for the Palette property.</short>
<descr>
<p>Always returns 0 (representing an unassigned handle) in TGraphic.
</p>
</descr>
<seealso>
<link id="TGraphic.Palette"/>
</seealso>
</element>
<element name="TGraphic.GetPalette.Result">
<short>Value for the property.</short>
</element>
<element name="TGraphic.GetTransparent">
<short>Gets the value for the Transparent property.</short>
<descr/>
<seealso>
<link id="TGraphic.Transparent"/>
</seealso>
</element>
<element name="TGraphic.GetTransparent.Result">
<short>Value for the property.</short>
</element>
<element name="TGraphic.GetWidth">
<short>Gets the value for the Width property.</short>
<descr/>
<seealso>
<link id="TGraphic.Width"/>
</seealso>
</element>
<element name="TGraphic.GetWidth.Result">
<short>Value for the property.</short>
</element>
<element name="TGraphic.Progress">
<short>Monitor the <var>Progress</var> of the drawing.</short>
<descr>
<p>
<var>Progress</var> is an overloaded procedure used to perform actions needed
for progress notifications for the class instance. Arguments passed to the
method identify the class instance, the progress step, the completion amount,
and display options for the notification.
</p>
<p>
Progress signals the <var>OnProgress</var> event handler (when assigned)
using the parameter values as arguments. Applications must implement an
OnProgress event handler to respond to the progress notification.
</p>
<p>
Progress is a virtual method, and can be overridden in a descendent class to
preform any actions needed when reading or writing image data for a specific
image format.
</p>
<remark>
Please note the data type used for the PercentDone argument. It is declared
as a Byte type, and will accept a value that exceeds 100.
</remark>
</descr>
<seealso>
<link id="TGraphic.OnProgress"/>
<link id="TProgressEvent"/>
</seealso>
</element>
<element name="TGraphic.Progress.Sender">
<short>Object for the notification.</short>
</element>
<element name="TGraphic.Progress.Stage">
<short>Indicates whether an operation is starting, running, or ending.</short>
</element>
<element name="TGraphic.Progress.PercentDone">
<short>Completion percentage for the progress step.</short>
</element>
<element name="TGraphic.Progress.RedrawNow">
<short>Indicates if the application should redraw the image.</short>
</element>
<element name="TGraphic.Progress.R">
<short>Rectangle with the coordinates affected by the progress step.</short>
</element>
<element name="TGraphic.Progress.Msg">
<short>Message for the progress notification.</short>
</element>
<element name="TGraphic.Progress.DoContinue">
<short>Indicates if the caller should continue the current operation.</short>
</element>
<element name="TGraphic.ReadData">
<short>
<var>ReadData</var> - reads data for the Graphic from a stream.
</short>
<descr>
<p>
<var>ReadData</var> is a procedure used to read binary data for the graphic
from the specified stream. It is used by the
<var>TFiler</var> instance which loads data during component streaming.
</p>
<p>
ReadData calls <var>LoadFromStream</var> to complete the operation.
</p>
</descr>
<seealso>
<link id="TGraphic.LoadFromStream"/>
<link id="TGraphic.WriteData"/>
</seealso>
</element>
<element name="TGraphic.ReadData.Stream">
<short>TStream instance where data for the graphic is stored.</short>
</element>
<element name="TGraphic.SetHeight">
<short>Sets the value for the Height Property.</short>
<descr>
<p>
<var>SetHeight</var> is an abstract virtual method, and must be implemented
in a descendent class.
</p>
</descr>
<seealso>
<link id="TGraphic.Height"/>
</seealso>
</element>
<element name="TGraphic.SetHeight.Value">
<short>New value for the property.</short>
</element>
<element name="TGraphic.SetPalette">
<short>Sets the value for the Palette property.</short>
<descr>
<p>
SetPalette is an empty implementation in TGraphic.
</p>
</descr>
<seealso>
<link id="TGraphic.Palette"/>
</seealso>
</element>
<element name="TGraphic.SetPalette.Value">
<short>New value for the property.</short>
</element>
<element name="TGraphic.SetTransparent">
<short>Sets the value for the Transparent property.</short>
<descr>
<p>
<var>SetTransparent</var> is an <b>abstract virtual</b> method, and must be
implemented in a descendent class.
</p>
</descr>
<seealso>
<link id="TGraphic.Transparent"/>
</seealso>
</element>
<element name="TGraphic.SetTransparent.Value">
<short>New value for the property.</short>
</element>
<element name="TGraphic.SetWidth">
<short>Sets the value for the Width property.</short>
<descr>
<p>
<var>SetWidth</var> is an <b>abstract virtual</b> method, and must be
implemented in a descendent class.
</p>
</descr>
<seealso>
<link id="TGraphic.Width"/>
</seealso>
</element>
<element name="TGraphic.SetWidth.Value">
<short>New value for the property.</short>
</element>
<element name="TGraphic.SetModified">
<short>Sets the value for the Modified property.</short>
<descr/>
<seealso>
<link id="TGraphic.Modified"/>
</seealso>
</element>
<element name="TGraphic.SetModified.Value">
<short>Value for the property.</short>
</element>
<element name="TGraphic.WriteData">
<short>
Writes the data for the Graphic to a stream.
</short>
<descr>
<p>
Used by the TFiler instance for the class during LCL component streaming.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.WriteData.Stream">
<short>
TStream instance where the data for the class instance is written.
</short>
</element>
<element name="TGraphic.Assign">
<short>
Implements object persistence for the TGraphic type.
</short>
<descr>
<p>
<var>Assign</var> is an overridden method in <var>TGraphic</var>. It ensures
that the inherited Assign method is not called if the object instance in
<var>ASource</var> has not been assigned. If ASource contains <b>Nil</b>, the
Clear method is called. If ASource has an assigned value, the inherited Assign
method is called to copy property values from ASource into the current class
instance.
</p>
</descr>
<seealso>
<link id="TGraphic.Clear"/>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TGraphic.Assign.ASource">
<short>Persistent object with property values copied in the method.</short>
</element>
<element name="TGraphic.Clear">
<short>
Clear has an empty implementation in TGraphic.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphic.Create">
<short>
Constructor for the class instance.
</short>
<descr>
<p>
Create is a <b>virtual</b> method in TGraphic; it is recommended that a
constructor be supplied to <b>override</b> this method in descendent classes.
</p>
</descr>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TGraphic.LazarusResourceTypeValid">
<short>
Determines if the specified resource type is valid for the image format.
</short>
<descr>
<p>
<var>LazarusResourceTypeValid</var> is a Boolean function used to determine
if the specified resource type is valid for the image format.
</p>
<p>
LazarusResourceTypeValid always returns <b>False</b> in <var>TGraphic</var>.
The method must be overridden in descendent classes to check for resource
type(s) supported for a specific image format.
</p>
</descr>
<seealso>
<link id="TCustomBitmap.LazarusResourceTypeValid"/>
<link id="TFPImageBitmap.LazarusResourceTypeValid"/>
<link id="TCustomIcon.LazarusResourceTypeValid"/>
<link id="TIcnsIcon.LazarusResourceTypeValid"/>
<link id="TCursorImage.LazarusResourceTypeValid"/>
</seealso>
</element>
<element name="TGraphic.LazarusResourceTypeValid.Result">
<short>
Returns <b>True</b> when ResourceType is supported in the image format.
</short>
</element>
<element name="TGraphic.LazarusResourceTypeValid.AResourceType">
<short>The resource type examined in the method.</short>
</element>
<element name="TGraphic.LoadFromFile">
<short>Reads data for the graphic from a file.</short>
<descr>
<p>
<var>LoadFromFile</var> reads data for the graphic from the local file system.
<var>FileName</var> contains the name of the file on the local file system
with data for the graphic, and may contain UTF-8-encoded characters in the
file name.
</p>
<p>
LoadFromFile creates a temporary <var>TFileStreamUTF8</var> instance that is
used to read the contents of the file by calling <var>LoadFromStream</var>.
Any existing image data in the class instance is discarded. An Exception can
be raised in LoadFromStream if Filename does not contain a valid file name.
</p>
</descr>
<errors>
Raises an Exception if an invalid file name is passed to the method.
</errors>
<seealso>
<link id="TGraphic.LoadFromStream"/>
<link id="TGraphic.LoadFromMimeStream"/>
<link id="TGraphic.LoadFromResourceName"/>
<link id="TGraphic.LoadFromLazarusResource"/>
<link id="TGraphic.LoadFromClipboardFormat"/>
<link id="TGraphic.SaveToFile"/>
</seealso>
</element>
<element name="TGraphic.LoadFromFile.Filename">
<short>The name of the file containing the graphic data.</short>
</element>
<element name="TGraphic.LoadFromStream">
<short>Reads graphic data from a stream.</short>
<descr>
<p>
<var>LoadFromStream</var> is an abstract virtual method used to load graphic
data from the stream instance specified in <var>Stream</var>. It must be
implemented in a descendent class to provide support for reading a specific
image format from the stream.
</p>
<p>
LoadFromStream is used in the implementation of methods like:
<var>ReadData</var>, <var>LoadFromMimeStream</var>,
<var>LoadFromResourceID</var>, <var>LoadFromResourceName</var>,
<var>LoadFromLazarusResource</var>, and <var>LoadFromFile</var>.
</p>
</descr>
<seealso>
<link id="TGraphic.LoadFromFile"/>
<link id="TGraphic.LoadFromLazarusResource"/>
<link id="TGraphic.LoadFromMimeStream"/>
<link id="TGraphic.LoadFromResourceID"/>
<link id="TGraphic.LoadFromResourceName"/>
<link id="TGraphic.ReadData"/>
</seealso>
</element>
<element name="TGraphic.LoadFromStream.Stream">
<short>TStream instance with the graphic data read in the method.</short>
</element>
<element name="TGraphic.LoadFromMimeStream">
<short>Loads the from the specified stream for the given MIME type.</short>
<descr>
<p>
<var>LoadFromMimeStream</var> reads graphic data from a stream for the given
MIME type. LoadFromMimeStream compares the value in AMimeType to the value in
the MimeType property. When the values are the same, the LoadFromStream
method is called the load the image data for the graphic from the stream in
AStream.
</p>
<p>
In TGraphic, an <var>EInvalidGraphic</var> is raised when AMimeType contains
any value other than an empty string (<b>''</b>).
</p>
<remark>
Must be overridden in a descendent class to provide support for a MIME type
representing a specific image format.
</remark>
</descr>
<seealso/>
</element>
<element name="TGraphic.LoadFromMimeStream.AStream">
<short>Stream with the content loaded in the method.</short>
</element>
<element name="TGraphic.LoadFromMimeStream.AMimeType">
<short>MIME type representing the stream content.</short>
</element>
<element name="TGraphic.LoadFromLazarusResource">
<short>Load the graphic data from a Lazarus Resource (.lrs) file.</short>
<descr/>
<seealso/>
</element>
<element name="TGraphic.LoadFromLazarusResource.ResName">
<short>Name of the .lrs file with the content loaded in the method.</short>
</element>
<element name="TGraphic.LoadFromResourceName">
<short>
Loads a resource with the specified name from the given handle.
</short>
<descr>
<p>
<var>LoadFromResourceName</var> is a procedure used to load a resource with
the name specified in <var>ResName</var> using the handle provided in
<var>Instance</var>. LoadFromResourceName calls <var>GetResourceType</var> to
get the <var>Integer</var> resource type used in the class instance. No
actions are performed in the method when the <var>TResourceType</var> value is
unassigned (contains <b>Nil</b>).
</p>
<p>
LoadFromResourceName creates a temporary <var>TResourceStream</var> that is
used to load the content for the class instance by calling the
<var>LoadFromStream</var> method.
</p>
<p>
Use <var>LoadFromResourceID</var> to load a resource by its Resource ID.
</p>
<p>
Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
<b>.lrs</b> file with a give name.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TGraphic.GetResourceType"/>
<link id="TGraphic.LoadFromStream"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
<link id="#rtl.classes.TResourceStream">TResourceStream</link>
</seealso>
</element>
<element name="TGraphic.LoadFromResourceName.Instance">
<short>Handle where the content for the resource is stored.</short>
</element>
<element name="TGraphic.LoadFromResourceName.ResName">
<short>Name for the resource loaded in the method.</short>
</element>
<element name="TGraphic.LoadFromResourceID">
<short>
Loads graphic data from a resource identified by the integer identifier
<var>ResID</var>.
</short>
<descr>
<p>
LoadFromResourceID is a procedure used to load a resource with the specified
Resource ID into the class instance. Instance contains the Handle used to
read the resource. LoadFromResourceName calls <var>GetResourceType</var> to
get the <var>Integer</var> resource type used in the class instance. No
actions are performed in the method when the <var>TResourceType</var> value
is unassigned (contains <b>Nil</b>).
</p>
<p>
LoadFromResourceName creates a temporary <var>TResourceStream</var> that is
used to load the content for the class instance by calling the
<var>LoadFromStream</var> method. The value in ResID is located in the
resource, and its resource handle is used to get the content stored in the
stream.
</p>
<p>
An EResNotFound exception is raised during stream initialization if the
resource type or the resource handle is invalid.
</p>
<p>
Use <var>LoadFromResourceName</var> to load a resource with a given resource
name.
</p>
<p>
Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
<b>.lrs</b> file with a give name.
</p>
</descr>
<errors>
Raises an EResNotFound exception when the TResourceStream is initialized if
the resource type or the resource handle is invalid.
</errors>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TGraphic.GetResourceType"/>
<link id="TGraphic.LoadFromStream"/>
<link id="TGraphic.LoadFromResourceName"/>
<link id="TGraphic.LoadFromLazarusResource"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
<link id="#rtl.classes.TResourceStream">TResourceStream</link>
</seealso>
</element>
<element name="TGraphic.LoadFromResourceID.Instance">
<short>Handle where the content for the resource is stored.</short>
</element>
<element name="TGraphic.LoadFromResourceID.ResID">
<short>Pointer to the Integer Resource ID for the resource.</short>
</element>
<element name="TGraphic.LoadFromClipboardFormat">
<short>
<var>LoadFromClipboardFormat</var> - Replace the current image with the
contents of the clipboard.
</short>
<descr>
<p>
<var>LoadFromClipboardFormat</var> - Replaces the current image with the data
provided from the clipboard.
</p>
</descr>
<errors>
If the <var>TGraphic</var> does not support that format it will generate an
exception.
</errors>
<seealso/>
</element>
<element name="TGraphic.LoadFromClipboardFormat.FormatID">
<short/>
</element>
<element name="TGraphic.LoadFromClipboardFormatID">
<short>
Load the data from the clipboard using the format type specified by
<var>ClipboardType</var> and the format identifier <var>FormatID</var>.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphic.LoadFromClipboardFormatID.ClipboardType">
<short/>
</element>
<element name="TGraphic.LoadFromClipboardFormatID.FormatID">
<short/>
</element>
<element name="TGraphic.SaveToFile">
<short>Writes graphic data to the specified file name.</short>
<descr>
<p>
<var>SaveToFile</var> is a procedure used to write the graphic data in the
class instance to the specified file name. <var>Filename</var> is the
fully-qualified file name on the local file system where the data is stored,
and may contain UTF-8-encoded characters.
</p>
<p>
SaveToFile creates a temporary <var>TFileStreamUTF8</var> instance that is
used to write graphic data by calling the <var>SaveToStream</var> method.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.SaveToFile.Filename">
<short>The name of the file where the graphic data is stored.</short>
</element>
<element name="TGraphic.SaveToStream">
<short>
<var>SaveToStream</var> - write graphic data to a stream.
</short>
<descr>
<p>
<var>SaveToStream</var> is an <b>abstract virtual</b> method in
<var>TGraphic</var>. It must be implemented in a descendent class to provide
support for a specific graphic format.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.SaveToStream.Stream">
<short>Stream instance where the graphic data is stored.</short>
</element>
<element name="TGraphic.SaveToClipboardFormat">
<short>
<var>SaveToClipboardFormats</var> - Converts the image to a clipboard format.
</short>
<descr>
<var>SaveToClipboardFormats</var> - Converts the image to a clipboard format.
</descr>
<errors>If the image does not support being translated into a clipboard
format it will generate an exception
</errors>
<seealso/>
</element>
<element name="TGraphic.SaveToClipboardFormat.FormatID">
<short>Identity of the clipboard format.</short>
</element>
<element name="TGraphic.SaveToClipboardFormatID">
<short>
Saves the data to a clipboard of Type <var>ClipboardType</var> using the
format <var>FormatID</var>.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphic.SaveToClipboardFormatID.ClipboardType">
<short/>
</element>
<element name="TGraphic.SaveToClipboardFormatID.FormatID">
<short/>
</element>
<element name="TGraphic.GetSupportedSourceMimeTypes">
<short>
Gets a list of supported MIME types for data used in the graphic.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphic.GetSupportedSourceMimeTypes.List">
<short/>
</element>
<element name="TGraphic.GetResourceType">
<short>Gets the Integer Resource Type for the class instance.</short>
<descr>
<p>
<var>GetResourceType</var> is a <var>TResourceType</var> function used to get
the resource type identifier for the class instance. It identifies the
storage format used for graphic data in a resource.
</p>
<p>
GetResourceType is declared as a virtual method, and is normally overridden
in descendants to return the resource type identifier for a specific image
format. The return value is <var>RT_RCDATA</var> in <var>TGraphic</var>.
</p>
<p>
GetResourceType is used in the implementation of methods including:
<var>LoadFromResourceID</var> and <var>LoadFromResourceName</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.GetResourceType.Result">
<short>TResourceType value used in the class instance.</short>
</element>
<element name="TGraphic.GetFileExtensions">
<short>Returns a list of the file extensions available.</short>
<descr>
<p>
<var>GetFileExtensions</var> is a <var>String</var> class function used to
get a delimited list of file extensions used for graphic files supported in
the class. The <b>'.'</b> character is omitted from file extension(s), and
extensions are separated by a <b>SemiColon</b> (<b>;</b>) character. For
example:
</p>
<code>'jpeg;jpg;jpe;jfif'</code>
<p>
GetFileExtensions is declared as a virtual class method, and is overridden in
descendants to return the value(s) used for the supported graphic format. In
TGraphic, the return value is always an empty string (<b>''</b>).
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.GetFileExtensions.Result">
<short>
File extensions supported for the graphic format used in the class.
</short>
</element>
<element name="TGraphic.IsStreamFormatSupported">
<short>
Indicates whether the specified stream type is supported in the class.
</short>
<descr>
<p>
<var>IsStreamFormatSupported</var> is a <var>Boolean</var> class function
used to determine if the specified stream contains graphic data in a format
supported in the class.
</p>
<p>
IsStreamFormatSupported is declared as a virtual method, and is overridden in
descendants to check whether the values stored in the stream instance can be
used in the reader and/or writer classes for the graphic format.
</p>
<p>
In general, IsStreamFormatSupported indicates whether the
<var>LoadFromStream</var> method can be successfully used to load graphic
data into the class instance using the specified stream.
</p>
</descr>
<seealso>
<link id="TGraphic.ReadData"/>
<link id="TGraphic.WriteData"/>
<link id="TGraphic.LoadFromStream"/>
</seealso>
</element>
<element name="TGraphic.IsStreamFormatSupported.Result">
<short>
<b>True</b> when the stream contains supported graphic data; otherwise,
<b>False</b>.
</short>
</element>
<element name="TGraphic.IsStreamFormatSupported.Stream">
<short>Stream with content examined in the method.</short>
</element>
<element name="TGraphic.Empty">
<short>Indicates if the graphic is empty (contains no data).</short>
<descr>
<p>
<var>Empty</var> is a read-only <var>Boolean</var> property which indicates
if the graphic is empty (contains no data). The return value is <b>True</b>
when no image data exists for the graphic.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.Height">
<short>The native, unstretched height for the graphic.</short>
<descr>
<p>
<var>Height</var> is an <var>Integer</var> property which contains the
native, unstretched height for the graphic stored in the class instance.
</p>
<p>
Use <var>Width</var> to access the native width for the graphic.
</p>
<remark>
Both the read and write access specifiers for the property are declared as
abstract virtual method in TGraphic. They must be implemented in a descendent
class to provide support for a specific graphic format.
</remark>
</descr>
<seealso/>
</element>
<element name="TGraphic.Modified">
<short>
Indicates if the graphic data in the class instance has been modified.
</short>
<descr>
<p>
<var>Modified</var> is a <var>Boolean</var> property which indicates if the
graphic data in the class instance has been modified. Setting the value in
Modified to <b>True</b> causes the <var>Changed</var> method to be called to
signal the <var>OnChange</var> event handler (when assigned).
</p>
<p>
Modified is updated when methods in descendent classes call the
<var>Changed</var> method.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.MimeType">
<short>
<var>MimeType</var> - the MIME type of the graphic.
</short>
<descr>
<p>
<var>MimeType</var> is a read-only
<var>String</var> property which contains the MIME type (or IANA Media
Type/Subtype) used for the graphic data in the class instance. MimeType is
composed of values representing the general category for the data and a
specification of the exact content for the type. It conforms to the values
defined by the IANA (Internet Assigned Numbers Authority).
</p>
<p>
In <var>TGraphics</var>, the MimeType is always an empty string (<b>''</b>).
In descendent classes, the value indicates that it is in the 'image' category
and uses a subtype with the common extensions for the graphics format. For
example:
</p>
<ul>
<li>'image/bmp'</li>
<li>'image/gif'</li>
<li>'image/jpg'</li>
<li>'image/jpeg'</li>
<li>'image/png'</li>
<li>'image/xpm'</li>
</ul>
</descr>
<seealso/>
</element>
<element name="TGraphic.OnChange">
<short>
Event handler signalled when data in the class instance is changed.
</short>
<descr>
<p>
<var>OnChange</var> is a <var>TNotifyEvent</var> property with an event
handler signalled when data in the class instance is changed.
</p>
<p>
OnChange is triggered from the <var>Changed</var> method (when assigned), and
occurs after values in the class instance have been modified. In
<var>TGraphic</var>, it indicates that the <var>Modified</var> property has
been set to <b>True</b>. In descendent classes, which support specific image
formats and provide a Canvas, it occurs more frequently.
</p>
<p>
Applications must assign an object procedure to respond to the event
notification. The <var>Sender</var> argument contains the object which
triggered the event notification.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.OnProgress">
<short>
Event handler signalled to track the progress of operations in the class
instance.
</short>
<descr>
<p>
<var>OnProgress</var> is a <var>TProgressEvent</var> property with the event
handler signalled to track the progress of operations in the class instance.
See the <link id="TProgressEvent">TProgressEvent</link> topic for more
detailed information.
</p>
<p>
Applications must assign an object procedure to the event handler to respond
to progress notification messages. The <var>Sender</var> argument contains
the object which triggered the notification.
</p>
</descr>
<seealso>
<link id="TProgressEvent"/>
</seealso>
</element>
<element name="TGraphic.Palette">
<short>Handle to the color palette used in image data.</short>
<descr>
<p>
<var>Palette</var> is a HPALETTE property which contains the handle to the
color palette used in image data. When Palette is set to 0, the graphic does
not need or use a palette.
</p>
<remark>
The value for the property is always 0 in the current implementation. Setting
a new value is not implemented.
</remark>
</descr>
<seealso/>
</element>
<element name="TGraphic.PaletteModified">
<short>Indicates whether the palette of colors been modified.</short>
<descr>
<p>
Currently, it is used in the <file>jvcllaz</file> package in the
<var>TJvImageControl</var> class.
</p>
</descr>
<seealso/>
</element>
<element name="TGraphic.Transparent">
<short>
Indicates whether some parts of the image are not opaque.
</short>
</element>
<element name="TGraphic.Width">
<short>
<var>Width</var> - The native, unstretched, width of the graphic.
</short>
<descr/>
<seealso/>
</element>
<element name="TGraphicClass">
<short>
<var>TGraphicClass</var> - class of TGraphic.
</short>
<descr/>
<seealso/>
</element>
<element name="TPicture">
<short>Implements a container for TGraphic and descendent classes.</short>
<descr>
<p>
<var>TPicture</var> is a <var>TGraphic</var> container. It is used in place
of a
<var>TGraphic</var> if the graphic can be of any
<var>TGraphic</var> class.
</p>
<p>
It is not a direct descendant of <var>TGraphic</var>, so you will not see
<var>TGraphic</var> listed in the <var>Inheritance</var> chart, but it
contains a property <var>Graphic</var>, of type <var>TGraphic</var>, so can
contain all the properties of a <var>TGraphic</var>.
</p>
<p>
Defines many <b>private</b> methods for getting and storing various sorts of
images such as bitmaps, pixmaps, icons, PNGs etc.
</p>
<p>
TPicture does not have a defined area used to display the image. This is
supplied in the <var>Canvas</var> property in the classes which support
BitMap, PixMap, PNG, JPEG, GIF, TIFF or Icon image formats.
</p>
<p>
<var>LoadFromFile</var> and <var>SaveToFile</var> are polymorphic. For
example, if the <var>TPicture</var> is holding an <var>Icon</var>, you can
<var>LoadFromFile</var> a bitmap file, whereas if the class is
<var>TIcon</var> you could only read .ICO files.
</p>
<ul>
<li>
<var>LoadFromFile</var> - Reads a picture from disk. The <var>TGraphic</var>
class created is determined by the file extension of the file. If the file
extension is not recognized an exception is generated.
</li>
<li>
<var>SaveToFile</var> - Writes the picture to disk.
</li>
<li>
<var>LoadFromClipboardFormat</var> - Reads the picture from the handle
provided in the given clipboard format. If the format is not supported, an
exception is generated.
</li>
<li>
<var>SaveToClipboardFormats</var> - Allocates a global handle and writes the
picture in its native clipboard format (CF_BITMAP for bitmaps, CF_METAFILE
for metafiles, etc.). Formats will contain the formats written. Returns the
number of clipboard items written to the array pointed to by Formats and
Datas or would be written if either Formats or Datas are <b>Nil</b>.
</li>
<li>
<var>SupportsClipboardFormat</var> - Returns <b>True</b> if the given
clipboard format is supported by <var>LoadFromClipboardFormat</var>.
</li>
<li>
<var>Assign</var> - Copies the contents of the given <var>TPicture</var>.
Used in the implementation of TPicture properties.
</li>
<li>
<var>RegisterFileFormat</var> - Register a new <var>TGraphic</var> class for
use in <var>LoadFromFile</var>.
</li>
<li>
<var>RegisterClipboardFormat</var> - Registers a new <var>TGraphic</var>
class for use in <var>LoadFromClipboardFormat</var>.
</li>
<li>
<var>UnRegisterGraphicClass</var> - Removes all references to the specified
<var>TGraphic</var> class and all its descendants from the file format and
clipboard format internal lists.
</li>
<li>
<var>Height</var> - The native, unstretched, height of the picture.
</li>
<li>
<var>Width</var> - The native, unstretched, width of the picture.
</li>
<li>
<var>Graphic</var> - The <var>TGraphic</var> object contained by the
<var>TPicture</var>
</li>
<li>
<var>Bitmap</var> - Returns a bitmap. If the contents is not already a
bitmap, the contents are discarded and a blank bitmap is returned.
</li>
<li>
<var>Pixmap</var> - Returns a pixmap. If the contents is not already a
pixmap, the contents are discarded and a blank pixmap is returned.
</li>
<li>
<var>PNG</var> - Returns a png. If the contents is not already a png, the
contents are discarded and a blank png (<var>TPortableNetworkGraphic</var>)
is returned.
</li>
<li>
<var>PNM</var> - Returns a pnm. If the contents is not already a pnm, the
contents are discarded and a blank pnm (<var>TPortableAnyMapGraphic</var>) is
returned.
</li>
<li>
<var>Jpeg</var> - Returns a jpeg. If the contents is not already a jpeg, the
contents are discarded and a blank jpeg (
<var>TJPegImage</var>) is returned.
</li>
</ul>
</descr>
<seealso/>
</element>
<!-- private -->
<element name="TPicture.FGraphic"/>
<element name="TPicture.FOnChange"/>
<element name="TPicture.FOnProgress"/>
<element name="TPicture.ForceType">
<short>
Ensures that the Graphic property is an instance of the specified class.
</short>
<descr>
<p>
When the <var>Graphic</var> member is not a descendant of
<var>GraphicType</var>, an new instance of GraphicType is created and used as
the member variable for the Graphic property. The values in the existing
Graphic property is assigned to the new class instance, and the old instance
is freed. The <var>Changed</var> and <var>Process</var> methods are assigned
to the <var>OnChange</var> and <var>OnProgress</var> event handlers in the
new TGraphic class instance. The <var>Changed</var> method is called to
signal the <var>OnChange</var> event handler (when assigned).
</p>
<p>
No actions are performed in the method when the Graphic member is an instance
of the class in GraphicType.
</p>
<p>
ForceType is used in the read access specifiers for properties using the
various supported image formats, like: <var>Bitmap</var>, <var>Icon</var>,
<var>Jpeg</var>, <var>Pixmap</var>, <var>PNG</var>, and <var>PNM</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TPicture.ForceType.GraphicType">
<short>Class type required in the Graphic member.</short>
</element>
<element name="TPicture.GetBitmap">
<short>Gets the value for the Bitmap property.</short>
<descr>
<p>
Calls <var>ForceType</var> to ensure that <var>Graphic</var> is a
<var>TBitmap</var> class instance.
</p>
</descr>
<seealso>
<link id="TPicture.Bitmap"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.ForceType"/>
<link id="TBitmap"/>
</seealso>
</element>
<element name="TPicture.GetBitmap.Result">
<short>Value for the property.</short>
</element>
<element name="TPicture.GetIcon">
<short>Gets the value for the Icon property.</short>
<descr>
<p>
Calls <var>ForceType</var> to ensure that <var>Graphic</var> is a
<var>TIcon</var> class instance.
</p>
</descr>
<seealso>
<link id="TPicture.Icon"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.ForceType"/>
<link id="TIcon"/>
</seealso>
</element>
<element name="TPicture.GetIcon.Result">
<short>Value for the property.</short>
</element>
<element name="TPicture.GetJpeg">
<short>Gets the value for the Jpeg property.</short>
<descr>
<p>
Calls <var>ForceType</var> to ensure that <var>Graphic</var> is a
<var>TJpegImage</var> class instance.
</p>
</descr>
<seealso>
<link id="TPicture.Jpeg"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.ForceType"/>
<link id="TJPegImage"/>
</seealso>
</element>
<element name="TPicture.GetJpeg.Result">
<short/>
</element>
<element name="TPicture.GetPNG">
<short>Gets the value for the PNG property.</short>
<descr>
<p>
Calls <var>ForceType</var> to ensure that <var>Graphic</var> is a
<var>TPortableNetworkGraphic</var> class instance.
</p>
</descr>
<seealso>
<link id="TPicture.PNG"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.ForceType"/>
<link id="TPortableNetworkGraphic"/>
</seealso>
</element>
<element name="TPicture.GetPNG.Result">
<short>Value for the property.</short>
</element>
<element name="TPicture.GetPNM">
<short>Gets the value for the PNM property.</short>
<descr>
<p>
Calls <var>ForceType</var> to ensure that <var>Graphic</var> is a
<var>TPortableAnyMapGraphic</var> class instance.
</p>
</descr>
<seealso>
<link id="TPicture.PNM"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.ForceType"/>
<link id="TPortableAnyMapGraphic"/>
</seealso>
</element>
<element name="TPicture.GetPNM.Result">
<short>Value for the property.</short>
</element>
<element name="TPicture.GetPixmap">
<short>Gets the value for the Pixmap property.</short>
<descr>
<p>
Calls <var>ForceType</var> to ensure that <var>Graphic</var> is a
<var>TPixmap</var> class instance.
</p>
</descr>
<seealso>
<link id="TPicture.Pixmap"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.ForceType"/>
<link id="TPixmap"/>
</seealso>
</element>
<element name="TPicture.GetPixmap.Result">
<short>Value for the property.</short>
</element>
<element name="TPicture.GetHeight">
<short>Gets the Height of the image stored in the Graphic property.</short>
<descr>
<p>
The return value is <b>0</b> (<b>zero</b>) if <var>Graphic</var> has not been
assigned (contains <b>Nil</b>).
</p>
<p>
Use <var>Width</var> to the width of the image in the Graphic property.
</p>
</descr>
<seealso>
<link id="TPicture.Graphic"/>
<link id="TPicture.Width"/>
</seealso>
</element>
<element name="TPicture.GetHeight.Result">
<short>Height of the image in the Graphic property.</short>
</element>
<element name="TPicture.GetWidth">
<short>Gets the width of the image stored in the Graphic property.</short>
<descr>
<p>
The return value is <b>0</b> (<b>zero</b>) if <var>Graphic</var> has not been
assigned (contains <b>Nil</b>).
</p>
<p>
Use <var>Height</var> to the height of the image in the Graphic property.
</p>
</descr>
<seealso>
<link id="TPicture.Graphic"/>
<link id="TPicture.Width"/>
</seealso>
</element>
<element name="TPicture.GetWidth.Result">
<short>Width of the image stored in the Graphic property.</short>
</element>
<!-- this is private and not visible in documentation -->
<element name="TPicture.ReadData">
<short>
Reads data for the persistent object during LCL streaming.
</short>
<descr>
<p>
<var>ReadData</var> is used to read a persistent object during LCL streaming.
<var>Stream</var> is the TStream instance with the data for the persistent
object.
</p>
<p>
ReadData checks the content in Stream for header information which identifies
the image format. It creates a new instance of the image class which is used
to read the raw image content.
</p>
<p>
Content in Stream includes the name for the graphic class needed to read or
write the image data. For an image created using Delphi, and then used in a
Lazarus project, this presents a problem. For example: Lazarus uses the
TPortableNetworkGraphic class to handle .PNG images. Delphi uses the TPngImage
class. This difference in image headers is handled in the ReadData method by
substituting the graphic class needed in Lazarus based on the registered
graphic class names or extensions. Other differences in Stream, like the size
for image data (omitted by a Delphi-generated image), are also handled in the
method.
</p>
<p>
The ReadData method in the TGraphic class instance is called to load the
content for registered graphic classes. LoadFromStream in TGraphic is called
for images which do not use one of the registered classes known to Lazarus.
</p>
<p>
The TGraphic instance created and loaded in the method is assigned to the
Graphic property prior to exit. The OnChange and OnProgress event handlers in
Graphic are set to the Changed and Progress methods in TPicture.
</p>
<p>
The Graphic property is set to <b>Nil</b> if an unsupported image format is
detected in Stream.
</p>
<p>
The Changed method is called prior to exit to signal an assigned OnChange event
handler in the class instance.
</p>
</descr>
<version>
Modified in LCL 4.0 to handle image data using unregistered class names and
with omitted image size information.
</version>
<seealso>
<link id="TPicture.Graphic"/>
<link id="TPicture.Changed"/>
<link id="TPicture.WriteData"/>
<link id="TGraphic"/>
<link id="TGraphic.OnChange"/>
<link id="TGraphic.OnProgress"/>
</seealso>
</element>
<element name="TPicture.ReadData.Stream">
<short>
TStream instance with the data for the persistent object.
</short>
</element>
<element name="TPicture.SetBitmap">
<short>Sets the value for the Bitmap property.</short>
<descr>
<p>
Calls <var>SetGraphic</var> to assign the new property value to the
<var>Graphic</var> property.
</p>
</descr>
<seealso>
<link id="TPicture.Bitmap"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.SetGraphic"/>
</seealso>
</element>
<element name="TPicture.SetBitmap.Value">
<short>New value for the property.</short>
</element>
<element name="TPicture.SetIcon">
<short>Sets the value for the Icon property.</short>
<descr>
<p>
Calls <var>SetGraphic</var> to assign the new property value to the
<var>Graphic</var> property.
</p>
</descr>
<seealso>
<link id="TPicture.Icon"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.SetGraphic"/>
</seealso>
</element>
<element name="TPicture.SetIcon.Value">
<short>New value for the property.</short>
</element>
<element name="TPicture.SetJpeg">
<short>Sets the value for the Jpeg property.</short>
<descr>
<p>Calls <var>SetGraphic</var> to assign the new property value to the
<var>Graphic</var> property.
</p>
</descr>
<seealso>
<link id="TPicture.Jpeg"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.SetGraphic"/>
</seealso>
</element>
<element name="TPicture.SetJpeg.Value">
<short>New value for the property.</short>
</element>
<element name="TPicture.SetPNG">
<short>Sets the value for the PNG property.</short>
<descr>
<p>
Calls <var>SetGraphic</var> to assign the new property value to the
<var>Graphic</var> property.
</p>
</descr>
<seealso>
<link id="TPicture.PNG"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.SetGraphic"/>
</seealso>
</element>
<element name="TPicture.SetPNG.AValue">
<short>New value for the property.</short>
</element>
<element name="TPicture.SetPNM">
<short>Sets the value for the PNM property.</short>
<descr>
<p>
Calls <var>SetGraphic</var> to assign the new property value to the
<var>Graphic</var> property.
</p>
</descr>
<seealso>
<link id="TPicture.PNM"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.SetGraphic"/>
</seealso>
</element>
<element name="TPicture.SetPNM.AValue">
<short>New value for the property.</short>
</element>
<element name="TPicture.SetPixmap">
<short>Sets the value for the Pixmap property.</short>
<descr>
<p>
Calls <var>SetGraphic</var> to assign the new value to the <var>Graphic</var>
property.
</p>
</descr>
<seealso>
<link id="TPicture.Pixmap"/>
<link id="TPicture.Graphic"/>
<link id="TPicture.SetGraphic"/>
</seealso>
</element>
<element name="TPicture.SetPixmap.Value">
<short>New value for the property.</short>
</element>
<element name="TPicture.SetGraphic">
<short>Sets the value for the Graphic property.</short>
<descr>
<p>
<var>SetGraphic</var> is the write access specifier for the
<var>Graphic</var> property.
</p>
<p>
SetGraphic ensures that the <var>TGraphic</var> instance in the new property
<var>Value</var> is copied and used as the member variable for the property.
The class type in Value is used to create a temporary class instance where
Value is stored. Its <var>OnChange</var> and <var>OnProgress</var> event
handlers are set to the addresses for the <var>Changed</var> and
<var>Progress</var> methods (respectively). The existing member variable is
freed, and the new class instance is used as the member variable. The
<var>Changed</var> method is called to signal the <var>OnChange</var> event
handler (when assigned).
</p>
<p>
No actions are performed in the method when Value is unassigned (contains
Nil), or when Value and Graphic are the same class instance.
</p>
<p>
SetGraphic is called when a new value is assigned to properties representing
a specific image format, like:
</p>
<ul>
<li>Bitmap</li>
<li>Icon</li>
<li>Jpeg</li>
<li>Pixmap</li>
<li>PNG</li>
<li>PNM</li>
</ul>
</descr>
<seealso>
<link id="TPicture.Graphic"/>
<link id="TPicture.Bitmap"/>
<link id="TPicture.Icon"/>
<link id="TPicture.Jpeg"/>
<link id="TPicture.Pixmap"/>
<link id="TPicture.PNG"/>
<link id="TPicture.PNM"/>
<link id="TPicture.OnChange"/>
<link id="TPicture.OnProgress"/>
<link id="TPicture.Changed"/>
<link id="TPicture.Progress"/>
<link id="TGraphic"/>
</seealso>
</element>
<element name="TPicture.SetGraphic.Value">
<short>New value for the property.</short>
</element>
<element name="TPicture.WriteData">
<short>
Writes data for the persistent object during LCL component streaming.
</short>
<descr>
<p>
<var>WriteData</var> is a method used to write the content in the persistent
object to the specified stream during LCL streaming. <var>Stream</var> is the
TStream instance where the content for the picture is stored.
</p>
<p>
WriteData ensures that the name for the class used in the Graphic property is
written to the stream (when assigned). The WriteData method in Graphic is also
called to store the image format to Stream.
</p>
<p>
WriteData does not change the position in Stream before the write operation is
performed, or after it has been competed.
</p>
</descr>
<seealso>
<link id="TPicture.Graphic"/>
<link id="TGraphic.WriteData"/>
<link id="#rtl.classes.TObject.ClassName">TObject.ClassName</link>
</seealso>
</element>
<element name="TPicture.WriteData.Stream">
<short>
TStream instance where the content for the picture is stored.
</short>
</element>
<element name="TPicture.AssignTo">
<short>
<var>AssignTo</var> if <var>Dest</var> is the correct (Graphic) class type,
calls <var>Assign</var> for <var>Dest</var>, otherwise calls inherited
<var>AssignTo</var>.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TPicture.AssignTo.Dest">
<short>
Persistent object where the values from the class instance are stored.
</short>
</element>
<element name="TPicture.Changed">
<short>
Performs actions needed when value(s) in the class instance have been
modified.
</short>
<descr>
<p>
<var>Changed</var> performs actions needed when value(s) in the class
instance have been modified. In <var>TPicture</var>, it signals the
<var>OnChange</var> event handler (when assigned). No actions are performed
in the method when OnChange has not been assigned (contains <b>Nil</b>).
</p>
</descr>
<seealso>
<link id="TPicture.OnChange"/>
</seealso>
</element>
<element name="TPicture.Changed.Sender">
<short/>
</element>
<element name="TPicture.DefineProperties">
<short>Defines properties handled during LCL component streaming.</short>
<descr>
<p>
<var>DefineProperties</var> is an overridden method in <var>TPicture</var>,
and re-implements the method defined in <var>TPersistent</var>.
DefineProperties uses the <var>TFiler</var> instance in <var>Filer</var> to
identify the binary properties handled during LCL component streaming. The
<var>ReadData</var> and <var>WriteData</var> methods are assigned as the
procedures used to read and write the data for the persistent object. An
internal method is used to determine whether binary data is available in the
<var>Graphic</var> property.
</p>
</descr>
<seealso/>
</element>
<element name="TPicture.DefineProperties.Filer">
<short>TFiler instance used to read and write the persistent object.</short>
</element>
<element name="TPicture.Progress">
<short>Monitors progress of a drawing process.</short>
<descr>
<p>
Performs actions needed to monitor the progress of operations in the class
instance.
</p>
<p>
The parameters identify the calling object, the action being performed, the
completion percentage, whether the picture should be redraw. The DoContine
variable parameter is updated in the event handler to indicate if the process
is continued. <b>False</b> indicates an error condition where the process
should be halted. It is set to <b>True</b> on entry.
</p>
<p>
Progress signals the OnProgress event handler (when assigned) using the
parameters values as arguments.
</p>
<p>
No actions are performed in the method when OnProgress has not been assigned
(contains Nil). In this scenario, DoContine returns <b>True</b>.
</p>
<p>
See <link id="TProgressEvent">TProgressEvent</link> for more details on progress monitoring.
</p>
</descr>
<seealso>
<link id="TPicture.OnProgress"/>
<link id="TProgressEvent"/>
</seealso>
</element>
<element name="TPicture.Progress.Sender">
<short>Object for the notification.</short>
</element>
<element name="TPicture.Progress.Stage">
<short/>
</element>
<element name="TPicture.Progress.PercentDone">
<short/>
</element>
<element name="TPicture.Progress.RedrawNow">
<short/>
</element>
<element name="TPicture.Progress.R">
<short/>
</element>
<element name="TPicture.Progress.Msg">
<short/>
</element>
<element name="TPicture.Progress.DoContinue">
<short/>
</element>
<element name="TPicture.LoadFromStreamWithClass">
<short>
Loads values for the Graphic property from a stream using the specified class
type.
</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.LoadFromStreamWithClass.Stream">
<short/>
</element>
<element name="TPicture.LoadFromStreamWithClass.AClass">
<short/>
</element>
<element name="TPicture.Create">
<short>
<var>Create</var> - constructor for TPicture: performs inherited
<var>Create</var> then loads file and clipboard formats.
</short>
<descr>
<p>
Create is the overridden constructor for the class instance, and calls the
inherited constructor on entry.
</p>
<p>
Creates ensures that the list of image formats supported in LCL has been
initialized with the class types and file extensions as required. The list of
clipboard formats for the supported image formats is also initialized when
needed.
</p>
</descr>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TPicture.Destroy">
<short>
<var>Destroy</var> - destructor for <var>TPicture</var>: frees graphic then
performs inherited <var>Destroy</var>.
</short>
<descr>
<p>
Any destructor method defined here will <b>override</b> destructors defined
in ancestor classes.
</p>
</descr>
<seealso>
<link id="#rtl.Classes.TPersistent.Destroy">TPersistent.Destroy</link>
</seealso>
</element>
<element name="TPicture.Clear">
<short>
<var>Clear</var> - removes the Graphic in the class instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.LoadFromClipboardFormat">
<short>
<var>LoadFromClipboardFormat</var> - Reads the picture from the handle
provided in the given clipboard format.
</short>
<descr>
<p>
<var>LoadFromClipboardFormat</var> reads the picture from the handle provided
in the given clipboard format.
</p>
</descr>
<errors>
If the format is not supported, an exception is generated.
</errors>
</element>
<element name="TPicture.LoadFromClipboardFormat.FormatID">
<short>The identifier for the clipboard format.</short>
</element>
<element name="TPicture.LoadFromClipboardFormatID">
<short>
Reads the picture from a clipboard of type <var>ClipboardType</var> using the
format <var>FormatID</var>.
</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.LoadFromClipboardFormatID.ClipboardType">
<short/>
</element>
<element name="TPicture.LoadFromClipboardFormatID.FormatID">
<short/>
</element>
<element name="TPicture.LoadFromFile">
<short>
<var>LoadFromFile</var> - Reads a picture from disk.
</short>
<descr>
<p>
<var>LoadFromFile</var> - Reads a picture from disk. The <var>TGraphic</var>
class created is determined by the file extension of the file.
</p>
</descr>
<errors>
If the file extension is not recognized, an exception is raised.
</errors>
</element>
<element name="TPicture.LoadFromFile.Filename">
<short>
The name of the file containing the picture, stored as a string.
</short>
</element>
<element name="TPicture.LoadFromResourceName">
<short>
Loads content from the specified resource into the Graphic property.
</short>
<descr>
<p>
<var>LoadFromResourceName</var> is an overloaded method used to created a
<var>TGraphic</var> instance with the content from the specified resource
name.
<var>Instance</var> is the handle with the resources examined in the method.
<var>ResName</var> is the name of the resource loaded in the method.
</p>
<p>
LoadFromResourceName creates a new TGraphic class instance that is used as
the member variable for the Graphics property. The
<var>CreateGraphicFromResourceName</var> routine is called to create the
graphic and load the named resource from the handle. The <var>Changed</var>
method is assigned to the <var>OnChange</var> event handler in the class
instance.
</p>
<p>
An overloaded variant includes an <var>AClass</var> argument with the class
type for the TGraphic descendant needed for a supported image format. The
<var>LoadFromResourceName</var> method in the class instance is called to load
the named resource.
</p>
<p>
The existing TGraphic instance in Graphic is freed and the new TGraphic
instance is used as the member variable. The Changed method is called to
signal the OnChange event handler (when assigned).
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TPicture.Changed"/>
<link id="TGraphic.OnChange"/>
<link id="TGraphic.LoadFromResourceName"/>
<link id="CreateGraphicFromResourceName"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TPicture.LoadFromResourceName.Instance">
<short>Handle with the resources examine in the method.</short>
</element>
<element name="TPicture.LoadFromResourceName.ResName">
<short>Name of the resource loaded in the method.</short>
</element>
<element name="TPicture.LoadFromResourceName.AClass">
<short>TGraphic descendant for the image format.</short>
</element>
<element name="TPicture.LoadFromLazarusResource">
<short>Gets the named resource from a Lazarus Resource (.lrs) file.</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.LoadFromLazarusResource.AName">
<short>File name with resource retrieved in the method.</short>
</element>
<!-- TODO. Needs description. -->
<element name="TPicture.LoadFromStream">
<short>
Loads picture data in a supported image format from the specified stream.
</short>
<descr/>
<seealso>
<link id="TGraphicClass"/>
<link id="TPortableNetworkGraphic"/>
<link id="TPixmap"/>
<link id="TBitmap"/>
<link id="TCursorImage"/>
<link id="TIcon"/>
<link id="TIcnsIcon"/>
<link id="TJpegImage"/>
<link id="TTiffImage"/>
<link id="TGIFImage"/>
<link id="TPortableAnyMapGraphic"/>
</seealso>
</element>
<element name="TPicture.LoadFromStream.Stream">
<short>
Stream instance with the graphics format and data loaded in the method.
</short>
</element>
<element name="TPicture.LoadFromStreamWithFileExt">
<short>
Loads the picture from a stream containing data for the specified file
extension.
</short>
</element>
<element name="TPicture.LoadFromStreamWithFileExt.Stream">
<short/>
</element>
<element name="TPicture.LoadFromStreamWithFileExt.FileExt">
<short/>
</element>
<element name="TPicture.SaveToClipboardFormat">
<short>
<var>SaveToClipboardFormats</var> - Allocates a global handle and writes the
picture in its native clipboard format.
</short>
<descr>
<p>
<var>SaveToClipboardFormats</var> - Allocates a global handle and writes the
picture in its native clipboard format (<var>CF_BITMAP</var> for bitmaps,
<var>CF_METAFILE</var> for metafiles, etc.). Formats will contain the formats
written. Returns the number of clipboard items written to the array pointed
to by Formats and Datas or would be written if either Formats or Datas are
<b>Nil</b>.
</p>
</descr>
</element>
<element name="TPicture.SaveToClipboardFormat.FormatID">
<short>Identity of the clipboard format.</short>
</element>
<element name="TPicture.SaveToFile">
<short>
<var>SaveToFile</var> - Writes the picture to disk.
</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.SaveToFile.Filename">
<short>The name of the file to save the picture, stored as a string.</short>
</element>
<element name="TPicture.SaveToStream">
<short>Saves the graphic to the specified stream.</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.SaveToStream.Stream">
<short>TStream instance where the graphic is stored.</short>
</element>
<element name="TPicture.SaveToStreamWithFileExt">
<short>
Saves graphic image data to a stream using the specified format and file
extension.
</short>
<descr>
<p>
<var>SaveToStreamWithFileExt</var> is a method used to store image data found
in the Graphic property to the TStream instance specified in
<var>Stream</var>. It ensures that supported TGraphicClass class types in
Graphic are handled properly when accessing and storing the image data.
</p>
<p>
No actions are performed in the method if the Graphic property has not been
assigned (contains <b>Nil</b>).
</p>
<p>
<var>FileExt</var> is the file extension for the graphics class used to write
the image data to the specified stream. It can differ from the format used in
Graphics, and can contain any of the graphics classes supported in the LCL
implementation. It must include the '.' separator for the file extension. For
example: '.jpg', '.png', or '.ico'.
</p>
<p>
The FindGraphicClassWithFileExt method is used to get a graphic class when a
file extension has been provided in FileExt. An EInvalidGraphic exception is
raised if FileExt contains an invalid graphics format for the current platform.
</p>
<p>
When FileExt is omitted, or contains the same extension used in Graphic, the
SaveToStream method in the TGraphic instance is called to store the image
data. No conversion is needed for the values written to Stream.
</p>
<p>
SaveToStreamWithFileExt provides support for conversion of image data for
TFPImageBitmap descendants using their GetWriterClass methods. The raw image
data is accessed and stored to Stream using the SaveToStream method found in
the writer class.
</p>
<p>
If Graphic is derived from TCustomIcon, support is provided for converting the
current icon image in Graphic to the specified file extension. The
TCustomIcon.ExportImage method is used to write the icon image data.
</p>
<p>
An Exception is raised if Graphic does not support conversion to the file
extension specified in the FileExt argument.
</p>
</descr>
<version>
Modified in LCL version 4.2 to save individual images in TCustomIcon to
another raster image format.
</version>
<seealso>
<link id="TPicture.Graphic"/>
<link id="TPicture.FindGraphicClassWithFileExt"/>
<link id="TCustomIcon"/>
<link id="TCustomIcon.ExportImage"/>
<link id="TCustomIcon.Current"/>
<link id="TFPImageBitmap"/>
<link id="TGraphicClass"/>
</seealso>
</element>
<element name="TPicture.SaveToStreamWithFileExt.Stream">
<short>
Stream instance where the image data for the picture is stored.
</short>
</element>
<element name="TPicture.SaveToStreamWithFileExt.FileExt">
<short>
File extension for the format used to write image data to the specified stream.
</short>
</element>
<element name="TPicture.SupportsClipboardFormat">
<short>
<var>SupportsClipboardFormat</var> - Returns <b>True</b> if the given
clipboard format is supported by <var>LoadFromClipboardFormat</var>.
</short>
</element>
<element name="TPicture.SupportsClipboardFormat.Result">
<short>Boolean - returns <b>True</b> if format supported.</short>
</element>
<element name="TPicture.SupportsClipboardFormat.FormatID">
<short>Identity of the clipboard format.</short>
</element>
<element name="TPicture.Assign">
<short>
<var>Assign</var> - if the Source is a valid graphic type, copy the relevant
details to the current object, otherwise call inherited <var>Assign</var>.
</short>
<descr>
<p>
<var>Assign</var> copies the contents of the given <var>TPicture</var>. Used
most often in the implementation of TPicture properties.
</p>
</descr>
<seealso>
<link id="#rtl.Classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TPicture.Assign.Source">
<short/>
</element>
<element name="TPicture.RegisterFileFormat">
<short>
Registers a new <var>TGraphic</var> class for use in <var>LoadFromFile</var>.
</short>
</element>
<element name="TPicture.RegisterFileFormat.AnExtension">
<short/>
</element>
<element name="TPicture.RegisterFileFormat.ADescription">
<short/>
</element>
<element name="TPicture.RegisterFileFormat.AGraphicClass">
<short/>
</element>
<element name="TPicture.RegisterClipboardFormat">
<short>
Registers a new <var>TGraphic</var> class for use in
<var>LoadFromClipboardFormat</var>.
</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.RegisterClipboardFormat.FormatID">
<short/>
</element>
<element name="TPicture.RegisterClipboardFormat.AGraphicClass">
<short/>
</element>
<element name="TPicture.UnregisterGraphicClass">
<short>
Removes all references to the specified <var>TGraphic</var>.
</short>
<descr>
<p>
<var>UnRegisterGraphicClass</var> - Removes all references to the specified
<var>TGraphic</var> class and all its descendants from the file format and
clipboard format internal lists.
</p>
</descr>
</element>
<element name="TPicture.UnregisterGraphicClass.AClass">
<short/>
</element>
<element name="TPicture.FindGraphicClassWithFileExt">
<short>
Finds a graphic class with the named file extension <var>Ext</var>, and
raises an exception if not found.
</short>
</element>
<element name="TPicture.Bitmap">
<short>
<var>Bitmap</var> - Returns a bitmap.
</short>
<descr>
<p>
<var>Bitmap</var> - Returns a bitmap. If the contents is not already a
bitmap, the contents are discarded and a blank bitmap is returned.
</p>
</descr>
<seealso/>
</element>
<element name="TPicture.Icon">
<short>
<var>Icon</var> contained within the picture.
</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.Jpeg">
<short>
<var>Jpeg</var> - returns a JPEG image.</short>
<descr>
<p>
<var>Jpeg</var> - returns a JPEG image.
</p>
<p>
If the contents is not already a JPEG image, the contents are discarded and a
blank JPEG is returned.
</p>
</descr>
</element>
<element name="TPicture.Pixmap">
<short>
<var>Pixmap</var> - Returns a pixmap.
</short>
<descr>
<p>
<var>Pixmap</var> - Returns a pixmap. If the contents is not already a
pixmap, the contents are discarded and a blank pixmap is returned.
</p>
</descr>
</element>
<element name="TPicture.PNG">
<short>
<var>PNG</var> - Returns a png.
</short>
<descr>
<p>
<var>PNG</var> - Returns a png. If the contents is not already a png, the
contents are discarded and a blank png (<var>TPortableNetworkGraphic</var>)
is returned.
</p>
</descr>
</element>
<element name="TPicture.PNM">
<short>
<var>PNM</var> - a <b>PortableAnyMapGraphic</b> image.
</short>
<descr>
<p>
<var>PNM</var> - a <b>PortableAnyMapGraphic</b> image.
</p>
<p>
Reads a PNM image. If it is not a valid PNM image, the contents are discarded
and a blank PNM is generated.
</p>
</descr>
</element>
<element name="TPicture.Graphic">
<short>
<var>Graphic</var> - The <var>TGraphic</var> object contained by the
<var>TPicture</var>.
</short>
</element>
<element name="TPicture.Height">
<short>
<var>Height</var> - The native, unstretched, height of the picture.
</short>
</element>
<element name="TPicture.Width">
<short>
<var>Width</var> - The native, unstretched, width of the picture.
</short>
</element>
<element name="TPicture.OnChange">
<short>
<var>OnChange</var> - Event handler for any change in the picture.
</short>
<descr/>
<seealso/>
</element>
<element name="TPicture.OnProgress">
<short>
Event handler signalled to track the progress of operations in the class
instance.
</short>
<descr>
<p>
<var>OnProgress</var> is a <var>TProgressEvent</var> property with the event
handler signalled to track the progress of operations in the class instance.
See the <link id="TProgressEvent">TProgressEvent</link> topic for more
detailed information.
</p>
<p>
Applications must assign an object procedure to the event handler to respond
to progress notification messages. The <var>Sender</var> argument contains
the object which triggered the notification.
</p>
</descr>
<seealso>
<link id="TProgressEvent"/>
</seealso>
</element>
<element name="EGraphicException">
<short>Base exception type for an error in a graphic operation.
</short>
<descr>
<p>
<var>EGraphicException</var> is an <var>Exception</var> descendant which
implements the base class for exceptions raised during graphic operations. It
provides a means to handle any of the descendent exceptions, like
<var>EInvalidGraphic</var> or <var>EInvalidGraphicOperation</var>.
</p>
</descr>
<seealso/>
</element>
<element name="EInvalidGraphic">
<short>
<var>EInvalidGraphic</var> - exception handler for an invalid graphic.
</short>
<descr/>
<seealso/>
</element>
<element name="EInvalidGraphicOperation">
<short>
<var>EInvalidGraphicOperation</var> - exception handler for invalid graphic
operation.
</short>
<descr/>
<seealso/>
</element>
<element name="TGradientDirection">
<short>
Represents the fill directions used for gradient fills.
</short>
<descr>
<p>
<var>TGradientDirection</var> is an enumerated type with values that control
the fill direction used for a gradient color fill. It is an alias to the
TFPGradientDirection type defined in the FCL (<file>fpcanvas.pp</file>) for
compiler versions starting with 3.3.1. Separate constant aliases are defined
for the gdVertical and gdHorizontal values for these compiler versions.
</p>
<p>
Previous FPC versions define the enumeration values in this unit.
</p>
<p>
TGradientDirection is the type used for the argument passed to the
<var>TCanvas.GradientFill</var> method which controls the fill direction or
orientation for the colors used to fill a rectangular region on the canvas.
</p>
</descr>
<version>
Modified in LCL version 4.2 to be an alias to the TFPGradientDirection type
defined in the FCL for FPC compiler versions 3.3.1 and higher.
</version>
<seealso>
<link id="TCanvas.GradientFill"/>
<!--
not currently documented in FCL
<link id="#fcl.fpcanvas.TFPGradientDirection"/>
<link id="#fcl.fpcanvas.gdVertical"/>
<link id="#fcl.fpcanvas.gdHorizontal"/>
-->
</seealso>
</element>
<element name="TGradientDirection.gdVertical">
<short>
Gradient fill direction is vertically oriented.
</short>
</element>
<element name="TGradientDirection.gdHorizontal">
<short>
Gradient fill direction is horizontally oriented.
</short>
</element>
<element name="gdVertical">
<short>
Alias to the gdVertical constant defined in FCL.
</short>
<descr>
<p>
Defined for FPC compiler version 3.3.1 and higher.
</p>
</descr>
<seealso>
<link id="gdHorizontal"/>
<link id="TGradientDirection"/>
<link id="TCanvas.GradientFill"/>
</seealso>
</element>
<element name="gdHorizontal">
<short>
Alias to the gdHorizontal constant defined in FCL.
</short>
<descr>
<p>
Defined for FPC compiler version 3.3.1 and higher.
</p>
</descr>
<seealso>
<link id="gdVertical"/>
<link id="TGradientDirection"/>
<link id="TCanvas.GradientFill"/>
</seealso>
</element>
<element name="TAntialiasingMode">
<short>Represents anti-aliasing modes used in TCanvas.</short>
<descr/>
<seealso/>
</element>
<element name="TAntialiasingMode.amDontCare">
<short>Default anti-aliasing.</short>
</element>
<element name="TAntialiasingMode.amOn">
<short>Enabled.</short>
</element>
<element name="TAntialiasingMode.amOff">
<short>Disabled.</short>
</element>
<element name="TLCLTextMetric">
<short>Represents text metrics used in the LCL.</short>
<descr/>
<seealso/>
</element>
<element name="TLCLTextMetric.Ascender">
<short>The portion of a font face above the mean line.</short>
<descr/>
<seealso/>
</element>
<element name="TLCLTextMetric.Descender">
<short>The portion of a font face below the baseline for a font face.</short>
<descr/>
<seealso/>
</element>
<element name="TLCLTextMetric.Height">
<short>
Distance between the baseline and the mean line for a font face.
</short>
<descr/>
<seealso/>
</element>
<element name="TDefaultColorType">
<short>
Indicates whether a default color applies to a font or a brush.
</short>
<descr>
<p>
Values from TDefaultColorType are passed as an argument to the
GetdefaultColor method in TCanvas. It allows the color clDefault to be
resolved to the correct color value in the class instance.
</p>
</descr>
<seealso>
<link id="TCanvas.GetDefaultColor"/>
</seealso>
</element>
<element name="TDefaultColorType.dctBrush">
<short>
Default color refers to the Brush color.
</short>
</element>
<element name="TDefaultColorType.dctFont">
<short>
Default color refers to the Font color.
</short>
</element>
<element name="TCanvas">
<short>
Implements a drawing surface for a visual control or bitmap image.
</short>
<descr>
<p>
<var>TCanvas</var> is a descendant of the <var>TFPCustomCanvas</var> class in
the FCL (Free Pascal Component Library). TCanvas implements a drawing surface
which can be used to display a visual control or render output to a bitmap.
TCanvas provides drawing tools like Brush, Pen, and Font needed to draw on
the surface. Events are provided to respond to change notifications and
progress events. Methods are provided to implement common drawing operations,
such as:
</p>
<ul>
<li>Pen, Brush, and Color selection</li>
<li>Drawing lines or shapes</li>
<li>Filling shapes with colors or patterns</li>
<li>Rendering text to the drawing surface</li>
<li>Rendering image content to the drawing surface</li>
<li>Direct manipulation of pixels on the drawing surface</li>
</ul>
<p>
A TCanvas instance (or a specialized descendant) is used in visual controls
which are responsible for rendering their own content. It is also used in
non-visual components like TPrinter, and in class that provide support for
drawing operations using bitmap data.
</p>
</descr>
<seealso>
<link id="TSharedRasterImage"/>
<link id="#lcl.controls.TGraphicControl.Canvas">TGraphicControl.Canvas</link>
<link id="#lcl.controls.TCustomControl.Canvas">TCustomControl.Canvas</link>
<link id="#lcl.controls.TControlCanvas">TControlCanvas</link>
</seealso>
</element>
<!-- private -->
<element name="TCanvas.FAntialiasingMode"/>
<element name="TCanvas.FAutoRedraw"/>
<element name="TCanvas.FState"/>
<element name="TCanvas.FSavedFontHandle"/>
<element name="TCanvas.FSavedPenHandle"/>
<element name="TCanvas.FSavedBrushHandle"/>
<element name="TCanvas.FSavedRegionHandle"/>
<element name="TCanvas.FCopyMode"/>
<element name="TCanvas.FHandle"/>
<element name="TCanvas.FOnChange"/>
<element name="TCanvas.FOnChanging"/>
<element name="TCanvas.FTextStyle"/>
<element name="TCanvas.FLock"/>
<element name="TCanvas.FRegion"/>
<element name="TCanvas.FLazPen"/>
<element name="TCanvas.FLazFont"/>
<element name="TCanvas.FLazBrush"/>
<element name="TCanvas.FSavedHandleStates"/>
<element name="TCanvas.BrushChanged">
<short>
Performs actions needed when the Brush for the canvas is changed.
</short>
<descr>
<p>
<var>BrushChanged</var> is a procedure used to perform actions needed when the
<var>Brush</var> for the canvas is changed. BrushChanged ensures that state
flags for the class instance are updated to remove the value
<var>csBrushValid</var> (when present).
</p>
<p>
<var>ABrush</var> contains the Brush instance which generated the change
notification.
</p>
<p>
BrushChanged is assigned as the <var>OnChange</var> event handler in the
<var>TBrush</var> instance used in the Brush property.
</p>
</descr>
<seealso>
<link id="TCanvas.Brush"/>
<link id="TBrush.OnChange"/>
<link id="TCanvasState"/>
</seealso>
</element>
<element name="TCanvas.BrushChanged.ABrush">
<short>Brush instance generating the change notification.</short>
</element>
<element name="TCanvas.FontChanged">
<short>
Performs actions needed when the Font for the canvas is changed.
</short>
<descr>
<p>
<var>FontChanged</var> is a procedure used to performs actions needed when
the <var>Font</var> for the canvas is changed. FontChanged ensures that state
flags for the canvas are updated to remove the value <var>csFontValid</var>
(when present).
</p>
<p>
<var>AFont</var> is the font instance which generated the change notification.
</p>
<p>
FontChanged is assigned as the <var>OnChange</var> event handler in the
<var>TFont</var> instance used in the Font property.
</p>
</descr>
<seealso>
<link id="TCanvas.Font"/>
<link id="TFont.OnChange"/>
<link id="TCanvasState"/>
</seealso>
</element>
<element name="TCanvas.FontChanged.AFont">
<short>Font instance generating the change notification.</short>
</element>
<element name="TCanvas.PenChanged">
<short>Performs actions needed when the Pen for the canvas is changed.</short>
<descr>
<p>
<var>PenChanged</var> is a procedure used to performs actions needed when the
<var>Pen</var> for the canvas is changed. PenChanged ensures that state flags
for the canvas are updated to remove the value
<var>csPenValid</var> (when present).
</p>
<p>
<var>APen</var> is the pen instance which generated the change notification.
</p>
<p>
PenChanged is assigned as the <var>OnChange</var> event handler in the
<var>TPen</var> instance used in the Pen property.
</p>
</descr>
<seealso>
<link id="TCanvas.Pen"/>
<link id="TPen.OnChange"/>
<link id="TCanvasState"/>
</seealso>
</element>
<element name="TCanvas.PenChanged.APen">
<short>Pen instance generating the change notification.</short>
</element>
<element name="TCanvas.RegionChanged">
<short>
Performs actions needed when the Region for the canvas is changed.
</short>
<descr>
<p>
RegionChanged is a procedure used to perform actions needed when the Region
for the canvas is changed. RegionChanged ensures that state flags for the
canvas are updated to remove the value <var>csRegionValid</var> (when
present).
</p>
<p>
<var>ARegion</var> is the region instance which generated the change
notification.
</p>
<p>
RegionChanged is assigned as the <var>OnChange</var> event handler in the
<var>TRegion</var> instance used in the Region property.
</p>
</descr>
<seealso>
<link id="TCanvas.Region"/>
<link id="TRegion.OnChange"/>
<link id="TCanvasState"/>
</seealso>
</element>
<element name="TCanvas.RegionChanged.ARegion">
<short>Region instance generating the change notification.</short>
</element>
<element name="TCanvas.GetHandle">
<short>Gets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TCanvas.Handle"/>
</seealso>
</element>
<element name="TCanvas.GetHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TCanvas.SetAntialiasingMode">
<short>Sets the value for the AntialiasingMode property.</short>
<descr/>
<seealso>
<link id="TCanvas.AntialiasingMode"/>
</seealso>
</element>
<element name="TCanvas.SetAntialiasingMode.AValue">
<short>Value for the property.</short>
</element>
<element name="TCanvas.SetAutoRedraw">
<short>Sets the value for the AutoRedraw property.</short>
<descr/>
<seealso>
<link id="TCanvas.AutoRedraw"/>
</seealso>
</element>
<element name="TCanvas.SetAutoRedraw.Value">
<short>Value for the property.</short>
</element>
<element name="TCanvas.SetLazFont">
<short>Sets the value for the Font property.</short>
<descr/>
<seealso>
<link id="TCanvas.Font"/>
</seealso>
</element>
<element name="TCanvas.SetLazFont.Value">
<short>New value for the property.</short>
</element>
<element name="TCanvas.SetLazPen">
<short>Sets the value for the Pen property.</short>
<descr/>
<seealso>
<link id="TCanvas.Pen"/>
</seealso>
</element>
<element name="TCanvas.SetLazPen.Value">
<short>New value for the property.</short>
</element>
<element name="TCanvas.SetLazBrush">
<short>Sets the value for the Brush property.</short>
<descr/>
<seealso>
<link id="TCanvas.Brush"/>
</seealso>
</element>
<element name="TCanvas.SetLazBrush.value">
<short>New value for the property.</short>
</element>
<element name="TCanvas.SetRegion">
<short>Sets the value for the Region property.</short>
<descr/>
<seealso>
<link id="TCanvas.Region"/>
</seealso>
</element>
<element name="TCanvas.SetRegion.Value">
<short>New value for the property.</short>
</element>
<element name="TCanvas.DoCreateDefaultFont">
<short>
Creates the TFont instance used as the default font for the canvas.
</short>
<descr>
<p>
<var>DoCreateDefaultFont</var> is an overridden method in <var>TCanvas</var>
used to create the <var>TFont</var> instance used as the default font for the
canvas. The return value contains the TFont instance created in the method.
</p>
<p>
DoCreateDefaultFont implements the abstract method defined in the
<var>TFPCustomCanvas</var> ancestor. It is called from the inherited
<var>CreateDefaultFont</var> method, and ensures that a font resource has
been allocated for the <var>Font</var> property.
</p>
</descr>
<seealso>
<link id="TCanvas.Font"/>
<link id="TFont"/>
</seealso>
</element>
<element name="TCanvas.DoCreateDefaultFont.Result">
<short>TFont instance created in the method.</short>
</element>
<element name="TCanvas.DoCreateDefaultPen">
<short>
<var>DoCreateDefaultPen</var> - calls
<var>TPen.Create</var> to create a default pen.
</short>
<descr/>
<seealso>
<link id="TPen.Create"/>
</seealso>
</element>
<element name="TCanvas.DoCreateDefaultPen.Result">
<short/>
</element>
<element name="TCanvas.DoCreateDefaultBrush">
<short>
<var>DoCreateDefaultBrush</var> - calls
<var>TBrush.Create</var> to create a default brush.
</short>
<descr/>
<seealso>
<link id="TBrush.Create"/>
</seealso>
</element>
<element name="TCanvas.DoCreateDefaultBrush.Result">
<short/>
</element>
<element name="TCanvas.SetColor">
<short>Sets the value for the indexed Colors property.</short>
<descr>
<p>
<var>SetColor</var> is a method used to set the value for the indexed
<var>Colors</var> property. SetColor implements the abstract virtual method
defined in the <var>TFPCustomCanvas</var> ancestor. Equivalent to setting the
color value using the <var>Pixels</var> property.
</p>
</descr>
<seealso>
<link id="TCanvas.Pixels"/>
</seealso>
</element>
<element name="TCanvas.SetColor.x">
<short>Horizontal coordinate for the pixel.</short>
</element>
<element name="TCanvas.SetColor.y">
<short>Vertical coordinate for the pixel.</short>
</element>
<element name="TCanvas.SetColor.Value">
<short>Color for the specified pixel.</short>
</element>
<element name="TCanvas.GetColor">
<short>Gets the Color for the pixel at the given coordinates as a TFPColor
value.
</short>
<descr>
<p>
Uses the indexed <var>Pixels</var> property to retrieve the color information
for the pixel at the coordinates in x and y. Calls <var>TColorToFPColor</var>
to convert the TColor value to the TFPColor type used in the return value.
</p>
</descr>
<seealso>
<link id="TCanvas.Pixels"/>
<link id="TColorToFPColor"/>
</seealso>
</element>
<element name="TCanvas.GetColor.Result">
<short>TFPColor value for the pixel at the specified position.</short>
</element>
<element name="TCanvas.GetColor.x">
<short>Horizontal position for the pixel.</short>
</element>
<element name="TCanvas.GetColor.y">
<short>Vertical position for the pixel.</short>
</element>
<element name="TCanvas.SetHeight">
<short>
<var>SetHeight</var> should never be called for Canvas: raises an exception
if it is called.
</short>
<descr/>
<errors>
If called, raises an exception: 'TCanvas.SetHeight not allowed for LCL canvas.
</errors>
<seealso/>
</element>
<element name="TCanvas.SetHeight.AValue">
<short/>
</element>
<element name="TCanvas.GetHeight">
<short>
<var>GetHeight</var> - if a handle has been allocated, returns the height
from the device size.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.GetHeight.Result">
<short/>
</element>
<element name="TCanvas.SetWidth">
<short>
<var>SetWidth</var> - should never be called; raises an exception if it is
called.
</short>
<descr/>
<errors>
Raises an exception: 'TCanvas.SetWidth not allowed for LCL canvas'
</errors>
<seealso/>
</element>
<element name="TCanvas.SetWidth.AValue">
<short/>
</element>
<element name="TCanvas.GetWidth">
<short>Gets the value for the Width property.</short>
<descr>
<p>
If a valid <var>Handle</var> for the canvas instance has not been allocated,
the value for the property is <b>0</b> (<b>zero</b>).
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.GetWidth.Result">
<short>Value for the property.</short>
</element>
<element name="TCanvas.SetPenPos">
<short>Moves the pen to the specified position.</short>
<descr>
<p>
Re-implements the method defined in the <var>TFPCustomCanvas</var> ancestor.
Calls <var>MoveTo</var> using the <var>X</var> and <var>Y</var> coordinates
specified in <var>Value</var>. Does <b>not</b> call the inherited method.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.SetPenPos.Value">
<short>TPoint instance with the canvas coordinates for the pen.</short>
</element>
<element name="TCanvas.DoLockCanvas">
<short>
Enters the critical section used to lock the canvas, and calls the inherited
method.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.DoUnlockCanvas">
<short>
Leaves the critical section used to lock the canvas, and calls the inherited
method.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.DoTextOut">
<short>
<var>DoTextOut</var> calls <var>TextOut</var> for the specified coordinates
and string.
</short>
<descr/>
<seealso>
<link id="TCanvas.TextOut"/>
</seealso>
</element>
<element name="TCanvas.DoTextOut.x">
<short/>
</element>
<element name="TCanvas.DoTextOut.y">
<short/>
</element>
<element name="TCanvas.DoTextOut.Text">
<short/>
</element>
<element name="TCanvas.DoGetTextSize">
<short>
Calls TextExtent to find the width and height of the specified text.
</short>
<descr/>
<seealso>
<link id="TCanvas.TextExtent"/>
</seealso>
</element>
<element name="TCanvas.DoGetTextSize.Text">
<short/>
</element>
<element name="TCanvas.DoGetTextSize.w">
<short/>
</element>
<element name="TCanvas.DoGetTextSize.h">
<short/>
</element>
<element name="TCanvas.DoGetTextHeight">
<short>
<var>DoGetTextHeight</var> calls <var>TextHeight</var> to return the height
of the text.
</short>
<descr/>
<seealso>
<link id="TCanvas.TextHeight"/>
</seealso>
</element>
<element name="TCanvas.DoGetTextHeight.Result">
<short/>
</element>
<element name="TCanvas.DoGetTextHeight.Text">
<short/>
</element>
<element name="TCanvas.DoGetTextWidth">
<short>
<var>DoGetTextWidth</var> calls <var>TextWidth</var> to return the width of
the given text string.
</short>
<descr/>
<seealso>
<link id="TCanvas.TextWidth"/>
</seealso>
</element>
<element name="TCanvas.DoGetTextWidth.Result">
<short/>
</element>
<element name="TCanvas.DoGetTextWidth.Text">
<short/>
</element>
<element name="TCanvas.DoRectangle">
<short>
<var>DoRectangle</var> calls <var>Frame</var> to draw a rectangle in the
given bounds.
</short>
<descr/>
<seealso>
<link id="TCanvas.Frame"/>
</seealso>
</element>
<element name="TCanvas.DoRectangle.Bounds">
<short/>
</element>
<element name="TCanvas.DoRectangleFill">
<short>
<var>DoRectangleFill</var> calls
<var>FillRect</var> to draw a filled rectangle with the given bounds.
</short>
<descr/>
<seealso>
<link id="TCanvas.FillRect"/>
</seealso>
</element>
<element name="TCanvas.DoRectangleFill.Bounds">
<short/>
</element>
<element name="TCanvas.DoRectangleAndFill">
<short>
<var>DoRectangleAndFill</var> - calls <var>Rectangle</var> to draw a
rectangle and fill it.
</short>
<descr/>
<seealso>
<link id="TCanvas.Rectangle"/>
</seealso>
</element>
<element name="TCanvas.DoRectangleAndFill.Bounds">
<short/>
</element>
<element name="TCanvas.DoEllipse">
<short>Draws an Arc of 360 degrees within the specified Bounds.
</short>
<descr>
<p>
<var>DoEllipse</var> draws an <var>Arc</var> of 360 degrees within given
<var>Bounds</var>, making an ellipse.
</p>
</descr>
<seealso>
<link id="TCanvas.Arc"/>
</seealso>
</element>
<element name="TCanvas.DoEllipse.Bounds">
<short/>
</element>
<element name="TCanvas.DoEllipseFill">
<short>
<var>DoEllipseFill</var> calls <var>Ellipse</var>.
</short>
<descr/>
<seealso>
<link id="TCanvas.Ellipse"/>
</seealso>
</element>
<element name="TCanvas.DoEllipseFill.Bounds">
<short/>
</element>
<element name="TCanvas.DoEllipseAndFill">
<short>
<var>DoEllipseAndFill</var> calls the inherited <var>DoEllipseAndFill</var>.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.DoEllipseAndFill.Bounds">
<short/>
</element>
<element name="TCanvas.DoPolygon">
<short>
<var>DoPolygon</var> calls <var>PolyLine</var> to draw a series of lines
through the points.
</short>
<descr/>
<seealso>
<link id="TCanvas.PolyLine"/>
</seealso>
</element>
<element name="TCanvas.DoPolygon.Points">
<short/>
</element>
<element name="TCanvas.DoPolygonFill">
<short>
<var>DoPolygonFill</var> calls <var>Polygon</var> for the supplied points.
</short>
<descr/>
<seealso>
<link id="TCanvas.Polygon"/>
</seealso>
</element>
<element name="TCanvas.DoPolygonFill.Points">
<short/>
</element>
<element name="TCanvas.DoPolygonAndFill">
<short>
<var>DoPolygonAndFill</var> calls inherited method.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.DoPolygonAndFill.Points">
<short/>
</element>
<element name="TCanvas.DoPolyline">
<short>
<var>DoPolyline</var> calls <var>PolyLine</var>.
</short>
<descr/>
<seealso>
<link id="TCanvas.PolyLine">TCanvas.PolyLine</link>
</seealso>
</element>
<element name="TCanvas.DoPolyline.Points">
<short/>
</element>
<element name="TCanvas.DoPolyBezier">
<short>
Performs actions needed to draw a Bézier curve using the specified control
points.
</short>
<descr>
<p>
Calls the <var>PolyBezier</var> method using the values in <var>Points</var>,
<var>NumPts</var>, <var>Filled</var>, and <var>Continuous</var> as arguments.
</p>
</descr>
<seealso>
<link id="TCanvas.PolyBezier"/>
</seealso>
</element>
<element name="TCanvas.DoPolyBezier.Points">
<short>Pointer to the control points for the Bézier curve.</short>
</element>
<element name="TCanvas.DoPolyBezier.NumPts">
<short>Number of control points in the Pointer.</short>
</element>
<element name="TCanvas.DoPolyBezier.Filled">
<short>
<b>True</b> if interior of the Bézier curve is filled; default is
<b>False</b>.
</short>
</element>
<element name="TCanvas.DoPolyBezier.Continuous">
<short>
<b>True</b> if the Bézier end-points are continuous (without kinks); default
is <b>False</b>.
</short>
</element>
<element name="TCanvas.DoFloodFill">
<short>
<var>DoFloodFill</var> calls the <var>FloodFill</var> method.
</short>
<descr/>
<seealso>
<link id="TCanvas.FloodFill"/>
</seealso>
</element>
<element name="TCanvas.DoFloodFill.x">
<short/>
</element>
<element name="TCanvas.DoFloodFill.y">
<short/>
</element>
<element name="TCanvas.DoMoveTo">
<short>
<var>DoMoveTo</var> calls the <var>MoveTo</var> method.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.DoMoveTo.x">
<short/>
</element>
<element name="TCanvas.DoMoveTo.y">
<short/>
</element>
<element name="TCanvas.DoLineTo">
<short>
<var>DoLineTo</var> calls the <var>LineTo</var> method.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.DoLineTo.x">
<short/>
</element>
<element name="TCanvas.DoLineTo.y">
<short/>
</element>
<element name="TCanvas.DoLine">
<short>
<var>DoLine</var> calls <var>Line</var> to draw from x1, y1 to x2, y2.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.DoLine.x1">
<short/>
</element>
<element name="TCanvas.DoLine.y1">
<short/>
</element>
<element name="TCanvas.DoLine.x2">
<short/>
</element>
<element name="TCanvas.DoLine.y2">
<short/>
</element>
<element name="TCanvas.DoCopyRect">
<short>Verifies and copies the source canvas.</short>
<descr>
<p>
<var>DoCopyRect</var> checks that <var>SrcCanvas</var> is of correct type
then copies coordinates and calls <var>CopyRect</var>.
</p>
</descr>
<errors>
If <var>SrcCanvas</var> is not of type <var>TCanvas</var> then writes a
warning to the debug output that copying is not supported
</errors>
<seealso>
<link id="TCanvas.CopyRect"/>
</seealso>
</element>
<element name="TCanvas.DoCopyRect.x">
<short/>
</element>
<element name="TCanvas.DoCopyRect.y">
<short/>
</element>
<element name="TCanvas.DoCopyRect.SrcCanvas">
<short/>
</element>
<element name="TCanvas.DoCopyRect.SourceRect">
<short/>
</element>
<element name="TCanvas.DoDraw">
<short>
<var>DoDraw</var> checks that <var>Image</var> is of the right type, makes a
local copy, creates the necessary handles and bitmaps for drawing.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.DoDraw.x">
<short/>
</element>
<element name="TCanvas.DoDraw.y">
<short/>
</element>
<element name="TCanvas.DoDraw.Image">
<short/>
</element>
<element name="TCanvas.CheckHelper">
<short>
Ignored in the current implementation of the class.
</short>
<descr/>
<errors>
Writes a message to debug output indicating the call is ignored.
</errors>
<seealso/>
</element>
<element name="TCanvas.CheckHelper.AHelper">
<short/>
</element>
<element name="TCanvas.GetDefaultColor">
<short>Gets the default color value for the canvas.</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.GetDefaultColor.Result">
<short>TColor value that is the default color for the canvas.</short>
</element>
<element name="TCanvas.GetDefaultColor.ADefaultColorType">
<short>Not used in the current implementation.</short>
</element>
<element name="TCanvas.GetClipRect">
<short>
<var>GetClipRect</var> - if an error is encountered in finding the Clipping
Rectangle dimensions, sets some defaults anyway.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.GetClipRect.Result">
<short/>
</element>
<element name="TCanvas.SetClipRect">
<short>Sets the value for the ClipRect property.</short>
<descr>
<p>
Overrides the method defined in the TFPCustomCanvas ancestor. Calls the
inherited method. Handles conversion of the logical coordinates in the
clipping rectangle to device coordinates, and sets the clipping region to the
converted values.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.SetClipRect.ARect">
<short>New value for the property.</short>
</element>
<element name="TCanvas.GetClipping">
<short>
<var>GetClipping</var> returns <b>True</b> if clipping is being performed.
</short>
</element>
<element name="TCanvas.GetClipping.Result">
<short/>
</element>
<element name="TCanvas.SetClipping">
<short>
<var>SetClipping</var> specifies whether clipping is to be performed.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.SetClipping.AValue">
<short/>
</element>
<element name="TCanvas.GetPixel">
<short>Gets the value for the indexed Pixels property.</short>
<descr/>
<seealso>
<link id="TCanvas.Pixels"/>
</seealso>
</element>
<element name="TCanvas.GetPixel.Result">
<short>Value for the property.</short>
</element>
<element name="TCanvas.GetPixel.X">
<short>Horizontal canvas coordinate for the pixel.</short>
</element>
<element name="TCanvas.GetPixel.Y">
<short>Vertical canvas coordinate for the pixel.</short>
</element>
<element name="TCanvas.CreateBrush">
<short>
Ensures that the handle for the Brush is valid and configured with the Brush
settings.
</short>
<descr>
<p>
<var>CreateBrush</var> is a procedure used to create and/or configure handles
for the canvas <var>Brush</var>.
</p>
<p>
<var>SelectObject</var> is called to get an existing Brush handle, and save a
copy of the handle for local access in the canvas. Canvas state flags are
updated to indicate that the Brush handle is valid.
</p>
<p>
The styles stored in Brush are checked for hatched-style brushes. When no
hatch styles are used, the background color for the canvas is set to the
color specified in Brush. If the Brush style is bsSolid, the background mode
is set to OPAQUE. Otherwise, the TRANSPARENT background mode is used.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.CreateFont">
<short>
Ensures that the Font for the canvas is valid and uses the correct color.
</short>
<descr>
<p>
Gets the handle for the <var>Font</var> from its <var>Reference</var> class.
The first time the Font handle is selected, the handle for the default font
is returned as saved for use with <var>DeselectHandles</var>.
</p>
<p>
CreateFont updates the state flags for the canvas to include the value
<var>csFontValid</var>. <var>SetTextColor</var> is called to apply the color
from the Font to the canvas Handle.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.CreateHandle">
<short>Creates a new Handle for the Canvas.</short>
<descr>
<p>
CreateHandle has an empty implementation in TCanvas.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.CreatePen">
<short>
Ensures that the Pen for the canvas is valid, configured, and positioned.
</short>
<descr>
<p>
<var>CreatePen</var> is a procedure used to create, configure and position
the pen for the canvas.
</p>
<p>
CreatePen calls <var>SelectObject</var> to get the <var>Handle</var> for the
<var>Pen</var>, and saves a copy for local access in the class instance. The
<var>MoveTo</var> method is called to position the Pen to the coordinates in
the <var>PenPos</var> property. Canvas state flags are updated to indicate
that the handle for the Pen is valid.
</p>
<p>
CreatePen is called when <var>RequiredState</var> is used to check for a
valid pen handle.
</p>
</descr>
<seealso>
<link id="TCanvas.Pen"/>
<link id="TCanvas.Handle"/>
<link id="TCanvas.RequiredState"/>
<link id="TPen.Reference"/>
<link id="TPenMode"/>
<link id="TCanvasStates"/>
</seealso>
</element>
<element name="TCanvas.CreateRegion">
<short>Ensures that the handle for the canvas Region is valid.</short>
<descr>
<p>
<var>CreateRegion</var> is a procedure used to ensure that the handle for the
rectangular
<var>Region</var> in the canvas is valid.
</p>
<p>
CreateRegion calls <var>SelectObject</var> to the get the handle for the
Region, and saves a local copy for access in the class instance. Canvas state
flags are updated to indicates that the handle for the Region is valid.
</p>
<p>
CreateRegion is declared as a virtual method, and may be overridden in
descendant classes.
</p>
<remark>
CreateRegion is not used in the current LCL implementation.
</remark>
</descr>
<seealso/>
</element>
<element name="TCanvas.DeselectHandles">
<short>Deselects all sub-handles in the current device context.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.PenChanging">
<short>Implements the default OnChanging event handler used for the Pen in
the canvas.
</short>
<descr>
<p>
Ensures that canvas state flags indicate both the handle and the pen handle
are valid.
No actions are performed in the method if either handle is not valid.
</p>
<p>
Removes the value csPenValid from the canvas state flags, and selects the
saved pen handle in the class instance. The internal copy of the saved pen
handle is set to 0.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.PenChanging.APen">
<short>Object for the event notification.</short>
</element>
<element name="TCanvas.FontChanging">
<short>
Implements the OnChanging event handler for the Font used on the canvas.
</short>
<descr>
<p>
<var>FontChanging</var> is assigned as the OnChanging event handler for the
Font property in the constructor for the class instance. It allows the canvas
class to be notified and updated when a new font is assigned to the canvas.
</p>
<p>
FontChanging ensures that both the Handle and the Font for the canvas are
valid. No actions are performed in the method if State does not contain the
values csFontValid and csHandleValid. It removes csFontValid from the States
property and reselects the handle for the Font in the control.
</p>
</descr>
<seealso>
<link id="TCanvas.Font"/>
<link id="TCanvas.Create"/>
<link id="TCanvas.OnChange"/>
<link id="TFont"/>
</seealso>
</element>
<element name="TCanvas.FontChanging.AFont">
<short>Not used in the current implementation of the method.</short>
</element>
<element name="TCanvas.BrushChanging">
<short>
Implements the OnChanging event handler for the Brush on the canvas.
</short>
<descr>
<p>
<var>BrushChanging</var> is assigned as the OnChanging event handler for the
Brush property in the constructor for the class instance. It allows the
canvas class to be notified and updated when a new brush is assigned to the
canvas.
</p>
<p>
BrushChanging ensures that both the Handle and the Brush for the canvas are
valid. No actions are performed in the method if State does not contain the
values csBrushValid and csHandleValid. It removes csBrushValid from the
States property and reselects the handle for the Brush in the control.
</p>
</descr>
<seealso>
<link id="TCanvas.Brush"/>
<link id="TCanvas.Create"/>
<link id="TCanvas.OnChange"/>
<link id="TBrush"/>
</seealso>
</element>
<element name="TCanvas.BrushChanging.ABrush">
<short>Not used in the current implementation of the method.</short>
</element>
<element name="TCanvas.RegionChanging">
<short>
Implements the OnChanging event handler for the Region on the canvas.
</short>
<descr>
<p>
<var>RegionChanging</var> is assigned as the OnChanging event handler for the
Region property in the constructor for the class instance. It allows the
canvas class to be notified and updated when the region for the canvas is
modified.
</p>
<p>
RegionChanging ensures that both the Handle and the Region for the canvas are
valid. No actions are performed in the method if State does not contain the
values csRegionValid and csHandleValid. It removes csRegionValid from the
States property and reselects the handle for the Region on the control.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.RegionChanging.ARegion">
<short>Not used in the current implementation of the method.</short>
</element>
<element name="TCanvas.RealizeAutoRedraw">
<short>Implements the AutoRedraw feature when enabled.</short>
<descr>
<p>
RealizeAutoRedraw is called when a new value for the AutoRedraw property is
assigned. No actions are performed in the method when AutoRedraw is
<b>False</b>, or when the Handle for the canvas has not been allocated.
</p>
<p>
RealizeAutoRedraw calls the DCRedraw method in the widgetset class using the
value in Handle as the device context.
</p>
</descr>
<seealso>
<link id="TCanvas.AutoRedraw"/>
<link id="TCanvas.Handle"/>
</seealso>
</element>
<element name="TCanvas.RealizeAntialiasing">
<short>Implements the Anti-aliasing feature for the canvas.</short>
<descr>
<p>
<var>RealizeAntialiasing</var> is called when a new value has been assigned
to the <var>AntialiasingMode</var> property. No actions are performed in the
method if the <var>Handle</var> has not been allocated for the canvas.
</p>
<p>
RealizeAntialiasing uses the value in AntialiasingMode to determine the
action required in the method.
</p>
<dl>
<dt>amOn</dt>
<dd>
Calls DCSetAntialiasing in the widgetset to enable anti-aliasing for the
Handle.
</dd>
<dt>amOff</dt>
<dd>
Calls DCSetAntialiasing in the widgetset to disable anti-aliasing for the
Handle.
</dd>
<dt>amDontCare</dt>
<dd>
Calls DCSetAntialiasing using the default capabilities for the widgetset.
</dd>
</dl>
</descr>
<seealso/>
</element>
<element name="TCanvas.RequiredState">
<short>Ensures that all handles needed for the canvas are valid.</short>
<descr>
<p>
<var>RequiredState</var> is a procedure used to ensure that the canvas state
flags include the values specified in the ReqState parameter. The
<var>TCanvasStates</var> values represent handles that must be allocated for
the canvas.
</p>
<p>
When a state value is not present in the flags, the corresponding routine
used to create the required handle is called.
</p>
<dl>
<dt>csHandleValid</dt>
<dd>
Calls CreateHandle, and raises an EInvalidOperation if the handle could not
be allocated. Sets the AntialiasingMode for the canvas. Includes
csHandleValid in the canvas state flags on success.
</dd>
<dt>csFontValid</dt>
<dd>
Calls CreateFont, and includes csFontValid in the canvas state flags on
success.
</dd>
<dt>csPenValid</dt>
<dd>
Calls CreatePen. Includes csBrushValid in the canvas state flags when the Pen
style is a Brush pattern (psDash, psDot, psDashDot, psDashDotDot). Includes
csPenValid in the canvas state flags on success.
</dd>
<dt>csBrushValid</dt>
<dd>
Calls CreateBrush. Includes csBrushValid in the canvas state flags on success.
</dd>
</dl>
<p>
RequiredState is called from method implementations prior to performing an
operation which requires a specific canvas state (or handles).
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.RequiredState.ReqState">
<short>Required state flags.</short>
</element>
<element name="TCanvas.SetHandle">
<short>Sets the value for the Handle property.</short>
<descr>
<p>
De-selects any existing handles in the class instance, and sets the new value
for the property. Applies the anti-aliasing mode when the handle is valid.
Updates the state flags for the canvas.
</p>
</descr>
<seealso>
<link id="TCanvas.Handle"/>
</seealso>
</element>
<element name="TCanvas.SetHandle.NewHandle">
<short>New value for the property.</short>
</element>
<element name="TCanvas.SetInternalPenPos">
<short>
<var>SetInternalPenPos</var> - specify position for the Pen.
</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.SetInternalPenPos.Value">
<short/>
</element>
<element name="TCanvas.SetPixel">
<short>Sets a value in the indexed Pixels property.</short>
<descr/>
<seealso>
<link id="TCanvas.Pixels"/>
</seealso>
</element>
<element name="TCanvas.SetPixel.X">
<short>Horizontal canvas coordinate for the pixel.</short>
</element>
<element name="TCanvas.SetPixel.Y">
<short>Vertical canvas coordinate for the pixel.</short>
</element>
<element name="TCanvas.SetPixel.Value">
<short>New value for the indexed property.</short>
</element>
<element name="TCanvas.FreeHandle">
<short>Frees the Handle for the canvas.</short>
<descr>
<p>
<var>FreeHandle</var> is a procedure used to free the <var>Handle</var> for
the canvas. FreeHandle sets the value in Handle to <b>0 (zero)</b> to
indicate that it is unassigned.
</p>
</descr>
<seealso>
<link id="TCanvas.Handle"/>
</seealso>
</element>
<element name="TCanvas.Create">
<short>
Constructor for the class instance.
</short>
<descr>
<p>
<var>Create</var> is the constructor for <var>TCanvas</var>. It calls the
inherited <var>Create</var> method and sets defaults for many properties and
actions.
</p>
<p>
It also initializes Font, Pen, and Brush properties and assigns their event
handlers. It sets default values for Alignment, Layout, Clipping and Opacity.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the destructor for <var>TCanvas</var>. It frees handles
and regions, and calls the inherited Destroy method, sets font, pen and brush
resources to <b>Nil</b> in the TCanvas class instance and makes its resources
available.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.Lock">
<short>
<var>Lock</var> the canvas, making it unavailable for drawing.
</short>
<descr>
<p>Calls the <var>LockCanvas</var> method in the <var>TFPCustomCanvas</var>
ancestor.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.TryLock">
<short>
<var>TryLock</var> - examines the Lock state, and performs Lock if necessary.
</short>
</element>
<element name="TCanvas.Unlock">
<short>
<var>Unlock</var> or release a previously locked Canvas.
</short>
<descr>
<p>
Calls the <var>UnlockCanvas</var> method in the <var>TFPCustomCanvas</var>
ancestor.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.Refresh">
<short>Sets Pen, Brush, and Font handles to their default values.</short>
<descr>
<p>
Calls <var>DeselectHandles</var> to reset the handles to their default
values. Requires a valid Handle for the canvas. Saved handles for the Pen,
Brush, and Font are released.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.Changing">
<short>Signals the OnChanging event handler (when assigned).</short>
<descr>
<p>
<var>Changing</var> is called in methods which perform drawing operations,
and occurs before the actions that affect the handles or settings for the
canvas.
</p>
</descr>
<seealso>
<link id="TCanvas.OnChanging"/>
</seealso>
</element>
<element name="TCanvas.Changed">
<short>Signals the OnChange event handler (when assigned).</short>
<descr>
<p>
<var>Changed</var> is called in methods which perform drawing operations, and
occurs after the actions that affect the handles or settings for the canvas
have been completed.
</p>
</descr>
<seealso>
<link id="TCanvas.OnChange"/>
</seealso>
</element>
<element name="TCanvas.SaveHandleState">
<short>Stores the state for the Handle in the canvas.</short>
<descr>
<p>
<var>SaveHandleState</var> is used in the LCL instead of direct calls to
<var>SaveDC</var> and <var>RestoreDC</var> in widgetset classes. Used along
with <var>RestoreHandleState</var>. It allows multiple device contexts to be
captured and handled in a LIFO fashion.
</p>
</descr>
<seealso>
<link id="TCanvas.RestoreHandleState"/>
</seealso>
</element>
<element name="TCanvas.RestoreHandleState">
<short>Restores the previous Handle state for the canvas.</short>
<descr/>
<seealso/>
</element>
<element name="TCanvas.Arc">
<short>
Use <var>Arc</var> to draw an elliptically curved line with the current Pen.
</short>
<descr>
<p>
Use <var>Arc</var> to draw an elliptically curved line with the current Pen.
Arc is re-introduced in TCanvas to provide additional overloads for the
method found in the platform-specific LCL interface object. Parameter values
passed to the overloaded methods are in turn passed to the widgetset class
for the platform.
</p>
<p>
<var>ALeft</var>, <var>ATop</var>, <var>ABottom</var>, and <var>ARight</var>
represent the canvas bounds in which the drawing operation is performed.
</p>
<p>
One variant of the method provides the <var>Angle16Deg</var> and
<var>Angle16DegLength</var> arguments.
</p>
<p>
Angle16Deg contains the central angle which defines the direction for the arc
endpoint. Positive values indicate a counter-clockwise direction.Zero degrees
lies at the 3 o'clock position. These value is expressed in 1/16ths of a
degree. For example, a full circle equals 5760 (16*360) increments.
</p>
<p>
Angle16DegLength contains the arc length used to determine the over-all
circumference of the circle for with the arc is a segment.
</p>
<p>
Another variant provides the <var>SX</var>, <var>SY</var> and <var>EX</var>,
<var>EY</var> arguments representing the starting and ending radial points
between which the Arc is drawn.
</p>
</descr>
<version>
Drawing methods which reintroduce those in the TFPCustomCanvas ancestor class
were added in LCL version 2.6.1.
</version>
</element>
<element name="TCanvas.Arc.ALeft">
<short>Left boundary for the canvas.</short>
</element>
<element name="TCanvas.Arc.ATop">
<short>Top boundary for the canvas.</short>
</element>
<element name="TCanvas.Arc.ARight">
<short>Right boundary for the canvas.</short>
</element>
<element name="TCanvas.Arc.ABottom">
<short>Bottom boundary for the canvas.</short>
</element>
<element name="TCanvas.Arc.Angle16Deg">
<short>Angle for the arc segment in 1/16ths of a degree.</short>
</element>
<element name="TCanvas.Arc.Angle16DegLength">
<short>Arc length.</short>
</element>
<element name="TCanvas.Arc.SX">
<short>
Horizontal coordinate for the starting radial point in the arc.
</short>
</element>
<element name="TCanvas.Arc.SY">
<short>
Vertical coordinate for the starting radial point in the arc.
</short>
</element>
<element name="TCanvas.Arc.EX">
<short>
Horizontal coordinate for the ending radial point in the arc.
</short>
</element>
<element name="TCanvas.Arc.EY">
<short>Vertical coordinate for the ending radial point in the arc.</short>
</element>
<element name="TCanvas.ArcTo">
<short>Draws an elliptically curved line and updates the Pen position.</short>
<descr>
<p>
Like the Arc method, but updates the Pen position.
</p>
</descr>
<seealso>
<link id="TCanvas.Arc"/>
</seealso>
</element>
<element name="TCanvas.ArcTo.ALeft">
<short/>
</element>
<element name="TCanvas.ArcTo.ATop">
<short/>
</element>
<element name="TCanvas.ArcTo.ARight">
<short/>
</element>
<element name="TCanvas.ArcTo.ABottom">
<short/>
</element>
<element name="TCanvas.ArcTo.SX">
<short/>
</element>
<element name="TCanvas.ArcTo.SY">
<short/>
</element>
<element name="TCanvas.ArcTo.EX">
<short/>
</element>
<element name="TCanvas.ArcTo.EY">
<short/>
</element>
<element name="TCanvas.AngleArc">
<short>
Draws an arc over a specified angle along the circumference of a circle.
</short>
<descr>
<p>
<var>AngleArc</var> is a method used to draw an arc over a specified angle
along the circumference of a circle with given radius and center point.
</p>
<p>
<var>X</var> and <var>Y</var> contain the coordinates for the center of the
circle along which the arc is drawn.
</p>
<p>
<var>Radius</var> is the distance from the center point of the circle to the
circumference where the arc is drawn. The LongWord type can contain positive
integer values in the range 0..4294967295.
</p>
<p>
<var>StartAngle</var> and <var>SweepAngle</var> indicate where the arc is
drawn on the circumference of the circle. The angle values are specified in
degrees.
</p>
<p>
StartAngle contains the angle from the center of the circle to the starting
point on the circumference. Its value is relative to the X-Axis and
increments in the counter-clockwise direction.
</p>
<p>
SweepAngle defines the length of the arc expressed in degrees, and is
used to find the ending point for the arc. Its value is relative to the
starting point, and increments in the counter-clockwise direction.
</p>
<p>
Before the arc is drawn, LineTo is used to drawn a line from the current pen
position to the starting point of the arc.
</p>
<p>
The Arc method is called to render the arc using the center point, radius,
starting point, and ending point values.
</p>
<p>
After the arc is drawn, the Pen position is moved to the ending point for the
arc.
</p>
<p>
Update values for the Pen style, mode, color or width prior to calling the
method.
</p>
</descr>
<seealso>
<link id="TCanvas.Arc"/>
<link id="TCanvas.Pen"/>
</seealso>
</element>
<element name="TCanvas.AngleArc.X">
<short>
Horizontal coordinate for the center of the circle.
</short>
</element>
<element name="TCanvas.AngleArc.Y">
<short>
Vertical coordinate for the center of the circle.
</short>
</element>
<element name="TCanvas.AngleArc.Radius">
<short>
Distance from the center point to the circumference of the circle.
</short>
</element>
<element name="TCanvas.AngleArc.StartAngle">
<short>
Angle (in degrees) relative to the X-Axis where the arc is started.
</short>
</element>
<element name="TCanvas.AngleArc.SweepAngle">
<short>
Angle (in degrees) relative to StartAngle where the arc ends.
</short>
</element>
<element name="TCanvas.BrushCopy">
<short>
Copies part of a bitmap to a rectangle on the canvas and replaces the
transparent color with the canvas Brush color.
</short>
<descr>
<p>
The end result is that pixels copied from ABitmap using the color in
ATransparentColor are replaced with the brush color for the canvas. This makes
the copied area in ASourceRect partially transparent when applied to ADestRect.
</p>
<p>
Pixels colors from ASourceRect are applied to a temporary image, and the
StretchDraw method is called to draw the copied rectangle onto the canvas.
</p>
<p>
Set the Color property in Brush before calling the method.
</p>
</descr>
<seealso>
<link id="TCanvas.Brush"/>
<link id="TCanvas.StretchDraw"/>
<link id="TBrush.Color"/>
<link id="TColorToFPColor"/>
<link id="TBitmap"/>
</seealso>
</element>
<element name="TCanvas.BrushCopy.ADestRect">
<short>
Rectangle on the canvas where the content from ABitmap is stored.
</short>
</element>
<element name="TCanvas.BrushCopy.ABitmap">
<short>
TBitmap with the pixel content copied in the method.
</short>
</element>
<element name="TCanvas.BrushCopy.ASourceRect">
<short>
Rectangle with the bounds for the copied region in ABitmap.
</short>
</element>
<element name="TCanvas.BrushCopy.ATransparentColor">
<short>
Specifies the pixel color in ABitmap which becomes transparent when copied to
the destination rectangle on the Canvas.
</short>
</element>
<element name="TCanvas.Chord">
<short>
Draw a filled chord shape starting and finishing at the specified angular
positions on the circumference.
</short>
<descr>
<p>
Use Chord to draw a filled Chord shape on the canvas.
</p>
<p>
The angles angle1 and angle2 are 1/16th of a degree. For example, a full
circle equals 5760 (16*360).
</p>
<p>
Positive values of Angle and AngleLength mean counter-clockwise while
negative values mean clockwise direction. Zero degrees is at the 3 o'clock
position.
</p>
<p>
Alternatively the starting and ending points may be specified as radial
points (sx, sy, ex, ey).
</p>
</descr>
</element>
<element name="TCanvas.Chord.x">
<short/>
</element>
<element name="TCanvas.Chord.y">
<short/>
</element>
<element name="TCanvas.Chord.Width">
<short/>
</element>
<element name="TCanvas.Chord.Height">
<short/>
</element>
<element name="TCanvas.Chord.StartAngle16Deg">
<short/>
</element>
<element name="TCanvas.Chord.EndAngle16Deg">
<short/>
</element>
<element name="TCanvas.Chord.SX">
<short/>
</element>
<element name="TCanvas.Chord.SY">
<short/>
</element>
<element name="TCanvas.Chord.EX">
<short/>
</element>
<element name="TCanvas.Chord.EY">
<short/>
</element>
<element name="TCanvas.Chord.x1">
<short/>
</element>
<element name="TCanvas.Chord.y1">
<short/>
</element>
<element name="TCanvas.Chord.x2">
<short/>
</element>
<element name="TCanvas.Chord.y2">
<short/>
</element>
<element name="TCanvas.CopyRect">
<short>
Copies the rectangle found at <var>Source</var> in <var>SrcCanvas</var> to
the destination position in <var>Dest</var>.
</short>
<descr>
<p>
<var>CopyRect</var> is a method used to copy a rectangular area from another
TCanvas instance to the specified location on the canvas instance.
</p>
<p>
No actions are performed in the method if SrcCanvas has not been assigned, or
when the width or height in either Source or Dest is zero (0) pixels.
</p>
<p>
CopyRect calls the StretchBlt routine in the LCL interface to expand or shrink
the content in Source to the dimensions in Dest. The CopyMode property
provides the raster operation for the block transfer.
</p>
<p>
CopyRect calls Changing to signal an assigned OnChanging event handler prior
to the block transfer. CopyRect calls Changed to signal an assigned OnChange
event handler immediately after to the block transfer.
</p>
</descr>
<seealso>
<link id="TCanvas.CopyMode"/>
<link id="TCanvas.Changing"/>
<link id="TCanvas.Changed"/>
</seealso>
</element>
<element name="TCanvas.CopyRect.Dest">
<short>
TRect instance with the bounds where the copied values are stored on the
canvas.
</short>
</element>
<element name="TCanvas.CopyRect.SrcCanvas">
<short>
TCanvas instance with the value copied in the method.
</short>
</element>
<element name="TCanvas.CopyRect.Source">
<short>
TRect instance with the content copied in the method.
</short>
</element>
<element name="TCanvas.Draw">
<short>
Draws the image content in SrcGraphic on the canvas at the specified position.
</short>
<descr>
<p>
<var>Draw</var> is reintroduced method in TCanvas; it reimplements the
inherited method to use the TGraphic instance in SrcGraphic as the container
with the image content drawn in the method.
</p>
<p>
No actions are performed in the method if SrcGraphic has not been assigned.
</p>
<p>
Draw calls the StretchDraw method to render the content in SrcGraphic on the
canvas at the position specified in X and Y. The Width and Height in SrcGraphic
set the bounds for the image rectangle applied to the canvas using StretchDraw.
Since a stretch mode is not enabled when StretchDraw is called, the source
graphic is not enlarged or shrunk to the canvas size. The source graphic is
clipped if its bounds exceeds the canvas bounds. The Draw method in SrcGraphic
performs the actions needed to position and rendering the content to the Pixels
in the canvas.
</p>
<p>
CopyMode determines the raster operation performed for the Pixels affected on
the canvas.
</p>
<p>
Calling Draw causes the OnChanging and OnChange events to be signalled (when
assigned). OnChanging occurs prior to calling Draw in the TGraphic instance.
OnChange occurs after calling Draw in the TGraphic instance.
</p>
</descr>
<seealso>
<link id="TCanvas.StretchDraw"/>
<link id="TCanvas.CopyMode"/>
<link id="TCanvas.OnChange"/>
<link id="TCanvas.OnChanging"/>
<link id="TGraphic.Width"/>
<link id="TGraphic.Height"/>
<link id="TGraphic.Draw"/>
<link id="#rtl.classes.TRect">TRect</link>
</seealso>
</element>
<element name="TCanvas.Draw.X">
<short>
Horizontal coordinate where the content is drawn.
</short>
</element>
<element name="TCanvas.Draw.Y">
<short>
Vertical coordinate where the content is drawn.
</short>
</element>
<element name="TCanvas.Draw.SrcGraphic">
<short>
TGraphic instance with the image content drawn in the method.
</short>
</element>
<element name="TCanvas.DrawFocusRect">
<short>
Draws a focus rectangle around the specified rectangle on the canvas.
</short>
<descr>
<p>
<var>DrawFocusRect</var> is a method used to draw a focus rectangle around the
rectangular region specified in ARect.
</p>
<p>
DrawFocusRect calls Changing to signal an assigned OnChanging event handler
prior to drawing the focus rectangle. It calls Changed to signal an assigned
OnChange event handler immediately after drawing the focus rectangle.
</p>
<p>
DrawFocusRect calls the DrawFocusRect routine in the LCL interface to perform
the drawing opertation using the Handle for the canvas.
</p>
</descr>
<seealso>
<link id="TCanvas.Changing"/>
<link id="TCanvas.Changed"/>
<link id="#lcl.lclintf.DrawFocusRect">LCLIntf.DrawFocusRect</link>
</seealso>
</element>
<element name="TCanvas.DrawFocusRect.ARect">
<short>
TRect instance with the bounds for the drawing operation.
</short>
</element>
<element name="TCanvas.StretchDraw">
<short>
Expands or contracts the specific graphic content to fit the specified
destination rectangle on the canvas.
</short>
<descr>
<p>
StretchDraw is a reintroduced method in TCanvas; it reimplements the inherited
method to use the specified TGraphic content in the drawing operation instead
of a TFPCustomImage instance.
</p>
<p>
No actions are performed in the method if SrcGraphic has not been assigned.
</p>
<p>
DestRect provides the rectangular area on the canvas where the graphic content
is drawn. The Draw method in SrcGraphic is called to draw the image content
onto the canvas instance. If the dimensions in DestRect differ from the Width
or Height in SrcGraphic, the image content is expanded or contracted to fit
the destination rectangle. This may causes the aspect ratio for the image
content to be changed.
</p>
<p>
StretchDraw calls Changing to signal an assigned OnChanging event handler
immediately before the drawing operation. It calls Changed to signal an
assigned OnChange event handler when the drawing operation has been completed.
</p>
</descr>
<seealso>
<link id="TCanvas.Changing"/>
<link id="TCanvas.Changed"/>
<link id="TGraphic.Draw"/>
<link id="#rtl.classes.TRect">TRect</link>
</seealso>
</element>
<element name="TCanvas.StretchDraw.DestRect">
<short>
TRect instance where the specified content is drawn on the canvas.
</short>
</element>
<element name="TCanvas.StretchDraw.SrcGraphic">
<short>
TGraphic instance with the image content drawn in the method.
</short>
</element>
<element name="TCanvas.Ellipse">
<short>
Draws a filled ellipse (or circle) on the canvas.
</short>
<descr>
<p>
<var>Ellipse</var> is an overloaded, reintroduced method in TCanvas used to
draw a filled ellipse shape. The overloaded variants allow the shape to be
defined either as a rectangular area where the shape is drawn, or by using
Integer coordinates to establish the major and minor axis for the shape.
</p>
<p>
ARect is the TRect instance with the bounds for the shape.
</p>
<p>
x1, y1, x2, and y2 allows the bounds for the shape to be specified as Integer
values.
</p>
<p>
The bounds are used to calculate the vertex, co-vertex, linear eccentricity
and focal points for the shape.
</p>
<p>
When the bounds area is a square, the resulting shape is a circle.
</p>
<p>
Ellipse calls the Ellipse routine in the LCL interface to perform the drawing
operation.
</p>
</descr>
<seealso>
<link id="#lcl.lclintf.Ellipse">LCLIntf.Ellipse</link>
</seealso>
</element>
<element name="TCanvas.Ellipse.ARect">
<short>
TRect instance with the bounds for the shape.
</short>
</element>
<element name="TCanvas.Ellipse.x1">
<short>
Left coordinate for the bounding box.
</short>
</element>
<element name="TCanvas.Ellipse.y1">
<short>
Top coordinate for the bounding box.
</short>
</element>
<element name="TCanvas.Ellipse.x2">
<short>
Right coordinate for the bounding box.
</short>
</element>
<element name="TCanvas.Ellipse.y2">
<short>
Bottom coordinate for the bounding box.
</short>
</element>
<element name="TCanvas.FillRect">
<short>
Fills a rectangular area on the canvas using the current Brush settings.
</short>
<descr>
<p>
<var>FillRect</var> is an overloaded method used to fill a rectangular area
on the canvas using the style, color, or bitmap defined in Brush. The
overloaded variants allow the vertices for the rectangle to be specified as
either:
</p>
<ul>
<li>
Four separate Integer coordinates representing the top/left and bottom/right
of the shape.
</li>
<li>
A TRect instance where the vertices are represented as either four Integers,
two TPoint instances for TopLeft and BottomRight, or a vector using the
TArray4IntegerType.
</li>
</ul>
<p>
FillRect calls the routine in the LCL interface used to implement the method
for a specific widgetset.
</p>
<p>
Use Rectangle to draw a filled rectangle with borders. Use FloodFill to fill
a rectangular area bounded by a specified color value.
</p>
</descr>
<seealso>
<link id="TCanvas.Brush"/>
<link id="TCanvas.FloodFill"/>
<link id="TCanvas.Rectangle"/>
<link id="#lcl.lclintf.FillRect">LCLIntf.FillRect</link>
</seealso>
</element>
<element name="TCanvas.FillRect.ARect">
<short>
TRect instance with the vertices for the rectangular area filled in the
method.
</short>
</element>
<element name="TCanvas.FillRect.X1">
<short>Left coordinate for the Top, Left of the rectangle.</short>
</element>
<element name="TCanvas.FillRect.Y1">
<short>Top coordinate for the Top, Left of the rectangle.</short>
</element>
<element name="TCanvas.FillRect.X2">
<short>Right coordinate for the Bottom, Right of the rectangle.</short>
</element>
<element name="TCanvas.FillRect.Y2">
<short>Bottom coordinate for the Bottom, Right of the rectangle.</short>
</element>
<element name="TCanvas.FloodFill">
<short>
Fills an area at the specified coordinates with the current Brush for the
canvas.
</short>
<descr>
<p>
FloodFill is a method used to fill the area at the point specified in X, Y
with the style, color, or bitmap defined in Brush.
</p>
<p>
FillColor contains the color value for the boundary of the fill, or the area
to be filled, depending on the value in FillStyle.
</p>
<p>
FillStyle determines the type of fill operation performed in the method. For
example:
</p>
<dl>
<dt>
fsBorder
</dt>
<dd>
The fill area is bounded by pixels with the color specified in FillColor.
Pixels are filled in all directions with the Brush until the a pixel with the
specified color is found.
</dd>
<dt>
fsSurface
</dt>
<dd>
The fill area is defined as the color specified in FillColor. Pixels with
this color are filled in all directions with the Brush until no more pixels
with this color are found.
</dd>
</dl>
<p>
Please note that comments in the TGraphicsFillStyle source code have these
conditions reversed.
</p>
<p>
FloodFill calls the routine in the LCL interface used to implement the method
for the widgetset. The return value from the LCL interface is ignored.
</p>
</descr>
<seealso>
<link id="TCanvas.Brush"/>
<link id="TColor"/>
<link id="TFillStyle"/>
<link id="TGraphicsFillStyle"/>
<link id="#lcl.lclintf.FloodFill">LCLIntf.FloodFill</link>
</seealso>
</element>
<element name="TCanvas.FloodFill.X">
<short>
Horizontal coordinate where the fill operation is performed.
</short>
</element>
<element name="TCanvas.FloodFill.Y">
<short>
Vertical coordinate where the fill operation is performed.
</short>
</element>
<element name="TCanvas.FloodFill.FillColor">
<short>
Color replaced or used as a boundary in the fill operation.
</short>
</element>
<element name="TCanvas.FloodFill.FillStyle">
<short>
Determines whether FillColor is the boundary or the target for the fill
operation.
</short>
</element>
<element name="TCanvas.Frame3D">
<short>
Draws a frame for the specified rectangle with a 3-dimensional appearance.
</short>
<descr>
<p>
<var>Frame3D</var> is an overloaded method used to draw a frame for the
specified rectangle with a 3-dimensional appearance. It draws the frame using
the Brush for the canvas with the style, colors, and size passed in the
parameter values. Frame3D does not fill the inner area for the rectangle; it
draws the frame or borders only.
</p>
<p>
<var>ARect</var> is the <var>TRect</var> instance with the bounds where the
drawing operation is performed. It is a variable parameter updated in the
method to return the inner area for the rectangle without the frame area.
</p>
<p>
The overloaded variants allow the drawing style and size for the
3-dimensional frame to be specified.
</p>
<p>
<var>Style</var> contains a value from the TGraphicsBevelCut enumeration and
is used when a beveled frame is desired.
</p>
<p>
<var>TColor</var> values can be provided to use colors to simulate
3-Dimensional relief. <var>TopColor</var> is the color used to draw the top
and left edges on the frame. <var>BottomColor</var> is used to draw the
bottom and right edges on the frame. System colors like cl3DLight,
cl3DHilight, cl3DDkShadow, cl3DShadow, and cl3DFace are commonly used in
these parameters.
</p>
<p>
<var>FrameWidth</var> contains the thickness for the 3-D frame; for left and
right edges it is the border width, for top and bottom edges it is the border
height. The bounds in ARect are inflated by this value before exit.
</p>
</descr>
<seealso>
<link id="TCanvas.Brush"/>
<link id="TColor"/>
<link id="#lazutils.graphtype.TGraphicsBevelCut">TGraphicsBevelCut</link>
<link id="#lcl.lclintf.Frame3d">LCLIntf.Frame3D</link>
</seealso>
</element>
<element name="TCanvas.Frame3D.ARect">
<short>
Bounds for the rectangle on entry, the inner rectangle without the frame area
on exit.
</short>
</element>
<element name="TCanvas.Frame3D.FrameWidth">
<short>
Thickness for the borders drawn in the method.
</short>
</element>
<element name="TCanvas.Frame3D.Style">
<short>
Bevel style used to draw the borders on the rectangle.
</short>
</element>
<element name="TCanvas.Frame3D.TopColor">
<short>
Color used for the top and left edges of the frame.
</short>
</element>
<element name="TCanvas.Frame3D.BottomColor">
<short>
Color used for the bottom and right edges of the frame.
</short>
</element>
<element name="TCanvas.Frame">
<short>
Draws a frame or border around the specified rectangle using the Pen for the
canvas.
</short>
<descr>
<p>
<var>Frame</var> is method used to draw a border or frame for the specified
rectangle use the Pen for the canvas. Overloaded variants of the method are
provided which allow the rectangle to be specified as:
</p>
<ul>
<li>
Four separate Integer coordinates representing the top/left and bottom/right
of the rectangle.
</li>
<li>
A TRect instance where the vertices are represented as either four Integers,
two TPoint instances for TopLeft and BottomRight, or a vector using the
TArray4IntegerType.
</li>
</ul>
<p>
Frame sets the Style property in Brush to bsClear. This suppresses filling
the interior of the rectangle with the Color for the Brush. In others words,
the area in side the frame is transparent. The Brush style is restored to its
previous value prior to exit.
</p>
<p>
Frame calls the Rectangle method to draw the borders on the frame using the
Pen for the canvas.
</p>
<p>
Set property values in Pen prior to calling the method, including:
</p>
<ul>
<li>Mode</li>
<li>Style</li>
<li>Color</li>
<li>Width</li>
<li>JoinStyle</li>
<li>EndCap</li>
</ul>
</descr>
<seealso>
<link id="TCanvas.Rectangle"/>
<link id="TCanvas.FrameRect"/>
<link id="TCanvas.Frame3D"/>
<link id="TCanvas.FloodFill"/>
</seealso>
</element>
<element name="TCanvas.Frame.ARect">
<short>
TRect instance with the bounds for the rectangle.
</short>
</element>
<element name="TCanvas.Frame.X1">
<short>
Left coordinate for the Top, Left of the rectangle.
</short>
</element>
<element name="TCanvas.Frame.Y1">
<short>
Top coordinate for the Top, Left of the rectangle.
</short>
</element>
<element name="TCanvas.Frame.X2">
<short>
Right coordinate for the Bottom, Right of the rectangle.
</short>
</element>
<element name="TCanvas.Frame.Y2">
<short>
Bottom coordinate for the Bottom, Right of the rectangle.
</short>
</element>
<element name="TCanvas.FrameRect">
<short>
Draws a border around the specified rectangle with the Brush for the canvas.
</short>
<descr>
<p>
<var>FrameRect</var> is an overloaded method used to draw a frame or border
for the specified rectangular area using the Brush for the canvas. Overloaded
variants allow the bounds for the rectangle to be defined using:
</p>
<p>
Four separate Integer values representing the Top/Left and Bottom/Right
coordinates for the rectangle.
</p>
<p>
A TRect instance where the vertices are represented as either four Integers,
two TPoint instances for TopLeft and BottomRight, or a vector using the
TArray4IntegerType.
</p>
<p>
FrameRect draws the border for the shape using the style, color, or bitmap
defined in Brush. The drawing operation is always performed using a 1 pixel
width / height.
</p>
<p>
FrameRect calls the routine in the LCL interface which implements the method
for the widgetset. The return value from the LCL interface is ignored.
</p>
<p>
Use Frame to draw borders on a rectangle using the Pen for the canvas. Use
Frame3D to draw borders using a specified bevel style or colors which
simulate 3-dimensional relief.
</p>
</descr>
<seealso>
<link id="TCanvas.Brush"/>
<link id="TCanvas.Frame"/>
<link id="TCanvas.Frame3D"/>
<link id="TCanvas.Rectangle"/>
<link id="#LCL.LCLIntf.FrameRect">LCLIntf.FrameRect</link>
</seealso>
</element>
<element name="TCanvas.FrameRect.ARect">
<short>
TRect instance with the bounds for the rectangle.
</short>
</element>
<element name="TCanvas.FrameRect.X1">
<short>
Left coordinate for the Top, Left of the rectangle.
</short>
</element>
<element name="TCanvas.FrameRect.Y1">
<short>
Top coordinate for the Top, Left of the rectangle.
</short>
</element>
<element name="TCanvas.FrameRect.X2">
<short>
Right coordinate for the Bottom, Right of the rectangle.
</short>
</element>
<element name="TCanvas.FrameRect.Y2">
<short>
Bottom coordinate for the Bottom, Right of the rectangle.
</short>
</element>
<element name="TCanvas.GetTextMetrics">
<short>Gets text metrics for the canvas font.</short>
<descr>
<p>
Calls <var>RequiredState</var> to check state flags for the canvas, and
ensure that the Handle and the Font are valid. RequiredState raises an
Exception if the <var>Handle</var> for the canvas is not valid.
</p>
<p>
Calls GetTextMetrics in the LCL interface to retrieve the ascender,
descender, and height metrics for the canvas Handle. The values are assigned
to members in the <var>TM</var> output argument.
</p>
<p>
The return value is <b>True</b> when text metrics were successfully retrieved
from the widgetset.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.GetTextMetrics.Result">
<short><b>True</b> on success.</short>
</element>
<element name="TCanvas.GetTextMetrics.TM">
<short>Structure with the text metrics.</short>
</element>
<element name="TCanvas.GradientFill">
<short>
Fills a rectangle with a color gradient using the specified colors in a given
direction.
</short>
<descr>
<p>
<var>GradientFill</var> fills the area inside the specified rectangle using a
color gradient with the specified start and stop colors.
</p>
<p>
No actions are performed in the method when ARect has no discernible area;
both the calculated height and width for the rectangle are 0 or a negative
number.
</p>
<p>
The direction for the color gradient is specified in the ADirection argument.
gdVertical causes the color variations to be drawn from top to bottom in the
rectangle starting with the color in AStart and ending with the color in
AStop. gdHorizontal causes the color variations to be draw from left to right
in the rectangle, also starting with the color in AStart and ending with the
color in AStop.
</p>
<p>
GradientFill decomposes color values in AStart and AStop into their Red,
Green, and Blue component values. The differences between the byte values are
varied evenly in the color gradient, and drawn as colored lines oriented in
the direction opposite to the color gradient. The color setting in Pen is
updated, and LineTo is used to draw the number of 1 pixel lines available in
the gradient direction.
</p>
<p>
Please note that the settings in Pen are not stored on entry, or restored
prior to exiting from the method. The Pen color will contain the color in
AStop on exit.
</p>
<p>
Use FloodFill to fill a rectangular area bounded by or filled with a
specified color value. Use FillRect to fill a rectangular area with the Brush
for the canvas.
</p>
</descr>
<seealso>
<link id="TCanvas.Pen"/>
<link id="TCanvas.FloodFill"/>
<link id="TCanvas.FillRect"/>
<link id="TCanvas.Rectangle"/>
<link id="TGradientDirection"/>
</seealso>
</element>
<element name="TCanvas.GradientFill.ARect">
<short>
TRect instance with the bounds for the rectangle.
</short>
</element>
<element name="TCanvas.GradientFill.AStart">
<short>
TColor value used at the start of the color gradient.
</short>
</element>
<element name="TCanvas.GradientFill.AStop">
<short>
TColor value used at the end of the color gradient.
</short>
</element>
<element name="TCanvas.GradientFill.ADirection">
<short>
Direction for the color gradient.
</short>
</element>
<element name="TCanvas.RadialPie">
<short>
<var>RadialPie</var> draws a filled pie-shaped wedge on the canvas with
specified start and end coordinates, and starting and ending angular
positions.
</short>
<descr>
<p>
Use Pie to draw a filled pie-shaped wedge on the canvas.
</p>
<p>
The angles StartAngle16Deg and Angle16DegLength are 1/16th of a degree. For
example, a full circle equals 5760 (16*360).
</p>
<p>
Positive values in StartAngle16Deg means counter-clockwise while negative
values mean clockwise direction. Zero degrees is at the 3 o'clock position.
</p>
</descr>
<seealso>
<link id="TCanvas.Pie"/>
</seealso>
</element>
<element name="TCanvas.RadialPie.x">
<short/>
</element>
<element name="TCanvas.RadialPie.y">
<short/>
</element>
<element name="TCanvas.RadialPie.Width">
<short/>
</element>
<element name="TCanvas.RadialPie.Height">
<short/>
</element>
<element name="TCanvas.RadialPie.StartAngle16Deg">
<short/>
</element>
<element name="TCanvas.RadialPie.Angle16DegLength">
<short/>
</element>
<element name="TCanvas.RadialPie.x1">
<short/>
</element>
<element name="TCanvas.RadialPie.y1">
<short/>
</element>
<element name="TCanvas.RadialPie.x2">
<short/>
</element>
<element name="TCanvas.RadialPie.y2">
<short/>
</element>
<element name="TCanvas.Pie">
<short>
<var>Pie</var> draws a filled Pie-shaped wedge on the canvas.
</short>
<descr>
<p>
Pie is a method used to draw a filled Pie-shaped wedge on the canvas. The pie
is part of an ellipse between the points EllipseX1, EllipseY1, EllipseX2,
EllipseY2. The values StartX, StartY and EndX, EndY represent the starting
and ending radial-points between which the Bounding-Arc is drawn.
</p>
</descr>
</element>
<element name="TCanvas.Pie.EllipseX1">
<short/>
</element>
<element name="TCanvas.Pie.EllipseY1">
<short/>
</element>
<element name="TCanvas.Pie.EllipseX2">
<short/>
</element>
<element name="TCanvas.Pie.EllipseY2">
<short/>
</element>
<element name="TCanvas.Pie.StartX">
<short/>
</element>
<element name="TCanvas.Pie.StartY">
<short/>
</element>
<element name="TCanvas.Pie.EndX">
<short/>
</element>
<element name="TCanvas.Pie.EndY">
<short/>
</element>
<element name="TCanvas.PolyBezier">
<short>
<var>Polybezier</var> draws cubic Bézier curves.
</short>
<descr>
<p>
Use <var>Polybezier</var> to draw cubic Bézier curves.
</p>
<p>
The first curve is drawn from the first point to the fourth point with the
second and third points being the control points.
</p>
<p>
If the <var>Continuous</var> flag is <b>True</b> then each subsequent curve
requires three more points, using the end-point of the previous Curve as its
starting point, the first and second points being used as its control points,
and the third point its end-point.
</p>
<p>
If the <var>Continuous</var> flag is set to <b>False</b>, then each
subsequent curve requires 4 additional points, which are used exactly as in
the first curve.
</p>
<p>
If the <var>Filled</var> flag is set to <b>True</b> then a straight line is
drawn from the last connected point to the starting point, and the entire
curve is filled with the current brush.
</p>
<p>
Any additional points which do not add up to a full Bézier (4 for
Continuous, 3 otherwise) are ignored. There must be at least 4 points to be
connected.
</p>
</descr>
</element>
<element name="TCanvas.PolyBezier.Points">
<short/>
</element>
<element name="TCanvas.PolyBezier.NumPts">
<short/>
</element>
<element name="TCanvas.PolyBezier.Filled">
<short/>
</element>
<element name="TCanvas.PolyBezier.Continuous">
<short/>
</element>
<element name="TCanvas.Polygon">
<short>
Draws a closed, many-sided shape using the Pen for the canvas.
</short>
<descr>
<p>
Use <var>Polygon</var> to draw a closed, many-sided shape on the canvas,
using the <var>Pen</var> for the canvas. After drawing the complete shape,
<var>Polygon</var> fills the shape using the canvas <var>Brush</var>.
</p>
<p>
The <var>Points</var> parameter is an array of points that give the vertices
of the polygon.
</p>
<p>
<var>Winding</var> determines how the polygon is filled. When
<var>Winding</var> is <b>True</b>, <var>Polygon</var> fills the shape using
the <var>Winding</var> fill algorithm.
</p>
<p>
When <var>Winding</var> is <b>False</b>, <var>Polygon</var> uses the even-odd
(alternative) fill algorithm.
</p>
<p>
<var>StartIndex</var> gives the index of the first point in the array to use.
All points before this are ignored.
</p>
<p>
<var>NumPts</var> indicates the number of points to use, starting at
<var>StartIndex</var>.
</p>
<p>
If <var>NumPts</var> is -1 (the default), <var>Polygon</var> uses all points
from <var>StartIndex</var> to the end of the array. The first point is always
connected to the last point.
</p>
<p>
To draw a polygon on the canvas without filling the internal area, use the
<var>Polyline</var> method specifying the first point a second time at the
end of the line.
</p>
</descr>
<seealso>
<link id="TCanvas.PolyLine"/>
</seealso>
</element>
<element name="TCanvas.Polygon.Points">
<short/>
</element>
<element name="TCanvas.Polygon.Winding">
<short/>
</element>
<element name="TCanvas.Polygon.StartIndex">
<short/>
</element>
<element name="TCanvas.Polygon.NumPts">
<short/>
</element>
<element name="TCanvas.Polyline">
<short>
Draws a line which connects a set of points on the canvas.
</short>
<descr>
<p>
Use <var>Polyline</var> to connect a set of points on the <var>Canvas</var>.
If you specify only two points, <var>Polyline</var> draws a single line. The
<var>Points</var> parameter is an array of points to be connected.
</p>
<p>
<var>StartIndex</var> identifies the first point in the array to use.
</p>
<p>
<var>NumPts</var> indicates the number of points to use. If <var>NumPts</var>
is -1 (the default), <var>PolyLine</var> uses all the points from
<var>StartIndex</var> to the end of the array.
</p>
<p>
Calling the <var>MoveTo</var> function with the value of the first point, and
then repeatedly calling <var>LineTo</var> with all subsequent points will
draw the same image on the canvas. However, unlike <var>LineTo</var>,
<var>Polyline</var> does not change the values in <var>PenPos</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.Polyline.Points">
<short>
Array of or pointer to the TPoint instances for the line.
</short>
</element>
<element name="TCanvas.Polyline.StartIndex">
<short>
Position of the first point used when drawing the line.
</short>
</element>
<element name="TCanvas.Polyline.NumPts">
<short>
Number of points available in the pointer.
</short>
</element>
<element name="TCanvas.Rectangle">
<short>
Draws a <var>Rectangle</var> with the specified coordinates.
</short>
<descr>
<p>
<var>Rectangle</var> is an overloaded method reintroduced in TCanvas. It is
used to draw a rectangular shape on the drawing area for the canvas. The
overloaded variants allow the coordinates to be specified as either:
</p>
<ul>
<li>
Four separate Integer values representing the top, left, bottom, and right
vertices for the shape (X1, Y1, X2, Y2).
</li>
<li>
A TRect instance where the vertices are represented as either four Integers,
two TPoint instances for TopLeft and BottomRight, or a vector using the
TArray4IntegerType (Rect).
</li>
</ul>
<p>
Rectangle draws an outline (or borders) for the shape using the mode, style
and width defined in Pen. The rectangle is also filled using the style, color
and/or bitmap defined in Brush.
</p>
<p>
Use FillRect to fill a rectangular area with the current Brush without
drawing its borders. Use FrameRect to draw the borders for the shape using
the current Brush without filling the interior. Use Frame to draw borders for
the shape using the current Pen and a clear Brush for the interior.
</p>
<p>
Rectangle calls the routine in the LCL interface used to implement the method
for the current widgetset.
</p>
</descr>
<seealso>
<link id="TCanvas.Pen"/>
<link id="TCanvas.Brush"/>
<link id="TCanvas.FillRect"/>
<link id="TCanvas.FloodFill"/>
<link id="TCanvas.Frame"/>
<link id="TCanvas.FrameRect"/>
<link id="TCanvas.Frame3D"/>
<link id="#lcl.lclintf.Rectangle">LCLIntf.Rectangle</link>
</seealso>
</element>
<element name="TCanvas.Rectangle.X1">
<short>Left coordinate for the top, left of the rectangle.</short>
</element>
<element name="TCanvas.Rectangle.Y1">
<short>Top coordinate for the top, left of the rectangle.</short>
</element>
<element name="TCanvas.Rectangle.X2">
<short>Right coordinate for the bottom, right of the rectangle.</short>
</element>
<element name="TCanvas.Rectangle.Y2">
<short>Bottom coordinate for the bottom, right of the rectangle.</short>
</element>
<element name="TCanvas.Rectangle.Rect">
<short>
TRect instance with the coordinates for the rectangle vertices.
</short>
</element>
<element name="TCanvas.RoundRect">
<short>
Draws a rectangle with rounded corners at the specified
position.
</short>
<descr>
<p>
<var>RoundRect</var> is an overloaded method in TCanvas used to draw a
rectangle with rounded corners. The overloaded variants allow
the coordinates to be specified as either:
</p>
<ul>
<li>
Four separate Integer values representing the top, left, bottom, and right
vertices for the shape (X1, Y1, X2, Y2).
</li>
<li>
A TRect instance where the vertices are represented as either four Integers,
two TPoint instances for TopLeft and BottomRight, or a vector using the
TArray4IntegerType (Rect).
</li>
</ul>
<p>
RX and RY contain the width and height (respectively) for an ellipse used to
draw arc segments for the rounded corners on the rectangular shape.
</p>
<p>
RoundRect (like Rectangle) draws an outline (or borders) for the shape using
the mode, style and width defined in Pen. The rounded rectangle is also
filled using the style, color and/or bitmap defined in Brush.
</p>
<p>
RoundRect calls the routine in the LCL interface used to implement the method
for the current widgetset.
</p>
</descr>
<seealso>
<link id="#lcl.lclintf.RoundRect">LCLIntf.RoundRect</link>
</seealso>
</element>
<element name="TCanvas.RoundRect.X1">
<short>Left coordinate for the top, left corner of the rectangle.</short>
</element>
<element name="TCanvas.RoundRect.Y1">
<short>Top coordinate for the top, left corner of the rectangle.</short>
</element>
<element name="TCanvas.RoundRect.X2">
<short>Right coordinate for the bottom, right corner of the rectangle.</short>
</element>
<element name="TCanvas.RoundRect.Y2">
<short>Bottom coordinate for the bottom, right corner of the rectangle.</short>
</element>
<short/>
<element name="TCanvas.RoundRect.RX">
<short>
Width of the ellipse a quarter of which is drawn in the rounded corners. Note that this is the <i>full</i> width rather than the radius as suggested by the variable name.
</short>
</element>
<element name="TCanvas.RoundRect.RY">
<short>
Height of the ellipse a quarter of which is drawn in the rounded corners. Note that this is the <i>full</i> height rather than the radius as suggested by the variable name.
</short>
</element>
<element name="TCanvas.RoundRect.Rect">
<short>
TRect instance with the coordinates for the rectangle vertices.
</short>
</element>
<element name="TCanvas.TextOut">
<short>Writes text at the specified position on the canvas.
</short>
<descr>
<p>
Writes the value in <var>Text</var> at the given <var>X, Y</var> coordinates
on the canvas.
</p>
<p>
Calls <var>Changing</var> to signal the <var>OnChanging</var> event handler
(when assigned). Calls <var>RequiredState</var> to ensure that handles for
the canvas, Font, and Brush are valid.
</p>
<p>
Properties in <var>TextStyle</var> are converted and combined into the
numeric flag used to format the Text, including <var>Opaque</var> and
<var>RightToLeft</var>. Uses <var>ExtUTF8Out</var> to write to the device
context using the position and style flags needed.
</p>
<p>
The <var>Pen</var> is positioned at the end of the <var>Text</var> when the
output operation is completed. The vertical canvas coordinate is not altered
in the method. In other words, TextOut does not handle multi-line text or
word wrapping of the value in Text.
</p>
<p>
TextOut calls <var>Changed</var> to signal the <var>OnChange</var> event
handler (when assigned).
</p>
</descr>
<seealso>
<link id="TCanvas.Changing"/>
<link id="TCanvas.OnChanging"/>
<link id="TCanvas.Changed"/>
<link id="TCanvas.OnChange"/>
<link id="TCanvas.RequiredState"/>
<link id="TCanvas.Font"/>
<link id="TCanvas.Brush"/>
<link id="TCanvas.Pen"/>
<link id="TCanvas.TextStyle"/>
<link id="#lcl.lclintf.ExtUTF8Out">ExtUTF8Out</link>
</seealso>
</element>
<element name="TCanvas.TextOut.X">
<short>Horizontal canvas coordinate where the text is written.</short>
</element>
<element name="TCanvas.TextOut.Y">
<short>Vertical canvas coordinate where the text is written.</short>
</element>
<element name="TCanvas.TextOut.Text">
<short>Values written in the text output operation.</short>
</element>
<element name="TCanvas.TextRect">
<short>
Draws text on the canvas at the specified location using the given style.
</short>
<descr>
<p>
Writes <var>Text</var> string within a specified rectangle, according to
predefined <var>Style</var>.
</p>
<p>
The boundaries of the text rectangle are specified in <var>ARect</var>.
<var>X, Y</var> define the starting point for writing the <var>Text</var>
within the rectangle.
</p>
<p>
<var>TextStyle</var> determines whether the text is justified, centered,
word-wrapped, clipped at the rectangle boundaries, etc. If the
<var>Style</var> argument is omitted, defaults are assumed.
</p>
<p>
<b>Note:</b> The exact text position depends on the specified rectangle, the
<var>X, Y</var> coordinates, and settings in <var>TextStyle</var>:
</p>
<ul>
<li>
<var>TextStyle.Alignment = taLeftJustify</var>: Text begins at <var>X</var>
</li>
<li>
<var>TextStyle.Alignment = taCenter</var>: Text center is in the center of
the rectangle (horizontally)
</li>
<li>
<var>TextStyle.Alignment = taRightJustify</var>: Text ends at right edge of
the rectangle
</li>
<li>
<var>TextStyle.Layout = tlTop</var>: Top of the text is at <var>Y</var>
</li>
<li>
<var>TextStyle.Layout = tlCenter</var>: Text center is in the center of the
rectangle (vertically)
</li>
<li>
<var>TextStyle.Layout = tlBottom</var>: Text sits above the bottom edge
of the rectangle
</li>
</ul>
</descr>
</element>
<element name="TCanvas.TextRect.ARect">
<short>Rectangle within which the specified text is drawn.</short>
</element>
<element name="TCanvas.TextRect.X">
<short>
Horizontal text start (respected only if TextStyle.Alignment = taLeftJustify).
</short>
</element>
<element name="TCanvas.TextRect.Y">
<short>
Vertical position of the top of the text (respected only if TextStyle.Layout
= tlTop).
</short>
</element>
<element name="TCanvas.TextRect.Text">
<short>Text to be drawn.</short>
</element>
<element name="TCanvas.TextRect.Style">
<short>
Optional parameter which determines whether the text is justified,
word-wrapped, clipped, etc. If omitted, the current <var>TextStyle</var> for
the canvas is used.
</short>
</element>
<element name="TCanvas.TextExtent">
<short>
Calculates the width and height for the specified Text using the Font for the
canvas.
</short>
<descr>
<p>
<var>TextExtent</var> is a <var>TSize</var> function used to get the width and
height for the specified Text using the Font for the canvas instance.
</p>
<p>
The TSize type in the return value returns the Width and Height for the Text
in pixels using the cX (Width) and cY (Height) members. Both members are set
to 0 if Text is an empty string (''), and when either the Handle or Font for
the canvas are invalid. The CreateHandle and CreateFont methods are called to
attempt to create the items when needed.
</p>
<p>
If the Font has the default un-initialized settings, the OnGetSystemFont event
handler is signalled to get the default system font selected for the canvas.
</p>
<p>
TextExtent calls the GetTextExtentPoint routine in the widgetset interface to
get the return value for the method.
</p>
<p>
TextExtent is used in methods like TextWidth, TextHeight and DoGetTextSize.
</p>
</descr>
<seealso>
<link id="TCanvas.RequiredState"/>
<link id="TCanvas.Handle"/>
<link id="TCanvas.Font"/>
<link id="TCanvas.CreateHandle"/>
<link id="TCanvas.CreateFont"/>
<link id="TCanvas.TextWidth"/>
<link id="TCanvas.TextHeight"/>
<link id="TCanvas.DoGetTextSize"/>
<link id="OnGetSystemFont"/>
</seealso>
</element>
<element name="TCanvas.TextExtent.Result">
<short>TSize instance with the Width and Height for the text.</short>
</element>
<element name="TCanvas.TextExtent.Text">
<short>Text examined and measured in the method.</short>
</element>
<element name="TCanvas.TextHeight">
<short>Gets the height for the specified text using the canvas Font.</short>
<descr>
<p>
Calls <var>TextExtent</var> to get the <var>TSize</var> instance with the
return value for the method.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.TextHeight.Result">
<short>Height for the specified text (in pixels).</short>
</element>
<element name="TCanvas.TextHeight.Text">
<short>Text measured in the method.</short>
</element>
<element name="TCanvas.TextWidth">
<short>Gets the width for the specified text using the canvas Font.</short>
<descr>
<p>
Calls <var>TextExtent</var> to get the <var>TSize</var> instance with the
return value for the method.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.TextWidth.Result">
<short>Width for the specified text (in pixels).</short>
</element>
<element name="TCanvas.TextWidth.Text">
<short>Text measured in the method.</short>
</element>
<element name="TCanvas.TextFitInfo">
<short>
Gets the number of characters that fit in the specified maximum width.
</short>
<descr>
<p>
TextFitInfo is an Integer function used to the determine the number
characters from Text that will fit within the maximum width specified in
MaxWidth. It is useful for situations where text must be truncated or wrapped
to fit within a given area.
</p>
<p>
Text is a String type and allows UTF-8-encoded multi-bytes values in its
content.
</p>
<p>
MaxWidth contains the maximum number of pixels allowed in the measurement.
</p>
<p>
TextFitInfo calls the GetTextExtentExPoint routine in the LCL interface to
measure each of the characters (UTF-8 code points) in Text. Please note that
partial character extents are not used when calling the LCL interface routine.
</p>
<p>
The return value contains a non-zero value on successful completion of the
method, or 0 when number of characters cannot be determined.
</p>
<p>
Use TextWidth to get width in pixels for a given string value.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.TextFitInfo.Result">
<short>Number of code points allowed in the specified maximum width.</short>
</element>
<element name="TCanvas.TextFitInfo.Text">
<short>Text examined in the method.</short>
</element>
<element name="TCanvas.TextFitInfo.MaxWidth">
<short>Maximum width allowed for the character values.</short>
</element>
<element name="TCanvas.HandleAllocated">
<short>Checks whether the Handle has been allocated for the canvas.</short>
<descr>
<p>
The return value is <b>True</b> when Handle contains a non-zero value. <b>0
(zero)</b> indicates that a Handle has not been assigned or is invalid.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.HandleAllocated.Result">
<short><b>True</b> when Handle has been assigned.</short>
</element>
<element name="TCanvas.GetUpdatedHandle">
<short>
Checks the required canvas states and gets the updated Handle for the canvas.
</short>
<descr>
<p>
Includes the value <var>csHandleValid</var> flag in <var>ReqState</var> and
calls <var>RequiredState</var> to check the canvas state flags. The return
value contains the updated value for the <var>Handle</var> property.
</p>
</descr>
<seealso>
<link id="TCanvas.RequiredState"/>
<link id="TCanvas.Handle"/>
<link id="TCanvasState"/>
</seealso>
</element>
<element name="TCanvas.GetUpdatedHandle.Result">
<short>New value for Handle after checking required canvas states.</short>
</element>
<element name="TCanvas.GetUpdatedHandle.ReqState">
<short>Canvas state flags required in the method.</short>
</element>
<element name="TCanvas.Pixels">
<short>
The color of the <var>Pixels</var> located at the specified position.
</short>
<descr>
<p>
<var>Pixels</var> is an indexed <var>TColor</var> color property which
provides access to the color for pixels on the drawing surface. The
<var>X</var> and <var>Y</var> arguments provide the horizontal and vertical
offsets on the drawing surface.
</p>
<p>
Read and write access to color values in the property requires a valid
<var>Handle</var> (or device context) for the canvas.
<var>RequiredState</var> is called, and allocates a Handle if one does not
already exist. An <var>EInvalidGraphicOperation</var> exception may be raised
in the method if a valid handle cannot be acquired.
</p>
<p>
Methods in the widgetset class are called to read or write the pixel color
using the Handle.
</p>
<p>
When setting a new color for a pixel, the <var>Changing</var> method is
called to signal the <var>OnChanging</var> event handler (when assigned).
After setting the new color, the <var>Changed</var> method is called to
signal the <var>OnChange</var> event handler (when assigned).
</p>
</descr>
<seealso>
<link id="TCanvas.Handle"/>
<link id="TCanvas.RequiredState"/>
<link id="TCanvas.Changing"/>
<link id="TCanvas.Changed"/>
<link id="TCanvas.OnChanging"/>
<link id="TCanvas.OnChange"/>
<link id="TColor"/>
<link id="EInvalidGraphicOperation"/>
</seealso>
</element>
<element name="TCanvas.Pixels.X">
<short>Horizontal offset on the drawing surface.</short>
</element>
<element name="TCanvas.Pixels.Y">
<short>Vertical offset on the drawing surface.</short>
</element>
<element name="TCanvas.Handle">
<short>Handle (or device context) for the drawing surface.</short>
<descr>
<p>
<var>Handle</var> is a <var>HDC</var> property that provides the device
context for the drawing surface. A valid Handle is required for nearly all
operations performed on the canvas.
</p>
<p>
Read access calls <var>RequiredState</var>, and allocates a Handle by calling
<var>CreateHandle</var> if one does not already exist. An
<var>EInvalidGraphicOperation</var> exception may be raised in the method if
a valid handle cannot be acquired.
</p>
<remark>
CreateHandle is an empty implementation in <var>TCanvas</var>, and is
overridden in descendent classes to return a handle for an image format or
output device. See <var>TBitmapCanvas</var>, <var>TControlCanvas</var>,
<var>TPrinterCanvas</var>, et. al.
</remark>
<p>
Setting a new value for Handle causes saved <var>Brush</var>, <var>Pen</var>,
and <var>Font</var> handles to be reset to their default values. The
<var>AntialiasingMode</var> for the canvas is also re-applied.
</p>
</descr>
<seealso>
<link id="TCanvas.RequiredState"/>
<link id="TCanvas.CreateHandle"/>
<link id="TCanvas.DeselectHandles"/>
<link id="TCanvas.Brush"/>
<link id="TCanvas.Pen"/>
<link id="TCanvas.Font"/>
<link id="EInvalidGraphicOperation"/>
</seealso>
</element>
<element name="TCanvas.TextStyle">
<short>Text style attributes used to draw text on the canvas.</short>
<descr>
<p>
<var>TextStyle</var> is a <var>TTextStyle</var> property with the attributes
applied to text drawn on the canvas. It is used in methods which output text
to the drawing surface, like <var>TextOut</var> and <var>TextRect</var>.
</p>
<p>
Default values in the property are assigned in the constructor.
</p>
<p>
See <link id="TTextStyle">TTextStyle</link> for details about members in the
record and their usage.
</p>
</descr>
<seealso>
<link id="TCanvas.TextOut"/>
<link id="TCanvas.TextRect"/>
<link id="TCanvas.Create"/>
<link id="TTextStyle"/>
</seealso>
</element>
<element name="TCanvas.AntialiasingMode">
<short>Controls anti-aliasing for canvas drawing operations.</short>
<descr>
<p>
<var>AntialiasingMode</var> is a <var>TAntialiasingMode</var> property which
indicates if smoothing is performed for drawing operations on the canvas. The
default value for the property is <var>amDontCare</var>, and indicates that
the default actions for the platform or operating system is used.
</p>
<p>
Setting a new value for the property causes the
<var>RealizeAntialiasing</var> method to be called to apply settings in
widgetset classes when a Handle has been allocated.
</p>
</descr>
<seealso>
<link id="TAntialiasingMode"/>
</seealso>
</element>
<element name="TCanvas.AutoRedraw">
<short>
<var>AutoRedraw</var> - if <b>True</b>, the Canvas is to be redrawn
automatically after each change or update.
</short>
<descr>
<p>
<var>AutoRedraw</var> is a <var>Boolean</var> property which indicates if the
window for the canvas is automatically redrawn when updated. When set to
<b>True</b>, the <var>DCRedraw</var> method in the widgetset class is called
to enable the feature for the <var>Handle</var> in the canvas.
</p>
<p>
The default value for the property is <b>False</b>.
</p>
</descr>
<seealso>
<link id="TCanvas.Handle"/>
<link id="TCanvas.RealizeAutoRedraw"/>
</seealso>
</element>
<element name="TCanvas.Brush">
<short>The <var>Brush</var> used to paint on the Canvas.</short>
<descr>
<p>
<var>Brush</var> is a <var>TBrush</var> property with the tool used to paint
the interior of filled shapes on the drawing surface. It has settings like
Color and Style, but may also use a Bitmap to fill the interior of shapes.
</p>
<p>
Setting a new value for the property causes the handle for the Brush to be
freed and re-created in the cached resources for the canvas.The values from
the new Brush are assigned to the member variable for the property. The
<var>BrushChanged</var> method is called to update the state flags for the
canvas.
</p>
<p>
Use <var>Pen</var> to configure the tool used to draw lines and curves on the
drawing surface.
</p>
<p>
Use <var>Font</var> to set the typeface, color, and style used to draw text
on the drawing surface.
</p>
</descr>
<seealso>
<link id="TCanvas.BrushChanging"/>
<link id="TCanvas.Pen"/>
<link id="TCanvas.Font"/>
<link id="TBrush"/>
</seealso>
</element>
<element name="TCanvas.CopyMode">
<short>
Indicates the raster operation used to combine pixel colors on the drawing
surface.
</short>
<descr>
<p>
<var>CopyMode</var> is a <var>TCopyMode</var> property which contains the
ternary raster operation used to combine pixel colors in region transfers.
CopyMode contains values from constants defined for the raster operations,
and includes:
</p>
<dl>
<dt>cmBlackness</dt>
<dd>
Fills the destination rectangle with the first color in the physical palette.
(Black for the default palette).
</dd>
<dt>cmDstInvert</dt>
<dd>Inverts colors in the destination rectangle.</dd>
<dt>cmMergeCopy</dt>
<dd>Merges colors from the source rectangle with the brush color.</dd>
<dt>cmMergePaint</dt>
<dd>
Merges inverted colors from the source rectangle with the colors in the
destination rectangle using an OR operation.
</dd>
<dt>cmNotSrcCopy</dt>
<dd>
Copies inverted colors from the source rectangle to the destination rectangle.
</dd>
<dt>cmNotSrcErase</dt>
<dd>
Combines the colors from the source and destination rectangles using an OR
operation, and inverts the result.
</dd>
<dt>cmPatCopy</dt>
<dd>Copies the brush into the destination rectangle.</dd>
<dt>cmPatInvert</dt>
<dd>
Combines the brush colors with the colors in the destination rectangle using
an XOR operation.
</dd>
<dt>cmPatPaint</dt>
<dd>
Combines the brush colors with the inverted colors from the source rectangle
using an OR operation, and combines the result with the colors in the
destination rectangle using an OR operation.
</dd>
<dt>cmSrcAnd</dt>
<dd>
Combines colors from the source and destination rectangles using an AND
operation.
</dd>
<dt>cmSrcCopy</dt>
<dd>Copies the source rectangle to the destination rectangle.</dd>
<dt>cmSrcErase</dt>
<dd>
Combines the inverted colors in the destination rectangle with the colors
from the source rectangle using an AND operation.
</dd>
<dt>cmSrcInvert</dt>
<dd>
Combines the colors in the source and destination rectangles using an XOR
operation.
</dd>
<dt>cmSrcPaint</dt>
<dd>
Combines the colors in the source and destination rectangles using an OR
operation.
</dd>
<dt>cmWhiteness</dt>
<dd>
Fills the destination rectangle using the second color in the physical
palette. (White for the default palette).
</dd>
</dl>
<p>
The default value for the property is <var>cmSrcCopy</var>.
</p>
<p>
Copy mode constants are not provided for the <b>CAPTUREBLT</b> and
<b>NOMIRRORBITMAP</b> values used in the Windows GDI API.
</p>
</descr>
<seealso/>
</element>
<element name="TCanvas.Font">
<short>Contains the Font used to render text on the drawing surface.</short>
<descr>
<p>
<var>Font</var> is a <var>TFont</var> property which contains the font used
to render text on the drawing surface. Values in Font determine the
formatting / layout applied in methods that render text, like
<var>TextOut</var> and <var>TextRect</var>. Setting a new value in Font calls
the Assign method in the class instance to store the new values. Property
values in Font can also be modified directly to use the desired values.
</p>
<p>
The values assigned in Font are used in methods that calculate the size for
text like <var>TextExtent</var>, <var>TextHeight</var>, <var>TextWidth</var>,
and <var>TextFitInfo</var>.
</p>
</descr>
<seealso>
<link id="TFont"/>
<link id="TCanvas.TextOut"/>
<link id="TCanvas.TextRect"/>
<link id="TCanvas.TextExtent"/>
<link id="TCanvas.TextHeight"/>
<link id="TCanvas.TextWidth"/>
<link id="TCanvas.TextFitInfo"/>
</seealso>
</element>
<element name="TCanvas.Height">
<short>Height of the canvas.</short>
<descr>
<p>
<var>Height</var> is a read-only <var>Integer</var> property which contains
the vertical dimension in <var>Pixels</var> for the canvas drawing area.
Height and <var>Width</var> determine the limits for the 2-dimensional
coordinate system used to access the Pixels on the drawing surface.
</p>
<p>
The value for the property is determined by calling the
<var>GetDeviceSize</var> routine using the <var>Handle</var> for the class
instance. The property value is <b>0</b> (<b>zero</b>) when Handle has not
been assigned (contains <b>0</b>).
</p>
<p>
Use Width to get the horizontal dimension for the drawing surface.
</p>
<remark>
Changing the value for Height or Width in TCanvas is not allowed. These
values are controlled using the capabilities in an image format or output
device, and are normally handled in classes which implement the canvas.
</remark>
</descr>
<seealso>
<link id="TCanvas.Handle"/>
<link id="TCanvas.Width"/>
<link id="TCanvas.Pixels"/>
<link id="#lcl.lclintf.GetDeviceSize">GetDeviceSize</link>
</seealso>
</element>
<element name="TCanvas.Pen">
<short>The <var>Pen</var> to be used for writing in this canvas.</short>
<descr>
<p>
<var>Pen</var> is a <var>TPen</var> property which contains settings used
when drawing lines, shapes, gradients, or generally changing pixels on the
canvas. The available properties include:
</p>
<ul>
<li>Color</li>
<li>Mode</li>
<li>Style</li>
<li>Width</li>
<li>Cosmetic</li>
<li>EndCap</li>
<li>JoinStyle</li>
</ul>
<p>
See <link id="TPen">TPen</link> for more information about properties,
methods, and events in the class. See <var>TFPCustomCanvas</var> for
information about the pen used in the FCL ancestor class.
</p>
<p>
The Pen property is used in the implementation of <var>TCanvas</var> drawing
methods, like: SetPixel, MoveTo, LineTo, Arc, ArcTo, Chord, GradientFill,
RadialPie, PolyBezier, Polygon, Polyline, Ellipse, Frame, Frame3D, Rectangle,
and RoundRect.
</p>
<p>
Use <var>Brush</var> to access settings used to fill enclosed areas on the
drawing surface.
</p>
</descr>
<seealso>
<link id="TCanvas.Brush"/>
<link id="TPen"/>
</seealso>
</element>
<element name="TCanvas.Region">
<short>The <var>Region</var> where the Canvas is located.</short>
<descr>
<p>
<var>Region</var> is a <var>TRegion</var> property which contains the
rectangular area(s) which define the bounding box for the drawing surface.
See <link id="TRegion">TRegion</link> for more information.
</p>
</descr>
<seealso>
<link id="TRegion"/>
</seealso>
</element>
<element name="TCanvas.Width">
<short>The <var>Width</var> of the Canvas.</short>
<descr>
<p>
<var>Width</var> is a read-only <var>Integer</var> property which contains
the horizontal dimension in <var>Pixels</var> for the canvas drawing area.
<var>Height</var> and <var>Width</var> determine the limits for the
2-dimensional coordinate system used to access the Pixels on the drawing
surface.
</p>
<p>
The value for the property is determined by calling the
<var>GetDeviceSize</var> routine using the <var>Handle</var> for the class
instance. The property value is <b>0</b> (<b>zero</b>) when Handle has not
been assigned (contains <b>0</b>).
</p>
<p>
Use Height to get the vertical dimension for the drawing surface.
</p>
<remark>
Changing the value for Height or Width in TCanvas is not allowed. These
values are controlled using the capabilities in an image format or output
device, and are normally handled in classes which implement the canvas.
</remark>
</descr>
<seealso>
<link id="TCanvas.Height"/>
</seealso>
</element>
<element name="TCanvas.OnChange">
<short>Event handler signalled after a change to the canvas.</short>
<descr>
<p>
<var>OnChange</var> is a <var>TNotifyEvent</var> property which contains an
event handler signalled after values in the canvas have been changed. The
event handler is signalled (when assigned) from the <var>Changed</var>
method, which is called when drawing operations are completed that alter the
<var>Pixels</var> on the canvas.
</p>
<p>
Assign an object procedure to the property which implements the signature in
TNotifyEvent to respond to the event notification.
</p>
<p>
Use <var>OnChanging</var> to respond to the notification that occurs prior to
a drawing operation.
</p>
</descr>
<seealso>
<link id="TCanvas.OnChanging"/>
</seealso>
</element>
<element name="TCanvas.OnChanging">
<short>Event handler signalled prior to changing the canvas.</short>
<descr>
<p>
<var>OnChanging</var> is a <var>TNotifyEvent</var> property which contains an
event handler signalled before changing values in the canvas. The event
handler is signalled (when assigned) from the <var>Changing</var> method,
which is called before starting a drawing operation that alters the
<var>Pixels</var> on the canvas.
</p>
<p>
Assign an object procedure to the property which implements the signature in
TNotifyEvent to respond to the event notification.
</p>
<p>
Use <var>OnChange</var> to respond to the notification that occurs when a
drawing operation is completed.
</p>
</descr>
<seealso>
<link id="TCanvas.OnChange"/>
</seealso>
</element>
<element name="TSharedImage">
<short>Specifies the base class for reference-counted shared images.</short>
<descr>
<p>
<var>TSharedImage</var> is a class which specifies the base class for
reference-counted shared images. TSharedImage defines properties and methods
which are used to track and maintain the reference count for a shared image.
</p>
<p>
Use the <var>RefCount</var> property to determine the number of references
acquired for a shared image.
</p>
<p>
Use <var>Reference</var> to increment the value in <var>RefCount</var>. Use
<var>Release</var> to decrement the value in <var>RefCount</var>.
</p>
<p>
TSharedImage includes abstract virtual methods, like
<var>HandleAllocated</var> and <var>FreeHandle</var>, which must be
implemented in a descendent class to perform actions needed for the handle in
a specific image type.
</p>
<p>
TSharedImage is the ancestor for the <var>TSharedRasterImage</var> class.
</p>
</descr>
<seealso>
<link id="TSharedRasterImage"/>
</seealso>
</element>
<!-- private -->
<element name="TSharedImage.FRefCount"/>
<element name="TSharedImage.Reference">
<short>Increases the reference count.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedImage.Release">
<short>Decreases the reference count.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedImage.FreeHandle">
<short>Release the handle for this image and free its resources.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedImage.RefCount">
<short>The number of references to this shared image.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedImage.HandleAllocated">
<short>Indicates whether a handle been allocated for the image.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedImage.HandleAllocated.Result">
<short><b>True</b> when Handle is a non-zero value.</short>
</element>
<element name="TBitmapHandleType">
<short>Represents handle types used for Bitmaps.</short>
<descr>
<p>
<var>TBitmapHandleType</var> is an enumerated type with values that represent
handle types available for Bitmaps. On Windows platforms, the handle may
represent two distinctly different storage mechanisms:
</p>
<ul>
<li>DIB (Device-Independent Bitmap)</li>
<li>DDB (Device-Dependent Bitmap)</li>
</ul>
<p>
The handle type indicates the storage format and content for the Bitmap.
</p>
<p>
TBitmapHandleType is the type used to implement the <var>HandleType</var>
property in <var>TCustomBitmap</var> and <var>TSharedCustomBitmap</var>.
</p>
</descr>
<seealso>
<link id="TSharedCustomBitmap.HandleType"/>
</seealso>
</element>
<element name="TBitmapHandleType.bmDIB">
<short>Device-Independent Bitmap handle.</short>
</element>
<element name="TBitmapHandleType.bmDDB">
<short>Device-Dependent Bitmap handle.</short>
</element>
<element name="TSharedRasterImage">
<short>
Implements a reference counted raster image that may be shared between
controls.
</short>
<descr/>
<seealso/>
</element>
<element name="TSharedRasterImage.FHandle"/>
<element name="TSharedRasterImage.FBitmapCanvas"/>
<element name="TSharedRasterImage.FSaveStream"/>
<element name="TSharedRasterImage.FreeHandle">
<short>Frees the handle for the shared image.</short>
<descr>
<p>
Implements the abstract virtual method defined in the <var>TSharedImage</var>
ancestor.
</p>
<p>
<var>FreeHandle</var> calls the <var>DeleteObject</var> routine to remove the
handle from the widgetset class. FreeHandle sets the value for the internal
handle to <b>0</b> (<b>zero</b>) to indicate that it is not assigned or no
longer valid.
</p>
<p>
No actions are performed in the method when the handle is already set to
<b>0</b>.
</p>
</descr>
<seealso>
<link id="TSharedImage.FreeHandle"/>
</seealso>
</element>
<element name="TSharedRasterImage.ReleaseHandle">
<short>
Returns the handle that has just been released.
</short>
<descr>
<p>
<var>ReleaseHandle</var> is a <var>TLCLHandle</var> function used to release a
reference for the handle in the class instance. The return value contains the
value for the handle on entry.
</p>
<p>
ReleaseHandle sets the handle value to 0 to indicate that it is no longer
used or invalid. It does not call DeleteObject to remove the handle in
widgetset classes.
</p>
<p>
ReleaseHandle is called from classes which support a specific image format,
like TCustomBitmap and TIcon, when their ReleaseHandle method is called to
free the handle for its shared image.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the return value.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TSharedRasterImage.ReleaseHandle.Result">
<short>
Value for the internal handle on entry to the method.
</short>
</element>
<element name="TSharedRasterImage.IsEmpty">
<short>Indicates if image content has been assigned for the shared image.
</short>
<descr>
<p>
<var>IsEmpty</var> is a <var>Boolean</var> function which indicates if image
content has been assigned for the shared image. The return value is
<b>True</b> when both the Handle and the <var>SaveStream</var> for the shared
image are unassigned. Specifically, Handle contains <b>0</b> and SaveStream
is <b>Nil</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TSharedRasterImage.IsEmpty.Result">
<short>
<b>True</b> if both the handle and the storage stream are not assigned.
</short>
</element>
<element name="TSharedRasterImage.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
Create is the constructor for the class instance, and calls the inherited
constructor on entry.
</p>
</descr>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TSharedRasterImage.CreateDefaultHandle">
<short>
Abstract virtual method not implemented in the class instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TSharedRasterImage.CreateDefaultHandle.AWidth">
<short/>
</element>
<element name="TSharedRasterImage.CreateDefaultHandle.AHeight">
<short/>
</element>
<element name="TSharedRasterImage.CreateDefaultHandle.ABPP">
<short/>
</element>
<element name="TSharedRasterImage.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
Frees resource allocated to <var>SaveStream</var> and <var>Handle</var>.
Calls the inherited destructor prior to exiting from the method.
</p>
</descr>
<seealso/>
</element>
<element name="TSharedRasterImage.HandleAllocated">
<short>
Determines whether the Handle for the class has been allocated.
</short>
<descr>
<p>
Implements the abstract virtual method defined in <var>TSharedImage</var>.
The return value is <b>True</b> when the internal handle contains a non-zero
value.
</p>
</descr>
<seealso>
<link id="TSharedImage.HandleAllocated"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TSharedRasterImage.HandleAllocated.Result">
<short>
<b>True</b> when the handle for the shared image has been allocated.
</short>
</element>
<element name="TSharedRasterImage.BitmapCanvas">
<short>Canvas used to render the bitmap for the raster image.</short>
<descr>
<p>
<var>BitmapCanvas</var> is a <var>TCanvas</var> property which represents the
drawing surface used to render the shared raster image.
</p>
<p>
<var>TSharedRasterImage</var> does not supply a value for the property. The
property value is supplied by an image class, like <var>TRasterImage</var>,
which uses the shared image paradigm. It normally contains an instance of
<var>TBitmapCanvas</var> (or a descendant).
</p>
</descr>
<seealso>
<link id="TRasterImage"/>
<link id="TCanvas"/>
</seealso>
</element>
<element name="TSharedRasterImage.SaveStream">
<short>
<var>SaveStream</var> - the memory stream to be used for saving this image.
</short>
<descr>
<p>
<var>SaveStream</var> is a <var>TMemoryStream</var> property which contains
the stream with the content for the shared image.
<var>TSharedRasterImage</var> does not manipulate values in SaveStream; it is
maintained by the image class that uses the shared image paradigm (like
<var>TRasterImage</var> and descendants).
</p>
</descr>
<seealso>
<link id="TRasterImage"/>
</seealso>
</element>
<element name="TSharedRasterImageClass">
<short>
<var>TSharedRasterImageClass</var> - class of <var>TSharedRasterImage</var>.
</short>
<descr>
<p>
Class reference used to create new instances of <var>TSharedRasterImage</var>.
</p>
</descr>
<seealso>
<link id="TSharedRasterImage"/>
</seealso>
</element>
<element name="TRasterImage">
<short>
<var>TRasterImage</var> - base class for a number of graphic controls,
including <var>TCustomBitmap</var> and <var>TCustomIcon</var>, which use a
raster of dots to display graphic information.
</short>
<descr>
<p>
<var>TRasterImage</var> is a <var>TGraphic</var> descendant which implements
the base class for images displayed as rasterized pixels on a canvas. It is
used as the ancestor class for <var>TCustomBitmap</var> (<var>TBitmap</var>)
and <var>TCustomIcon</var> (<var>TIcon</var>).
</p>
<p>
TRasterImage introduces the shared properties and methods common to the image
formats. It is also provides a shared, reference-counted image that reduces
resource requirements in graphical applications. Support is provided for
bitmaps which use <b>DIB</b> (Device-Independent Bitmap) or <b>DDB</b>
(Device-Dependent Bitmap) handles as well as common pixel storage formats
used in the RawImage data. Handles are provided for the Bitmap, Mask, and
Palette resources used in an image. TRasterImage also includes a Canvas used
to render the pixels for the image.
</p>
<p>
Many of the methods in TRasterImage are defined as abstract virtual methods,
and must be implemented in a descendent class to provide support for a
specific image format.
</p>
</descr>
<seealso/>
</element>
<!-- private -->
<element name="TRasterImage.FCanvas"/>
<element name="TRasterImage.FTransparentColor"/>
<element name="TRasterImage.FTransparentMode"/>
<element name="TRasterImage.FUpdateCount"/>
<element name="TRasterImage.FUpdateCanvasOnly"/>
<element name="TRasterImage.FMasked"/>
<element name="TRasterImage.CanvasChanging">
<short>Performs actions needed before the canvas is modified.</short>
<descr>
<p>
<var>CanvasChanging</var> is used to perform actions needed before the canvas
is modified. Ensures that the Handle for the raster image is not shared to
prevent changes in copies.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.CanvasChanging.Sender">
<short>Object for the notification message.</short>
</element>
<element name="TRasterImage.CreateCanvas">
<short>
Creates a Canvas for the raster image, and assigns its event handlers.
</short>
<descr>
<p>
<var>CreateCanvas</var> is a method used to created and configure the
<var>Canvas</var> for the raster image. No actions are performed in the
method when Canvas has already been assigned for the class instance.
</p>
<p>
A <var>TBitmapCanvas</var> instance is created and assigned to the member for
the Canvas property. The <var>CanvasChanging</var> and <var>Changed</var>
methods are assigned as the event handlers for the <var>OnChanging</var> and
<var>OnChange</var> properties (respectively) in the canvas.
</p>
<p>
CreateCanvas is called when the value for the Canvas property is read and the
member has not already been initialized.
</p>
</descr>
<seealso>
<link id="TRasterImage.Canvas"/>
<link id="TRasterImage.GetCanvas"/>
<link id="TRasterImage.OnChanging"/>
<link id="TRasterImage.OnChange"/>
<link id="TBitmapCanvas"/>
</seealso>
</element>
<element name="TRasterImage.CreateMask">
<short>
Ensures that a mask bitmap is allocated, configured, and applied when needed.
</short>
<descr>
<p>
No actions (other than clearing the MaskHandle) are performed in the method
when the raster image is empty, has no Color, uses fixed transparency, or has
no transparency color. CreateMask forces creation of temporary handles for
the image and the mask when needed. They are used to load the mask bitmap for
the image in BitmapHandle.
</p>
<p>
AColor contains the color that is used for transparent pixels in the mask for
the image. When AColor contains clDefault and TransparentMode is not tmFixed,
the color for the bottom left pixel in the mask bitmap is used as the
transparency color.
</p>
<p>
CreateMask is used in the implementation of the Mask method.
</p>
</descr>
<seealso>
<link id="TRasterImage.Mask"/>
<link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.TransparentMode"/>
<link id="TRasterImage.TransparentColor"/>
</seealso>
</element>
<element name="TRasterImage.CreateMask.AColor">
<short>Color used for transparent pixels in the image mask.</short>
</element>
<element name="TRasterImage.FreeCanvasContext">
<short>Frees the Device Context (DC) for the Canvas (when assigned).</short>
<descr>
<p>
<var>FreeCanvasContext</var> is a procedure used to free the device context
(DC) for the <var>Canvas</var> in the raster image. No actions are performed
in the method when Canvas has not been assigned (contains <b>Nil</b>).
</p>
<p>
FreeCanvasContext casts the Canvas to a <var>TBitmapCanvas</var> class
instance and calls its <var>FreeDC</var> method.
</p>
<p>
FreeCanvasContext is called when values in the <var>BitmapHandle</var>,
<var>MaskHandle</var>, or <var>Palette</var> properties are updated.
</p>
</descr>
<seealso>
<link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.MaskHandle"/>
<link id="TGraphic.Palette"/>
<link id="TRasterImage.Assign"/>
<link id="TRasterImage.Destroy"/>
<link id="TRasterImage.EndUpdate"/>
<link id="TRasterImage.SetHandle"/>
<link id="TRasterImage.ReleaseBitmapHandle"/>
<link id="TRasterImage.ReleaseMaskHandle"/>
<link id="TRasterImage.ReleasePalette"/>
<link id="TBitmapCanvas.FreeDC"/>
</seealso>
</element>
<element name="TRasterImage.GetCanvas">
<short>Gets the value for the Canvas property.</short>
<descr/>
<seealso>
<link id="TRasterImage.Canvas"/>
</seealso>
</element>
<element name="TRasterImage.GetCanvas.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetRawImage">
<short>Gets the value for the RawImage property.</short>
<descr>
<p>Calls <var>CreateCanvas</var> if a value has not been assigned for the
property.
</p>
</descr>
<seealso>
<link id="TRasterImage.RawImage"/>
<link id="TRasterImage.CreateCanvas"/>
</seealso>
</element>
<element name="TRasterImage.GetRawImage.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetScanline">
<short>Gets the value for the indexed ScanLine property.</short>
<descr/>
<seealso>
<link id="TRasterImage.Scanline"/>
</seealso>
</element>
<element name="TRasterImage.GetScanline.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetScanline.ARow">
<short>Ordinal position for the row of pixels in the raster image.</short>
</element>
<element name="TRasterImage.GetTransparentColor">
<short>Gets the value for the TransparentColor property.</short>
<descr/>
<seealso>
<link id="TRasterImage.TransparentColor"/>
</seealso>
</element>
<element name="TRasterImage.GetTransparentColor.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.SetTransparentColor">
<short>Sets the value for the TransparentColor property.</short>
<descr/>
<seealso>
<link id="TRasterImage.TransparentColor"/>
</seealso>
</element>
<element name="TRasterImage.SetTransparentColor.AValue">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.FSharedImage">
<short>Shared image with existing handles, canvases, etc.</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.CanShareImage">
<short>
<var>CanShareImage</var> - returns <b>True</b> if specified class of image
can be shared.
</short>
<descr>
<p>
<var>CanShareImage</var> is a <var>Boolean</var> function which indicate if
the raster image uses a shareable image class. The return value is
<b>True</b> when <var>AClass</var> matches the value returned from the
<var>GetSharedImageClass</var> method, and is not
<var>TSharedCustomBitmap</var>. Only images of the same class type can be
shared.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.CanShareImage.Result">
<short><b>True</b> is the image class is shareable.</short>
</element>
<element name="TRasterImage.CanShareImage.AClass">
<short>Class type requested in the method.</short>
</element>
<element name="TRasterImage.Changed">
<short>
<var>Changed</var> - method to call when properties have changed.
</short>
<descr>
<p>
<var>Changed</var> is an overridden method in <var>TRasterImage</var> used to
perform actions needed when property values in the class instance have been
updated. No actions are performed when <var>BeginUpdate</var> has been called
and a corresponding <var>EndUpdate</var> has not occurred.
</p>
<p>
Changed ensures that the <var>SaveStream</var> used in the shared image is
freed.
</p>
<p>
Changed calls the inherited method in <var>TGraphic</var> to set the value
for the <var>Modified</var> property and signal the <var>OnChange</var> event
handler (when assigned).
</p>
</descr>
<seealso>
<link id="TGraphic.Changed"/>
</seealso>
</element>
<element name="TRasterImage.Changed.Sender">
<short>Object for the change notification.</short>
</element>
<element name="TRasterImage.CreateDefaultBitmapHandle">
<short>Gets the default value for the Bitmap handle used in the class
instance.
</short>
<descr>
<p>Always returns 0 (for an unassigned handle) in TRasterImage.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.CreateDefaultBitmapHandle.Result">
<short/>
</element>
<element name="TRasterImage.CreateDefaultBitmapHandle.ADesc">
<short>Not used in the current implementation.</short>
</element>
<element name="TRasterImage.Draw">
<short>Renders the image to the specified canvas.</short>
<descr>
<p>
<var>Draw</var> is an overridden method used to render the raster image to
the specified canvas using the given rectangle. Draw implements the abstract
method defined in the ancestor class.
</p>
<p>
<var>DestCanvas</var> contains the canvas instance where the raster image is
rendered.
</p>
<p>
<var>DestRect</var> contains the canvas coordinates in DestCanvas where the
image is drawn.
</p>
<p>
No actions are performed in the method if the <var>Width</var> or the
<var>Height</var> for the image is <b>0</b> (<b>zero</b>).
</p>
<p>
Draw ensures that valid handles are available in <var>BitMapHandle</var> and
<var>MaskHandlle</var> (when <var>Masked</var> is <b>True</b>). No actions
are performed in the method when a valid BitmapHandle does not exist.
</p>
<p>
Draw uses the Device Contexts for Canvas and DestCanvas, and calls the
<var>StretchMaskBlt</var> routine in the LCL interface to render the image
using methods in the widgetset. The <var>Changing</var> method in DestCanvas
is called before drawing the image. The <var>Changed</var> method in
DestCanvas is called after the image is drawn.
</p>
</descr>
<seealso>
<link id="TGraphic.Draw"/>
</seealso>
</element>
<element name="TRasterImage.Draw.DestCanvas">
<short>Canvas where the image is rendered.</short>
</element>
<element name="TRasterImage.Draw.DestRect">
<short>Canvas coordinates where the image is drawn.</short>
</element>
<element name="TRasterImage.GetEmpty">
<short>Gets the value for the Empty property.</short>
<descr>
<p>
Implements the abstract virtual method defined in the ancestor. The property
value contains the result from the IsEmpty method in the shared raster image
for the class instance.
</p>
</descr>
<seealso>
<link id="TSharedRasterImage.IsEmpty"/>
<link id="TGraphic.Empty"/>
</seealso>
</element>
<element name="TRasterImage.GetEmpty.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetHandle">
<short>
Gets the value for the handle used in the image.
</short>
<descr>
<p>
Calls HandleNeeded to ensure that valid handle(s) exist for the image. The
return value is the handle in the shared raster image for the class instance.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the return value.
</version>
<seealso>
<link id="TRasterImage.HandleNeeded"/>
<link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.MaskHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TRasterImage.GetHandle.Result">
<short>
Handle for the raster image.
</short>
</element>
<element name="TRasterImage.GetBitmapHandle">
<short>Gets the value for the BitmapHandle property.</short>
<descr>
<p>
GetBitmapHandle is an abstract virtual method, and must be implemented in a
descendent class to return the handle for a specific image type or
implementation.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.GetBitmapHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetMasked">
<short>Gets the value for the Masked property.</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.GetMasked.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetMaskHandle">
<short>Gets the value for the MaskHandle property.</short>
<descr>
<p>
<var>GetMaskHandle</var> is an abstract virtual method, and must be
implemented in a descendent class to return the mask handle for a specific
image type or implementation.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.GetMaskHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetMimeType">
<short>Gets the value for the MimeType property.</short>
<descr/>
<seealso>
<link id="TGraphic.MimeType"/>
</seealso>
</element>
<element name="TRasterImage.GetMimeType.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetPixelFormat">
<short>
<var>GetPixelFormat</var> - returns the pixel format for the Image.
</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.GetPixelFormat.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetRawImagePtr">
<short>Gets a pointer with the raw image data.</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class to provide support for a specific image format.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.GetRawImagePtr.Result">
<short/>
</element>
<element name="TRasterImage.GetRawImageDescriptionPtr">
<short>Gets a pointer to the metadata for the raw image data.</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class to provide support for a specific image format.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.GetRawImageDescriptionPtr.Result">
<short/>
</element>
<element name="TRasterImage.GetTransparent">
<short>Gets the value for the Transparent property.</short>
<descr/>
<seealso>
<link id="TGraphic.Transparent"/>
<link id="TGraphic.GetTransparent"/>
<link id="TRasterImage.TransparentMode"/>
<link id="TRasterImage.TransparentColor"/>
</seealso>
</element>
<element name="TRasterImage.GetTransparent.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetSharedImageClass">
<short>Gets the class reference used to create new shared image instances in
the class.
</short>
<descr>
<p>
<var>GetSharedImageClass</var> is a class function used to get the class
reference needed to create a shared image in the class instance. The return
value the
<var>TSharedRasterImage</var> class type.
</p>
<p>
GetSharedImageClass is called from the implementation of the
<var>Assign</var> method when a reference to an existing image is stored in
the class instance. It is also used in <var>CanShareImage</var> to determine
is the request image type is the one used in the current class instance.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.GetSharedImageClass.Result">
<short>Class reference used to create the shared image in the class.</short>
</element>
<element name="TRasterImage.GetHeight">
<short>Gets the value for the Height property.</short>
<descr/>
<seealso>
<link id="TGraphic.Height"/>
<link id="TGraphic.GetHeight"/>
</seealso>
</element>
<element name="TRasterImage.GetHeight.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.GetWidth">
<short>Gets the value for the Width property.</short>
<descr/>
<seealso>
<link id="TGraphic.Width"/>
<link id="TGraphic.GetWidth"/>
</seealso>
</element>
<element name="TRasterImage.GetWidth.Result">
<short>Value for the property.</short>
</element>
<element name="TRasterImage.BitmapHandleNeeded">
<short>
Ensures that handles for the image and mask are valid for the raw image data.
</short>
<descr>
<p>
<var>BitmapHandleNeeded</var> is a procedure used to ensures that handles for
both the image and its mask are valid for the RawImage data. No actions are
performed in the method when <var>BitmapHandleAllocated</var> returns
<b>True</b>, or when RawImage data does not exist.
</p>
<p>
The <var>MaskHandle</var> is not created when:
</p>
<ul>
<li>A mask handle already exists.</li>
<li>The mask is created using the transparent color for the image.</li>
<li>Mask values do not exist in the raw image data.</li>
</ul>
<p>
BitmapHandleNeeded calls CreateCompatibleBitmaps to get the handles for the
bitmap and mask using a pointer to the raw image data, and creates a default
handle if CreateCompatibleBitmaps is unsuccessful. UpdateHandles is called to
assign the new handles to BitmapHandle and MaskHandle (when used).
</p>
<p>
BitmapHandleNeeded is called from the Draw method prior to performing
operations using the Canvas for the class instance. It is also used when the
Canvas creates a new DC (Device Context).
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.HandleNeeded">
<short>
Ensures that a handle for the image is allocated in widgetset classes.
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.MaskHandleNeeded">
<short>
Ensures that a handle is allocated for the image mask (when needed).
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.PaletteNeeded">
<short>Ensures that a handle for the palette is allocated.</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.InternalReleaseBitmapHandle">
<short>
<var>InternalReleaseBitmapHandle</var> - releases Bitmap Handle and returns
its value.
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.InternalReleaseBitmapHandle.Result">
<short/>
</element>
<element name="TRasterImage.InternalReleaseMaskHandle">
<short>
<var>InternalReleaseMaskHandle</var> - releases Mask Handle and returns its
value.
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.InternalReleaseMaskHandle.Result">
<short/>
</element>
<element name="TRasterImage.InternalReleasePalette">
<short>
<var>InternalReleasePalette</var> - releases Palette Handle and returns its
value.
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.InternalReleasePalette.Result">
<short/>
</element>
<element name="TRasterImage.SetBitmapHandle">
<short>Sets the value for the BitmapHandle property.</short>
<descr/>
<seealso>
<link id="TRasterImage.BitmapHandle"/>
</seealso>
</element>
<element name="TRasterImage.SetBitmapHandle.AValue">
<short>New value for the property.</short>
</element>
<element name="TRasterImage.SetMasked">
<short>Sets the value for the Masked property.</short>
<descr/>
<seealso>
<link id="TRasterImage.Masked"/>
</seealso>
</element>
<element name="TRasterImage.SetMasked.AValue">
<short>New value for the property.</short>
</element>
<element name="TRasterImage.SetMaskHandle">
<short>Sets the value for the MaskHandle property.</short>
<descr/>
<seealso>
<link id="TRasterImage.MaskHandle"/>
</seealso>
</element>
<element name="TRasterImage.SetMaskHandle.AValue">
<short>New value for the property.</short>
</element>
<element name="TRasterImage.SetTransparent">
<short>Sets the value for the Transparent property.</short>
<descr/>
<seealso>
<link id="TGraphic.Transparent"/>
</seealso>
</element>
<element name="TRasterImage.SetTransparent.AValue">
<short>New value for the property.</short>
</element>
<element name="TRasterImage.UnshareImage">
<short>Unshares a shared image when its handle is changed or the save stream
is freed.
</short>
<descr>
<p>
<var>UnshareImage</var> - stops an image from being shared: if
<var>CopyContent</var> is <b>True</b>, the Image gets copied. Declared as an
abstract virtual method. Must be implemented in a descendent class.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.UnshareImage.CopyContent">
<short/>
</element>
<element name="TRasterImage.UpdateHandles">
<short>Updates image handles when the raw image data is loaded.
</short>
<descr>
<p>
<var>UpdateHandles</var> is called when handles are created for the raw image
in the class instance. Returns <b>True</b> when the Handle for the bitmap
image is changed in the method. Declared as an abstract virtual method. Must
be implemented in a descendent class.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.UpdateHandles.Result">
<short><b>True</b> when the handle has changed for the image.</short>
</element>
<element name="TRasterImage.UpdateHandles.ABitmap">
<short>Handle for the Bitmap.</short>
</element>
<element name="TRasterImage.UpdateHandles.AMask">
<short>Handle for the Mask.</short>
</element>
<element name="TRasterImage.SaveStreamNeeded">
<short>Ensures that the save stream for the shared image is allocated.</short>
<descr>
<p>
<var>SaveStreamNeeded</var> is a procedure used to ensure that the internal
save stream for the shared image is allocated.
</p>
<p>
Raises an <var>EInvalidGraphicOperation</var> exception if
<var>BeginUpdate</var> (without a matching <var>EndUpdate</var>) is active in
the class instance.
</p>
<p>
No actions a performed in the method when a <var>TMemoryStream</var> has
already been assigned as the save stream for the internal
<var>TSharedRasterImage</var> instance.
</p>
<p>
SaveStreamNeeded is called from methods like <var>SaveToStream</var> and
<var>WriteData</var>, and occurs before operations which read or write to the
save stream.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.FreeSaveStream">
<short>Frees the save stream assigned to the internal shared image.</short>
<descr>
<p>
<var>FreeSaveStream</var> is a procedure used to free the <var>TStream</var>
instance assigned as the SaveStream in the shared image. No actions are
performed in the method when the SaveStream has not been assigned in the
shared image.
</p>
<p>
FreeSaveStream calls <var>UnshareImage</var> to discard and recreate the
shared image class instance in the class. The TStream instance in the shared
image is freed prior to exiting from the method.
</p>
<p>
FreeSaveStream is used in the implementation of methods like:
<var>Assign</var>, <var>Clear</var>, <var>EndUpdate</var>, and
<var>Changed</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.ReadData">
<short>Reads image data during component streaming.</short>
<descr>
<p>
<var>ReadData</var> is a procedure used to read binary data for the graphic
from the specified stream. It is used by the
<var>TFiler</var> instance which loads data during component streaming. It is
overridden in TRasterImage to provide support for TRasterImageClass and
descendants when loading raw image data.
</p>
<p>
Versions of Lazarus prior to 0.9.26 did not maintain a relationship between
graphics formats and image class types. ReadData checks the LongInt value at
the beginning of the stream to determine the version number for the streaming
format. When a newer version is used, the signature for the image format is
read from the Stream. If the image class used is not derived from the
TRasterImageClass type, additional conversion is needed to load the raw image
data and assign the values to the class instance.
</p>
<p>
ReadData calls <var>LoadFromStream</var> to complete the operation.
</p>
</descr>
<seealso>
<link id="TGraphic.ReadData"/>
</seealso>
</element>
<element name="TRasterImage.ReadData.Stream">
<short>Stream with the raw image data read in the method.</short>
</element>
<element name="TRasterImage.ReadStream">
<short>
<var>ReadStream</var> - loads image data into the raw image.
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class.
This method should not call <var>Changed()</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.ReadStream.AStream">
<short>Stream with the image data.</short>
</element>
<element name="TRasterImage.ReadStream.ASize">
<short>Number of bytes read from the stream.</short>
</element>
<element name="TRasterImage.SetSize">
<short>
<var>SetSize</var> - specifies height and width of Image.
</short>
<descr>
<p>
<var>SetSize</var> is used to set the <var>Height</var> and
<var>Width</var> for the image to the specified values.
</p>
<p>
SetSize is an abstract virtual method in <var>TRasterImage</var>, and must be
implemented in a descendent class to perform actions needed to resize the raw
image data for a specific image format.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.SetSize.AWidth">
<short>New width for the image.</short>
</element>
<element name="TRasterImage.SetSize.AHeight">
<short>New height for the image.</short>
</element>
<element name="TRasterImage.SetHandle">
<short>
Sets the handle used for the image.
</short>
<descr>
<p>
<var>SetHandle</var> stores the specified <var>TLCLHandle</var> value as the
handle used for the image. The handle is actually the one used by the internal
<var>TSharedRasterImage</var> instance for the class. No actions are
performed in the method when the value in AHandle is the same as the handle
in the shared image instance.
</p>
<p>
SetHandle frees the device context for the bitmap <var>Canvas</var>, unshares
the shared image, and discards its image data. The handle in AValue is
assigned to the internal shared image. When no other active update processes
are pending, the <var>Changed</var> method is called.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the AValue parameter.
</version>
<seealso>
<link id="TRasterImage.Changed"/>
<link id="TRasterImage.Canvas"/>
<link id="TRasterImage.BeginUpdate"/>
<link id="TRasterImage.EndUpdate"/>
<link id="TRasterImage.SetHandles"/>
<link id="TSharedImage.Reference"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TRasterImage.SetHandle.AValue">
<short>New value for the Handle.</short>
</element>
<element name="TRasterImage.SetHeight">
<short>Sets the value for the Height property.</short>
<descr>
<p>
Calls <var>SetSize</var> using the existing value for the <var>Width</var>
property and the value for the <var>AHeight</var> parameter.
</p>
</descr>
<seealso>
<link id="TRasterImage.SetSize"/>
<link id="TGraphic.Height"/>
</seealso>
</element>
<element name="TRasterImage.SetHeight.AHeight">
<short>New value for the property.</short>
</element>
<element name="TRasterImage.SetWidth">
<short>Sets the value for the Width property.</short>
<descr>
<p>
Calls <var>SetSize</var> using the existing value for the <var>Height</var>
property and the value for the <var>AWidth</var> parameter.
</p>
</descr>
<seealso>
<link id="TRasterImage.SetSize"/>
<link id="TGraphic.Width"/>
</seealso>
</element>
<element name="TRasterImage.SetWidth.AWidth">
<short>New value for the property.</short>
</element>
<element name="TRasterImage.SetTransparentMode">
<short>Sets the value for the TransparentMode property.</short>
<descr>
<p>
No actions are performed in the method when AValue is the same as the
existing value for the property.
</p>
<p>
When <var>AValue</var> contains <var>tmAuto</var>, the <var>clDefault</var>
constant is used as the value for the property. Otherwise, the
<var>RequestTransparentColor</var> method is called to get the color stored
in the bottom-left pixel in the raw image data.
</p>
</descr>
<seealso>
<link id="TRasterImage.TransparentMode"/>
<link id="TRasterImage.RequestTransparentColor"/>
<link id="TTransparentMode"/>
<link id="clDefault"/>
</seealso>
</element>
<element name="TRasterImage.SetTransparentMode.AValue">
<short>New value for the property.</short>
</element>
<element name="TRasterImage.SetPixelFormat">
<short>Sets the value for the PixelFormat property.</short>
<descr>
<p>
Defined as an abstract virtual method. Must be implemented in a descendent
class to use the storage format supported for a specific image format.
</p>
</descr>
<seealso>
<link id="TRasterImage.PixelFormat"/>
</seealso>
</element>
<element name="TRasterImage.SetPixelFormat.AValue">
<short>New value for the property.</short>
</element>
<element name="TRasterImage.WriteData">
<short>Writes raw image data to the specified stream.</short>
<descr>
<p>
<var>WriteData</var> is a method used to write raw image data to the stream
specified in <var>Stream</var>. WriteData is used by the <var>TFiler</var>
instance during LCL component streaming.
</p>
<p>
WriteData ensures that an internal save stream is available for the shared
image in the class instance. An <var>FPImageException</var> is raised when a
valid stream could not be created for the image data.
</p>
<p>
WriteData is an overridden method with support for writing a header with the
size for the raw image data. WriteData re-implements the method, and does not
call the inherited method - but does call <var>SaveToStream</var> to
complete the operation (just like the ancestor).
</p>
</descr>
<errors>
Raises an FPImageException with the message in
<var>rsErrorWhileSavingBitmap</var> when a stream could not be created for
the shared image data.
</errors>
<seealso>
<link id="TGraphic.WriteData"/>
<link id="TRasterImage.ReadData"/>
<link id="TRasterImage.WriteStream"/>
<link id="TGraphic.ReadData"/>
<link id="#rtl.classes.TFiler">TFiler</link>
</seealso>
</element>
<element name="TRasterImage.WriteData.Stream">
<short>Stream instance where image data is written in the method.</short>
</element>
<element name="TRasterImage.WriteStream">
<short>Writes the image content to the specified stream instance.</short>
<descr>
<p>
<var>WriteStream</var> is an abstract virtual method, and must be implemented
in a descendant class to write data for a specific image format.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.WriteStream.AStream">
<short>Stream where image data is written in the method.</short>
</element>
<element name="TRasterImage.RequestTransparentColor">
<short>
Gets the color used to represent transparent pixels in the image.
</short>
<descr>
<p>
<var>RequestTransparentColor</var> is a <var>TColor</var> function used to
resolve the color value for transparent pixels in the image. It is used to
translate the value clDefault in the TransparentColor property to an actual
color value.
</p>
<p>
When TransparentColor is set to clDefault, the return value for the method is
used as the color for transparent pixels. The return value is the pixel color
stored at the bottom-left corner of the image (x = 0, y = Height-1).
</p>
<p>
If TransparentColor contains a different TColor value, it is used in its
unmodified form.
</p>
<p>
When <var>Empty</var> returns <b>True</b>, raw image data is not available and
the return value is set to <var>clNone</var>.
</p>
<p>
RequestTransparentColor is also called when the value in TransparentMode is
changed to tmAuto. If TransparentMode is set to tmFixed, the TransparentColor
is used as specified.
</p>
</descr>
<seealso>
<link id="TRasterImage.TransparentColor"/>
<link id="TRasterImage.TransparentMode"/>
<link id="TGraphic.Empty"/>
<link id="TTransparentMode"/>
</seealso>
</element>
<element name="TRasterImage.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance, and
calls the inherited constructor on entry. Create ensures that the internal
shared image instance is created and referenced for the implementation.
</p>
<p>
Create sets the default value for the <var>TransparentColor</var> property to
<var>clDefault</var>. This is done for Delphi compatibility where clDefault
indicates that the bottom left pixel in the image is used as the transparent
color.
</p>
</descr>
<seealso>
<link id="TRasterImageClass"/>
<link id="TRasterImage.TransparentColor"/>
<link id="TGraphic.Create"/>
</seealso>
</element>
<element name="TRasterImage.Destroy">
<short>
<var>Destroy</var> is the destructor for <var>TRasterImage</var>: frees the
canvas, and releases image then calls inherited
<var>Destroy</var>.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TPersistent.Destroy">TPersistent.Destroy</link>
</seealso>
</element>
<element name="TRasterImage.Assign">
<short>
<var>Assign</var> - copies details from Source according to data type.
</short>
<descr>
<p>
<var>Assign</var> is a procedure used to copy values from the specified
<var>TPersistent</var> object into the current class instance. Assign is
overridden to handle using a <var>TRasterImage</var> or
<var>TFPCustomImage</var> instance in the
<var>Source</var> parameter.
</p>
<p>
No actions are performed in the method when Source is the same class instance
as the current class instance (Self).
</p>
<p>
When Source is a TRasterImage instance, the following actions are performed:
</p>
<ul>
<li>Clears an allocated mask handle by calling UpdateHandles.</li>
<li>
Sets TransparentMode, TransparentColor, and Masked to the values in Source.
</li>
<li>Frees an existing Canvas context when shared images are not the same.</li>
<li>
Makes a copy of the shared image in Source when they are of the same image
class.
</li>
<li>
Creates a new shared image and copies its raw image data when they are NOT of
the same image class.
</li>
<li>Copies an allocated mask handle from Source.</li>
<li>
Calls Changed to update Modified and signal the OnChange event handler (when
assigned).
</li>
</ul>
<p>
When Source is a TFPCustomImage instance, the following actions are performed:
</p>
<ul>
<li>Copies the raw image data from Source using its bitmap and mask
handles.</li>
<li>
Calls UpdateHandles to reflect the new handles in the current class instance.
</li>
<li>
Calls Changed to update Modified and signal the OnChange event handler (when
assigned).
</li>
</ul>
<p>
For other TPersistent descendants, the inherited method is called using
Source as an argument.
</p>
</descr>
<seealso>
<link id="TGraphic.Assign"/>
</seealso>
</element>
<element name="TRasterImage.Assign.Source">
<short>Persistent object with values copied in the method.</short>
</element>
<element name="TRasterImage.Clear">
<short>Removes raw image data and frees the internal save stream.</short>
<descr>
<p>
<var>Clear</var> is an overridden method used to remove raw image data and
free the internal save stream in the class instance. No actions are performed
in the method when <var>Empty</var> returns
<b>True</b>.
</p>
<p>
Clears set the values in <var>Height</var> and <var>Width</var> to <b>0</b>
(<b>zero</b>) to reflect the new size for the image. Clear calls the
<var>Changed</var> method when a <var>BeginUpdate</var> process is not active.
</p>
</descr>
<seealso>
<link id="TRasterImage.Changed"/>
<link id="TRasterImage.BeginUpdate"/>
<link id="TRasterImage.EndUpdate"/>
<link id="TGraphic.Empty"/>
<link id="TGraphic.Clear"/>
</seealso>
</element>
<element name="TRasterImage.BeginUpdate">
<short>
<var>BeginUpdate</var> - start the update process.
</short>
<descr>
<p>
<var>BeginUpdate</var> is a method used to initiate an update to the image.
</p>
<p>
BeginUpdate uses the value in an internal member to track the number of
active updates for the image. When the counter has a non-zero value,
BeginUpdate has already been called and <var>EndUpdate</var> has not yet been
executed. If the value in the counter is <b>0</b>, the shared image is
released and the value in <var>ACanvasOnly</var> is stored in the class
instance.
</p>
<p>
BeginUpdate can raise an <var>EInvalidGraphicOperation</var> exception if a
pending update was for a canvas only and a subsequent update requests a full
update. The default value for ACanvasOnly is <b>False</b> (full update).
</p>
<p>
BeginUpdate increments the value in the internal counter prior to exiting
from the method.
</p>
</descr>
<errors>
Raises an EInvalidGraphicOperation exception with the message in
<var>rsRasterImageUpdateAll</var> if a pending update was for a canvas only
and a subsequent update requests a full update.
</errors>
</element>
<element name="TRasterImage.BeginUpdate.ACanvasOnly">
<short>
<b>True</b> when only the Canvas is updating; <b>False</b> when image data is
loading.
</short>
</element>
<element name="TRasterImage.EndUpdate">
<short>
<var>EndUpdate</var> - finishes the update process.
</short>
<descr>
<p>
<var>EndUpdate</var> finishes an update process.
</p>
<p>
EndUpdate maintains the value in the internal counter used to track active
update processes started by calling <var>BeginUpdate</var>. It decrements the
counter when it has a non-zero value, and exits immediately.
</p>
<p>
An <var>EInvalidGraphicOperation</var> exception is raised if the counter is
already at <b>0</b> (<b>zero</b>) when EndUpdate is called.
</p>
<p>
When a full update was requested (loading image data), the device context for
the <var>Canvas</var> and an allocated <var>BitmapHandle</var> are freed.
</p>
<p>
<var>AStreamIsValid</var> indicates if the save stream for the shared image
is valid. When set to <b>False</b>, the save stream is freed. Any operation
that modifies the save stream for the shared image should be performed within
bracketed BeginUpdate / EndUpdate calls.
</p>
<p>
EndUpdate calls <var>Changed</var> to set the value in <var>Modified</var>
and to signal the <var>OnChange</var> event handler (when assigned).
</p>
</descr>
<errors>
Raises an EInvalidGraphicOperation exception with the message in
rsRasterImageEndUpdate if the counter is already at <b>0</b> (<b>zero</b>)
when EndUpdate is called.
</errors>
</element>
<element name="TRasterImage.EndUpdate.AStreamIsValid">
<short>Indicates if the save stream for a shared image is valid.</short>
</element>
<element name="TRasterImage.FreeImage">
<short>Frees the image by resetting its handle.</short>
<descr>
<p>
Calls SetHandle to set the bitmap handle to <b>0</b> (<b>zero</b>).
Generally, FreeImage is overridden and used in the destructor for descendent
classes.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.BitmapHandleAllocated">
<short>
<var>BitmapHandleAllocated</var> - returns <b>True</b> if a handle has been
allocated for the Bitmap.
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class to provide support for a specific image format.
</p>
</descr>
<seealso>
<link id="TRasterImage.MaskHandleAllocated"/>
</seealso>
</element>
<element name="TRasterImage.BitmapHandleAllocated.Result">
<short>
<b>True</b> when a handle has been allocated for bitmap data in the image.
</short>
</element>
<element name="TRasterImage.MaskHandleAllocated">
<short>
<var>MaskHandleAllocated</var> - returns <b>True</b> if a handle has been
allocated for the Mask.
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class to provide support for a specific image format.
</p>
</descr>
<seealso>
<link id="TRasterImage.BitmapHandleAllocated"/>
</seealso>
</element>
<element name="TRasterImage.MaskHandleAllocated.Result">
<short>
<b>True</b> when a handle has been allocated for mask data in the image.
</short>
</element>
<element name="TRasterImage.PaletteAllocated">
<short>
<var>PaletteAllocated</var> - returns <b>True</b> if a Palette has been
allocated.
</short>
<descr>
<p>
Declared as an abstract virtual method. Must be implemented in a descendent
class to provide support for a specific image format.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.PaletteAllocated.Result">
<short>
<b>True</b> when a handle has been allocated for the palette in the image.
</short>
</element>
<element name="TRasterImage.LoadFromBitmapHandles">
<short>
Loads the image data from the specified Bitmap and Mask handles.
</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.LoadFromBitmapHandles.ABitmap">
<short>Bitmap handle for the image.</short>
</element>
<element name="TRasterImage.LoadFromBitmapHandles.AMask">
<short>Mask handle for the image.</short>
</element>
<element name="TRasterImage.LoadFromBitmapHandles.ARect">
<short>Pointer to the source rectangle for the image data.</short>
</element>
<element name="TRasterImage.LoadFromDevice">
<short>Loads image data from the specified device context.</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.LoadFromDevice.DC">
<short>Device context used for the operation.</short>
</element>
<element name="TRasterImage.LoadFromStream">
<short>
<var>LoadFromStream</var> - loads data for the image from a specified data
stream, optionally supplying its size.
</short>
<descr>
<p>
<var>LoadFromStream</var> is an overloaded method in <var>TRasterImage</var>
used to load image data from the <var>TStream</var> instance specified in
<var>AStream</var>.
</p>
<p>
One of the overloaded variants provides an <var>ASize</var> argument which
contains the number of bytes to read from the stream. When the ASize argument
is omitted, the remaining content in the stream is read starting at the
current position in the stream.
</p>
<p>
LoadFromStream calls <var>BeginUpdate</var> to increment the internal update
counter in the class instance. <var>EndUpdate</var> is called when the stream
has been processed in the method.
</p>
<p>
LoadFromStream discards an existing shared image and its save stream, and
clears existing handles and raw image data in the class instance. No
additional actions are performed in the method when ASize is <b>0</b>
(<b>zero</b>).
</p>
<p>
LoadFromStream re-creates the save stream for the shared image and copies the
content in AStream to the save stream. The <var>ReadStream</var> method is
called to load the image data for the class instance.
</p>
</descr>
<seealso>
<link id="TRasterImage.BeginUpdate"/>
<link id="TRasterImage.EndUpdate"/>
<link id="TRasterImage.Clear"/>
<link id="TRasterImage.ReadStream"/>
</seealso>
</element>
<element name="TRasterImage.LoadFromStream.AStream">
<short>Stream with the image data loaded in the method.</short>
</element>
<element name="TRasterImage.LoadFromStream.ASize">
<short>Number of byte to read from the stream.</short>
</element>
<element name="TRasterImage.LoadFromMimeStream">
<short>Loads image data from a stream for the specified MIME type.</short>
<descr>
<p>
<var>LoadFromMimeStream</var> is an overridden method in
<var>TRasterImage</var>.
</p>
<p>
LoadFromMimeStream examines the <var>ClassType</var> for the image to
determine if it is handled in the overridden method. <var>TBitmap</var>,
<var>TPixmap</var>, and <var>TCustomIcon</var> descendants are handled in the
method.
</p>
<p>
LoadFromMimeStream compares the value in <var>AMimeType</var> to the
<var>PredefinedClipboardMimeTypes</var> values defined in LCL. If AMimeType
matches one of the values defined for TPixmap or TBitmap, then the
<var>LoadFromStream</var> method is called to load image data from
<var>AStream</var>.
</p>
<p>
Other ClassType or MIME type values cause the inherited
<var>LoadFromMimeStream</var> method to be called.
</p>
<p>
LoadFromMimeStream is used in the implementation of the
<var>AssignGraphic</var> method in <var>TClipboard</var>.
</p>
</descr>
<seealso>
<link id="TGraphic.LoadFromMimeStream"/>
<link id="#lcl.clipbrd.TClipboard">TClipboard</link>
</seealso>
</element>
<element name="TRasterImage.LoadFromMimeStream.AStream">
<short>Stream with the image data loaded in the method.</short>
<short/>
</element>
<element name="TRasterImage.LoadFromMimeStream.AMimeType">
<short>MIME type for the image data in the stream.</short>
</element>
<element name="TRasterImage.LoadFromRawImage">
<short>Loads image data from the specified TRawImage instance.</short>
<descr>
<p>
<var>LoadFromRawImage</var> is a procedure used to load raw image data in
<var>AImage</var> into the class instance.
</p>
<p>
LoadFromRawImage calls <var>BeginUpdate</var> to increment the update process
count, and calls <var>EndUpdate</var> when the image data has been loaded in
the method.
</p>
<p>
LoadFromRawImage calls <var>Clear</var> to free the internal save stream for
the class instance, and calls <var>SetSize</var> to reflect an empty image.
No additional actions are performed in the method If AImage contains an empty
image.
</p>
<p>
The Image Descriptor in AImage is assigned to the internal
<var>TRawImage</var> instance to capture the image metadata.
</p>
<p>
<var>ADataOwner</var> indicates if the internal TRawImage instance is the
owner for the image data in AImage. When set to <b>True</b>, values in AImage
data are assigned directly to the pointer to the internal raw image data.
Values include the size and content for the image data, the image mask, and
the palette. When set to <b>False</b>, storage for values is allocated using
<var>GetMem</var> and copied from AImage using the <var>Move</var> routine.
</p>
</descr>
<seealso>
<link id="#lazutils.graphtype.TRawImage">TRawImage</link>
</seealso>
</element>
<element name="TRasterImage.LoadFromRawImage.AImage">
<short>Raw image instance loaded in the method.</short>
</element>
<element name="TRasterImage.LoadFromRawImage.ADataOwner">
<short><b>True</b> if the image owns the raw image data.</short>
</element>
<element name="TRasterImage.LoadFromIntfImage">
<short>Loads the image from a TLazIntfImage instance.
</short>
<descr>Calls the CreateBitmaps method to create the image and mask handles
used to access the image data.
Calls SetHandles to apply the image and mask handles to the class instance.
</descr>
<seealso/>
</element>
<element name="TRasterImage.LoadFromIntfImage.IntfImage">
<short>TLazIntfImage instance with image data loaded in the method.</short>
</element>
<element name="TRasterImage.SaveToStream">
<short>Saves image data to the specified stream.</short>
<descr>
<p>
<var>SaveToStream</var> is an overridden method used to write image data to
the stream specified in <var>AStream</var>.
</p>
<p>
SaveToStream calls <var>SaveStreamNeeded</var> to ensure that an internal
save stream exists in the class instance. An
<var>EInvalidGraphicOperation</var> exception is raised in SaveStreamNeeded
when the active update count for the count is not 0 (zero). An
<var>FPImageException</var> is raised when a TMemoryStream instance could not
be created and initialized in SaveStreamNeeded.
</p>
<p>
SaveToStream resets the internal save to stream to its origin, and resizes
AStream to include sufficient storage for the values in the internal save
stream. The <var>CopyFrom</var> method in AStream is called to store the
content for the internal shared image. An <var>FPImageException</var> is
raised when the number of bytes written in the CopyFrom method does not match
the size for the internal save stream.
</p>
</descr>
<errors>
<p>
Raises an FPImageException exception when the number of bytes written to the
stream does not match the size for the raw image data.
</p>
<p>
An Exception may be raised in SaveToStream (called in the method).
</p>
</errors>
<seealso>
<link id="TGraphic.SaveToStream"/>
</seealso>
</element>
<element name="TRasterImage.SaveToStream.AStream">
<short>Stream where the image data is stored.</short>
</element>
<element name="TRasterImage.GetSupportedSourceMimeTypes">
<short>
Gets a list of supported MIME types for image data used in the image type.
</short>
<descr>
<p>
<var>GetSupportedSourceMimeTypes</var> is an overridden method in
<var>TRasterImage</var> used to get the list of MIME types used for image
data in the image type. <var>List</var> is the <var>TStrings</var> instance
where the list of supported MIME types is stored.
</p>
<p>
GetSupportedSourceMimeTypes uses the value in <var>ClassType</var> to
determine if the request is handled in the overridden method. It is handled
in the method when ClassType is <var>TBitmap</var>, <var>TPixmap</var>, or
<var>TCustomIcon</var>. Values in the <var>PredefinedClipboardMimeTypes</var>
constant for the TBitmap and TPixmap types are added to List. When ClassType
contains any other type, the inherited method is called.
</p>
<p>
GetSupportedSourceMimeTypes is called from the <var>AssignPicture</var>
method in <var>TClipboard</var>.
</p>
</descr>
<seealso>
<link id="TGraphic.GetSupportedSourceMimeTypes"/>
<link id="#lcl.clipbrd.TClipboard">TClipboard</link>
</seealso>
</element>
<element name="TRasterImage.GetSupportedSourceMimeTypes.List">
<short/>
</element>
<element name="TRasterImage.GetSize">
<short>
Gets the image Width and Height from the metadata for the raw image.
</short>
<descr>
<p>
Calls <var>GetRawImageDescriptionPtr</var> to get a pointer to the image
descriptor in the raw image data. When the image descriptor is <b>Nil</b>, or
its Format contains <var>ricfNone</var>, the values in <var>AWidth</var> and
<var>AHeight</var> are both set to <b>0</b> (<b>zero</b>). Otherwise, the
<var>Width</var> and <var>Height</var> values in the image descriptor are
used as the output parameter values.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.GetSize.AWidth">
<short>Width for the raw image data.</short>
</element>
<element name="TRasterImage.GetSize.AHeight">
<short>Height for the raw image data.</short>
</element>
<element name="TRasterImage.Mask">
<short>Applies the color used for transparent pixels to the image.</short>
<descr>
<p>
Calls CreateMask to create and apply the mask handle required for the fixed
color transparency.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.Mask.ATransparentColor">
<short>Color used to represent transparent pixels in the mask.</short>
</element>
<element name="TRasterImage.SetHandles">
<short>
Sets handles for the bitmap and the mask to the specified values.
</short>
<descr>
<p>
<var>SetHandles</var> is a procedure used to set the handles for the bitmap
and the mask to the values specified in <var>ABitmap</var> and
<var>AMask</var>. SetHandles is an abstract virtual method in
<var>TRasterImage</var>, and must be implemented in a descendent class to
store handle values in the shared image used in the image format.
</p>
</descr>
<seealso>
<link id="TCustomBitmap.SetHandles"/>
<link id="TCustomIcon.SetHandles"/>
</seealso>
</element>
<element name="TRasterImage.SetHandles.ABitmap">
<short>Handle to use for the Bitmap.</short>
</element>
<element name="TRasterImage.SetHandles.AMask">
<short>Handle to use for the Mask.</short>
</element>
<element name="TRasterImage.ReleaseBitmapHandle">
<short>Releases the handle in the shared image without freeing the
BitmapHandle.
</short>
<descr>
<p>
<var>ReleaseBitmapHandle</var> is a HBITMAP function used to release the
handle for the shared image without freeing it. The return value contains the
handle value in the shared image when its <var>ReleaseHandle</var> method is
called.
</p>
<p>
Calls <var>BitmapHandleNeeded</var> to ensure that the
<var>BitmapHandle</var> and optional <var>MaskHandle</var> are valid for the
image type. Calls <var>FreeCanvasContext</var> to free the canvas context
when the handle been has changed.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.ReleaseBitmapHandle.Result">
<short>
Value for the handle in the shared image before it is released.
</short>
</element>
<element name="TRasterImage.ReleaseMaskHandle">
<short>
<var>ReleaseMaskHandle</var> - releases the Handle used for the Mask.
</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.ReleaseMaskHandle.Result">
<short/>
</element>
<element name="TRasterImage.ReleasePalette">
<short>
<var>ReleasePalette</var> - release the Handle used for the Palette.
</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.ReleasePalette.Result">
<short/>
</element>
<element name="TRasterImage.CreateIntfImage">
<short>
<var>CreateIntfImage</var> - creates an image on the Interface.
</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.CreateIntfImage.Result">
<short/>
</element>
<element name="TRasterImage.Canvas">
<short>
The <var>Canvas</var> where the raster image is rendered.
</short>
<descr>
<p>
<var>Canvas</var> is a read-only <var>TCanvas</var> property which contains
the drawing surface where the data for the image is rendered.
</p>
<p>
Reading the value for the property causes the <var>CreateCanvas</var> method
to be called when the member has not been initialized. In TRasterImage, the
Canvas member is an instance of <var>TBitmapCanvas</var>. It is configured to
use the <var>CanvasChanging</var> and <var>Changed</var> methods for the
<var>OnChanging</var> and <var>OnChange</var> event handlers in the canvas.
</p>
<p>
The device context (or handle) for the Canvas is modified when the
<var>BitmapHandle</var> or <var>MaskHandle</var> are assigned or released for
the class instance.
</p>
<p>
Canvas is used in the <var>Draw</var> method to get the rendered content
transferred to a destination canvas. Canvas is also used to auto-detect the
<var>TransparentColor</var> using the <var>Pixels</var> in the image.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.HandleAllocated">
<short>
Indicates if a handle has been assigned for the shared image in the class.
</short>
<descr>
<p>
<var>HandleAllocated</var> is a <var>Boolean</var> function which indicates
if a valid handle has been assigned for the internal
<var>TSharedRasterImage</var> instance in the class. The return value is
<b>True</b> when the handle in the shared image contains a <b>non-zero</b>
value.
</p>
<p>
Use <var>BitmapHandleAllocated</var> to determine if a <var>HBITMAP</var>
handle has been assigned for the Bitmap in the class instance.
</p>
<p>
Use <var>MaskHandleAllocated</var> to determine if a <var>HBITMAP</var>
handle has been assigned for the Mask in the class instance.
</p>
</descr>
<seealso/>
</element>
<element name="TRasterImage.HandleAllocated.Result">
<short>
<b>True</b> when a handle has been assigned for the shared image.
</short>
</element>
<element name="TRasterImage.BitmapHandle">
<short>
<var>BitmapHandle</var> - the Handle that has been allocated for the Bitmap.
</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.Masked">
<short>
<var>Masked</var> - returns <b>True</b> if a Mask is being applied.
</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.MaskHandle">
<short>The handle allocated for the Bitmap Mask.</short>
<descr/>
<seealso/>
</element>
<element name="TRasterImage.PixelFormat">
<short>Storage format for the Pixels in the Image.</short>
<descr>
<p>
<var>PixelFormat</var> is a <var>TPixelFormat</var> property which contains
the storage format for colors in <var>Pixels</var>. The default value is
<var>pfDevice</var> and indicates that the source device determines the pixel
format. The value is PixelFormat indicates the number of bits required to
store the color, and the maximum number of colors allowed for a given pixel.
</p>
<p>
See <link id="TPixelFormat">TPixelFormat</link> for the values in the
enumeration and their meanings.
</p>
<p>
PixelFormat is essentially a read-only property in <var>TRasterImage</var>.
The read and write access specifiers are declared as abstract virtual
methods, and are overridden in descendent classes to access raw image data
for a specific image format.
</p>
</descr>
<seealso>
<link id="TPixelFormat"/>
</seealso>
</element>
<element name="TRasterImage.RawImage">
<short>Provides access to the raw image data for the image type.</short>
<descr>
<p>
<var>RawImage</var> is a read-only TRawImage property which provides access
to the raw image data for the image type. It provides access to the raw image
descriptor and pointers to the bytes values used in the Bitmap, Mask, and
Palette for the image. The value for the property is captured using the
pointer returned by the GetRawImagePtr method.
</p>
<p>
Always use <var>BeginUpdate</var> and <var>EndUpate</var> to surround any
action which modifies member values in RawImage.
</p>
</descr>
<seealso>
<link id="TRasterImage.BeginUpdate"/>
<link id="TRasterImage.EndUpdate"/>
<link id="#lazutils.graphtype.TRawImage">TRawImage</link>
</seealso>
</element>
<element name="TRasterImage.ScanLine">
<short>Provides indexed access to a scan line in the raw image data.</short>
<descr>
<p>
<var>ScanLine</var> is a read-only indexed <var>Pointer</var> property which
provides access to a scan line in the raster image. The scan line consists of
a single row of pixels in the raw image data.
</p>
<p>
<var>Row</var> contains the row number read from the <var>TRawImage</var>
instance provided by the <var>GetRawImage</var> method. Row number values
start at <b>0</b> (<b>zero</b>).
</p>
<p>
The return value is a Pointer to the byte values for the requested row in the
raw image data.
</p>
<p>
Reading a value in ScanLines should always be performed inside a
<b>BeginUpdate ... EndUpdate</b> sequence.
</p>
<p>
ScanLine is a platform-specific property, and may not be implemented for all
platforms or widgetsets.
</p>
</descr>
<seealso/>
<notes>
<note>Which platforms support it? Win, Qt, macOS Carbon...</note>
</notes>
</element>
<element name="TRasterImage.ScanLine.Row">
<short>Row number for the pixels accessed in the raw image data.</short>
</element>
<element name="TRasterImage.TransparentColor">
<short>Color used for transparent pixels in the image.</short>
<descr>
<p>
<var>TransparentColor</var> is a <var>TColor</var> property which indicates
the color used for transparent pixels in the raw image data. The default
value for the property is <var>clDefault</var>.
</p>
<p>
TransparentColor is used along with <var>TransparentMode</var> to determine
whether a fixed color is used for transparency, or if the transparent color
is read from a specified pixel in the raw image data.
</p>
<p>
When TransparentColor contains <var>clDefault</var>, the
<var>RequestTransparentColor</var> method is used to get the transparency
color value from the bottom-left pixel in the raw image data.
</p>
<p>
When setting a new value for the property, the TransparentMode property is
updated as well. When clDefault is assigned to the property, TransparentMode
is set to <var>tmAuto</var>. For other color values, TransparentMode is set
to <var>tmFixed</var>.
</p>
<p>
<var>MaskHandleAllocated</var> is called to determine if a HBITMAP handle has
been allocated for the MaskHandle property. When <b>True</b>, the
<var>MaskHandle</var> is reset to 0 to indicate the handle is no longer in
use or is invalid.
</p>
<p>
The <var>Changed</var> method is called to update the internal save stream
for the image (when needed), set <var>Modified</var> to <b>True</b>, and
signal the <var>OnChange</var> event handler (when assigned).
</p>
</descr>
<seealso>
<link id="TRasterImage.RequestTransparentColor"/>
<link id="TRasterImage.TransparentMode"/>
<link id="TRasterImage.MaskHandleAllocated"/>
<link id="TRasterImage.MaskHandle"/>
<link id="TRasterImage.Changed"/>
<link id="TGraphic.Transparent"/>
<link id="TGraphic.Modified"/>
<link id="TGraphic.OnChange"/>
<link id="TColor"/>
</seealso>
</element>
<element name="TRasterImage.TransparentMode">
<short>Determines how transparent pixels are represented in the image.</short>
<descr>
<p>
<var>TransparentMode</var> is a <var>TTransparentMode</var> property which
indicates how transparent pixels in the image are represented in the raw
image data. It is related to the <var>TransparentColor</var> and
<var>Masked</var> properties. TransparentMode can contain one of the
following values from the TTransparentMode enumeration:
</p>
<dl>
<dt>tmAuto</dt>
<dd>
Transparent pixels are represented using the color stored at the bottom-left
pixel in the raw image data. TransparentColor is set to clDefault.
</dd>
<dt>tmFixed</dt>
<dd>
Transparent pixels are represented using the color stored in the
TransparentColor property. Masked is set to <b>True</b>.
</dd>
</dl>
<p>
The default value for the property is <var>tmAuto</var>.
</p>
</descr>
<seealso>
<link id="TRasterImage.TransparentColor"/>
<link id="TRasterImage.Masked"/>
<link id="TTransparentMode"/>
</seealso>
</element>
<element name="TSharedCustomBitmap">
<short>Implements the base class for a reference-counted shared image.</short>
<descr>
<p>
<var>TSharedCustomBitmap</var> is a <var>TSharedRasterImage</var> descendant
which implements the base class for reference-counted shared images, like:
TSharedBitmap, TSharedPixmap, TSharedJPEGImage, TSharedPortableNetworkGraphic
and TSharedPortableAnyMapGraphic.
</p>
</descr>
<seealso>
<link id="TSharedRasterImage"/>
<link id="TSharedBitmap"/>
<link id="TSharedPixmap"/>
<link id="TSharedJPEGImage"/>
<link id="TSharedPortableNetworkGraphic"/>
<link id="TSharedPortableAnyMapGraphic"/>
</seealso>
</element>
<!-- private -->
<element name="TSharedCustomBitmap.FHandleType"/>
<element name="TSharedCustomBitmap.FImage"/>
<element name="TSharedCustomBitmap.FHasMask"/>
<element name="TSharedCustomBitmap.FPalette"/>
<element name="TSharedCustomBitmap.GetHeight">
<short>Gets the value for the Height property.</short>
<descr/>
<seealso>
<link id="TSharedCustomBitmap.Height"/>
</seealso>
</element>
<element name="TSharedCustomBitmap.GetHeight.Result">
<short>Value for the property.</short>
</element>
<element name="TSharedCustomBitmap.GetWidth">
<short>Gets the value for the Width property.</short>
<descr/>
<seealso>
<link id="TSharedCustomBitmap.Width"/>
</seealso>
</element>
<element name="TSharedCustomBitmap.GetWidth.Result">
<short>Value for the property.</short>
</element>
<element name="TSharedCustomBitmap.FreeHandle">
<short>Frees the Handle and the Palette for the shared Bitmap.</short>
<descr>
<p>
<var>FreeHandle</var> frees Palette then calls inherited
<var>FreeHandle</var>.
</p>
</descr>
<seealso>
<link id="TSharedImage.FreeHandle"/>
</seealso>
</element>
<element name="TSharedCustomBitmap.FreePalette">
<short>Frees the handle in the Palette property.</short>
<descr>
<p>
<var>FreePalette</var> is a procedure used to free the handle assigned for
the <var>Palette</var>. FreePalette calls <var>DeleteObject</var> to release
the Palette handle. The Palette handle is set to <b>0</b> (<b>zero</b>) to
indicate that the handle is no longer in use or is invalid.
</p>
<p>
No actions are performed in the method when the Palette handle contains
<b>0</b> on entry.
</p>
</descr>
<seealso/>
</element>
<element name="TSharedCustomBitmap.FreeImage">
<short>
Frees raw image data for the shared bitmap and resets its image descriptor.
</short>
<descr>
<p>
Calls the <var>FreeData</var> method in the internal <var>TRawImage</var>
member to free the raw image data. Sets the <var>Format</var> in its
<var>Description</var> property to <var>ricfNone</var>.
</p>
<p>
FreeImage is called from the destructor when the class instance is destroyed.
</p>
</descr>
<seealso>
<link id="TSharedCustomBitmap.Destroy"/>
<link id="#lazutils.graphtype.TRawImage">TRawImage</link>
</seealso>
</element>
<element name="TSharedCustomBitmap.ReleasePalette">
<short>Returns the Handle of the released Palette.
</short>
<descr>
<p>
<var>ReleasePalette</var> is a <var>HPALETTE</var> function used to release
the internal palette handle for the shared bitmap. The return value contains
the existing palette handle on entry.
</p>
<p>
Sets the value in the internal palette handle to <b>0</b> to indicate that
the palette handle is no longer in use or is invalid.
</p>
<p>
Use FreePalette to remove the palette handle in widgetset classes.
</p>
</descr>
<seealso/>
</element>
<element name="TSharedCustomBitmap.ReleasePalette.Result">
<short/>
</element>
<element name="TSharedCustomBitmap.GetPixelFormat">
<short>Gets the value for the PixelFormat property.</short>
<descr/>
<seealso>
<link id="TSharedCustomBitmap.PixelFormat"/>
</seealso>
</element>
<element name="TSharedCustomBitmap.GetPixelFormat.Result">
<short>Value for the property.</short>
</element>
<element name="TSharedCustomBitmap.IsEmpty">
<short>Determines if the shared bitmap is empty.</short>
<descr>
<p>
<var>IsEmpty</var> is an overridden method in <var>TSharedCustomBitmap</var>
used to determine if the shared bitmap is empty. IsEmpty calls the inherited
method on entry, and adds additional logic needed for the Bitmap image format.
</p>
<p>
The return value is <b>True</b> when all of the following conditions are met:
</p>
<ul>
<li>The Handle is unassigned (contains 0).</li>
<li>The internal save stream for the image is not assigned.</li>
<li>The color format used for raw image data is ricfNone.</li>
<li>The raw image data is Nil.</li>
<li>The raw image data size is 0.</li>
</ul>
</descr>
<seealso>
<link id="TSharedRasterImage.IsEmpty"/>
</seealso>
</element>
<element name="TSharedCustomBitmap.IsEmpty.Result">
<short><b>True</b> if the shared bitmap is empty.</short>
</element>
<element name="TSharedCustomBitmap.Create">
<short>
<var>Create</var> - constructor for
<var>TSharedCustomBitmap</var>: calls inherited
<var>Create</var> and initializes the image.
</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance, and
calls the inherited constructor on entry. Create calls the <var>Init</var>
method in the internal <var>TRawImage</var> instance uses in the class. This
ensures that resources are allocated and initialized, and properties are set
to their default values in both the raw image and its image descriptor.
</p>
</descr>
<seealso>
<link id="#lazutils.graphtype.TRawImage.Init">TRawImage.Init</link>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TSharedCustomBitmap.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for
<var>TSharedCustomBitmap</var>.
</p>
<p>
Destroy frees the internal save stream for the class instance. It also calls
FreeHandle and FreeImage to free the handle and the raw image data for the
shared bitmap. Calls the inherited destructor prior to exiting from the
method.
</p>
</descr>
<seealso>
<link id="TSharedCustomBitmap.FreeHandle"/>
<link id="TSharedCustomBitmap.FreeImage"/>
<link id="TSharedRasterImage.Destroy"/>
</seealso>
</element>
<element name="TSharedCustomBitmap.HandleAllocated">
<short>
Determines if the handle for the shared bitmap has been allocated.
</short>
<descr>
<p>
<var>HandleAllocated</var> is an overridden method used to determine if the
handle for the shared bitmap has been allocated. HandleAllocated implements
the abstract virtual method defined in <var>TSharedImage</var>.
</p>
<p>
The return value is <b>True</b> when the internal handle has a non-zero value.
</p>
</descr>
<seealso>
<link id="TSharedImage.HandleAllocated"/>
</seealso>
</element>
<element name="TSharedCustomBitmap.HandleAllocated.Result">
<short><b>True</b> when the handle has a non-zero value.</short>
</element>
<element name="TSharedCustomBitmap.ImageAllocated">
<short>
<var>ImageAllocated</var> - returns <b>True</b> if an image has been
allocated.
</short>
<descr>
<p>
<var>ImageAllocated</var> is a <var>Boolean</var> function which indicates if
the internal raw image data has been allocated for the shared bitmap. The
return value is <b>True</b> when the <var>TRawImage</var> instance in the
class has a value other than <var>ricfNone</var> in its image descriptor.
</p>
</descr>
<seealso>
<link id="#lazutils.graphtype.TRawImage.Description">TRawImage.Description</link>
<link id="#lazutils.graphtype.TRawImageDescription.Format">TRawImageDescription.Format</link>
<link id="#lazutils.graphtype.TRawImageColorFormat">TRawImageColorFormat</link>
</seealso>
</element>
<element name="TSharedCustomBitmap.ImageAllocated.Result">
<short>
<b>True</b> when the color format for the raw image data has been assigned.
</short>
</element>
<element name="TSharedCustomBitmap.HandleType">
<short>
<var>HandleType</var> the type of Bitmap Handle that has been allocated.
</short>
<descr>
<p>
HandleType is a TBitmapHandleType property which indicates the Bitmap handle
type and the storage mechanism used for the Bitmap header and data.
</p>
<remark>
Use of HandleType is not implemented in the current LCL version.
</remark>
</descr>
<seealso/>
</element>
<element name="TSharedCustomBitmap.Height">
<short>The <var>Height</var> of the Bitmap.</short>
<descr>
<p>
<var>Height</var> is a read-only <var>Integer</var> property which contains
the height for the shared bitmap image as indicated in the descriptor for the
raw image data. The property value is always <b>0</b> (<b>zero</b>) when the
descriptor for the internal raw image data contains <var>ricfNone</var>.
</p>
</descr>
<seealso>
<link id="#lazutils.graphtype.TRawImage.Description">TRawImage.Description</link>
<link id="#lazutils.graphtype.TRawImageDescription.Format">TRawImageDescription.Format</link>
<link id="#lazutils.graphtype.TRawImageColorFormat">TRawImageColorFormat</link>
</seealso>
</element>
<element name="TSharedCustomBitmap.PixelFormat">
<short>Storage format for pixels in the raw image data.</short>
<descr>
<p>
<var>PixelFormat</var> is a read-only <var>TPixelFormat</var> property with
the storage format used for pixel data in the raw image. It also determines
the number of colors (or color depth) allowed in the raw image data.
</p>
<p>
See <var>TPixelFormat</var> for more information about the values and
meanings in the enumeration.
</p>
</descr>
<seealso>
<link id="TPixelFormat"/>
<link id="#lazutils.graphtype.TRawImageDescription.Depth">TRawImageDescription.Depth</link>
</seealso>
</element>
<element name="TSharedCustomBitmap.Width">
<short>The Width of the Bitmap.</short>
<descr>
<p>
<var>Width</var> is a read-only <var>Integer</var> property which contains
the width for the shared bitmap image as indicated in the descriptor for the
raw image data. The property value is always <b>0</b> (<b>zero</b>) when the
descriptor for the internal raw image data contains <var>ricfNone</var>.
</p>
</descr>
<seealso>
<link id="#lazutils.graphtype.TRawImage.Description">TRawImage.Description</link>
<link id="#lazutils.graphtype.TRawImageDescription.Format">TRawImageDescription.Format</link>
<link id="#lazutils.graphtype.TRawImageColorFormat">TRawImageColorFormat</link>
</seealso>
</element>
<element name="TCustomBitmap">
<short>
<var>TCustomBitmap</var> - the base class for <var>TBitmap</var>.
</short>
<descr>
<p>
<var>TCustomBitmap</var> is a <var>TRasterImage</var> descendant which
implements the base class for TBitmap. It contains image data using the
<b>.bmp (Windows bitmap)</b> or <b>.xpm (XPixMap)</b> formats. Image data can
be loaded from a file, stream, or resource. The loading routine automatically
recognizes the format, and can be used to load images from a Delphi form
streams (.dfm files).
</p>
<p>
When the handle is created, it is up to the widgetset interface (gtk, qt,
win32, etc.) to automatically convert it to the best internal format for the
platform. That is the reason the Handle is interface dependent. To access the
raw image data, see <var>TLazIntfImage</var> in <file>IntfGraphics.pas</file>.
</p>
<p>
Do not create instances of TCustomBitmap; use the TBitmap descendant.
</p>
</descr>
</element>
<!-- private -->
<element name="TCustomBitmap.FPixelFormat"/>
<element name="TCustomBitmap.FPixelFormatNeedsUpdate"/>
<element name="TCustomBitmap.FMaskHandle"/>
<element name="TCustomBitmap.GetHandleType">
<short>Gets the value for the HandleType property.</short>
<descr/>
<seealso>
<link id="TCustomBitmap.HandleType"/>
</seealso>
</element>
<element name="TCustomBitmap.GetHandleType.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomBitmap.GetMonochrome">
<short>Gets the value for the Monochrome property.</short>
<descr/>
<seealso>
<link id="TCustomBitmap.Monochrome"/>
</seealso>
</element>
<element name="TCustomBitmap.GetMonochrome.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomBitmap.SetBitmapHandle">
<short>Sets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TCustomBitmap.Handle"/>
</seealso>
</element>
<element name="TCustomBitmap.SetBitmapHandle.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomBitmap.SetHandleType">
<short>Sets the value for the HandleType property.</short>
<descr/>
<seealso>
<link id="TCustomBitmap.HandleType"/>
</seealso>
</element>
<element name="TCustomBitmap.SetHandleType.Value">
<short>New value for the property.</short>
</element>
<element name="TCustomBitmap.SetMonochrome">
<short>Sets the value for the Monochrome property.</short>
<descr/>
<seealso>
<link id="TCustomBitmap.Monochrome"/>
</seealso>
</element>
<element name="TCustomBitmap.SetMonochrome.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomBitmap.UpdatePixelFormat">
<short>Updates the value in PixelFormat from the shared Bitmap image.</short>
<descr>
<p>
Called when the value for <var>PixelFormat</var> is retrieved and the image
descriptor has not already been read for the shared image.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomBitmap.MaskHandleNeeded">
<short>
Ensures that a handle is allocated for the image mask (when needed).
</short>
<descr>
<p>
Implements the abstract virtual method defined in the ancestor class.
</p>
</descr>
<seealso>
<link id="TRasterImage.MaskHandleNeeded"/>
</seealso>
</element>
<element name="TCustomBitmap.PaletteNeeded">
<short>
Ensures that a handle is allocated for the Palette in the image.
</short>
<descr>
<p>
<var>PaletteNeeded</var> has an empty implementation in
<var>TCustomBitmap</var>.
</p>
</descr>
<seealso>
<link id="TRasterImage.PaletteNeeded"/>
</seealso>
</element>
<element name="TCustomBitmap.CanShareImage">
<short>Indicates if the image uses the specified shared image class.</short>
<descr>
<p>
<var>CanShareImage</var> is an overridden method which indicates if the image
uses the specified shared image class. The image can be shared only when it
uses the same shared image class type.
</p>
</descr>
<seealso>
<link id="TRasterImage.CanShareImage"/>
</seealso>
</element>
<element name="TCustomBitmap.CanShareImage.Result">
<short/>
</element>
<element name="TCustomBitmap.CanShareImage.AClass">
<short>Shared image class type compared in the method.</short>
</element>
<element name="TCustomBitmap.Changed">
<short>
Performs actions needed when the image data for the bitmap has been changed.
</short>
<descr>
<p>
<var>Changed</var> is an overridden method in <var>TCustomBitmap</var>.
Changed examines the value in <var>Sender</var> to determine the origin for
the change.
</p>
<p>
When Sender is the <var>Canvas</var> for the class instance, the image was
changed after an update to its <var>Canvas</var>. The raw image data in the
shared image is no longer valid, and it is freed. The inherited method is
called to free the save stream for the shared image, set the value in
<var>Modified</var>, and signal the <var>OnChange</var> event handler (when
assigned).
</p>
</descr>
<seealso>
<link id="TRasterImage.Changed"/>
</seealso>
</element>
<element name="TCustomBitmap.Changed.Sender">
<short>Object instance for the change notification.</short>
</element>
<element name="TCustomBitmap.CreateDefaultBitmapHandle">
<short>
Creates a handle for the bitmap using the bitmap handle type in the bitmap
image data.
</short>
<descr>
<p>
<var>CreateDefaultBitmapHandle</var> is an overridden method in
<var>TCustomBitmap</var> used to get the default bitmap handle needed to
represent the image. The device description information in <var>ADesc</var>
is used to determine the bit depth for the image data.
</p>
<p>
For <b>DDB</b> (Device-Dependent Bitmaps), the <var>CreateBitmap</var>
routine is called to get the handle used as the return value.
</p>
<p>
For <b>DIB</b> (Device-Independent Bitmaps), the <var>CreateDIBSection</var>
routine is called to get the handle. For platforms where CreateDIBSection is
not implemented, the CreateBitmap routine is used as the fallback.
</p>
<p>
CreateDefaultBitmapHandle is called from the <var>BitmapHandleNeeded</var>
method in the ancestor class.
</p>
</descr>
<seealso>
<link id="TRasterImage.CreateDefaultBitmapHandle"/>
</seealso>
</element>
<element name="TCustomBitmap.CreateDefaultBitmapHandle.Result">
<short>Default handle for the bitmap.</short>
</element>
<element name="TCustomBitmap.CreateDefaultBitmapHandle.ADesc">
<short>Device description information for the bitmap.</short>
</element>
<element name="TCustomBitmap.FreeMaskHandle">
<short>
<var>FreeMaskHandle</var> - method to release Mask handle.
</short>
<descr>
<p>
Frees the handle allocated for the image Mask in the <var>MaskHandle</var>
property. <var>FreeMaskHandle</var> sets the value in MaskHandle to <b>0</b>
(<b>zero</b>) to indicate that the handle is no longer need or is invalid. No
actions are performed in the method when MaskHandle is already set to
<b>0</b>.
</p>
<p>
FreeMaskHandle calls the <var>DeleteObject</var> routine to remove the handle
in the widgetset class.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomBitmap.GetBitmapHandle">
<short>Gets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TCustomBitmap.Handle"/>
<link id="TRasterImage.GetBitmapHandle"/>
</seealso>
</element>
<element name="TCustomBitmap.GetBitmapHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomBitmap.GetMaskHandle">
<short>Gets the value for the MaskHandle property.</short>
<descr/>
<seealso>
<link id="TRasterImage.MaskHandle"/>
<link id="TRasterImage.GetMaskHandle"/>
</seealso>
</element>
<element name="TCustomBitmap.GetMaskHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomBitmap.GetPalette">
<short>Gets the value for the Palette property.</short>
<descr/>
<seealso>
<link id="TGraphic.GetPalette"/>
<link id="TGraphic.Palette"/>
</seealso>
</element>
<element name="TCustomBitmap.GetPalette.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomBitmap.GetPixelFormat">
<short>Gets the value for the PixelFormat property.</short>
<descr/>
<seealso>
<link id="TRasterImage.PixelFormat"/>
<link id="TRasterImage.GetPixelFormat"/>
</seealso>
</element>
<element name="TCustomBitmap.GetPixelFormat.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomBitmap.GetRawImagePtr">
<short>Gets a pointer with the raw image data.</short>
<descr>
<p>
Calls RawImageNeeded to ensure that the image descriptor, save stream, and
handle are valid for the shared Bitmap image. Calls the CreateData method in
the raw image pointer (when needed) prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="TRasterImage.GetRawImagePtr"/>
</seealso>
</element>
<element name="TCustomBitmap.GetRawImagePtr.Result">
<short>Pointer to the TRawImage instance for the shared bitmap image.</short>
</element>
<element name="TCustomBitmap.GetRawImageDescriptionPtr">
<short>Gets a pointer to the image descriptor for the shared Bitmap image.
</short>
<descr>
<p>Calls <var>RawimageNeeded</var> to ensure that the image descriptor is
valid.
</p>
</descr>
<seealso>
<link id="TRasterImage.GetRawImageDescriptionPtr"/>
</seealso>
</element>
<element name="TCustomBitmap.GetRawImageDescriptionPtr.Result">
<short>
Pointer to the TRawImageDescription instance for the shared bitmap image.
</short>
</element>
<element name="TCustomBitmap.GetSharedImageClass">
<short>
Gets the class reference used to create new shared image instances in the
class.
</short>
<descr>
<p>
<var>GetSharedImageClass</var> is an overridden method in
<var>TCustomBitmap</var>. The return value is a
<var>TSharedRasterImageClass</var> class reference used to create a shared
image in the class instance. The return value is actually
<var>TSharedCustomBitmap</var> in the method implementation.
</p>
<p>
GetSharedImageClass is called from the Assign method when a reference to an
existing image is stored in the class instance. It is also used in
CanShareImage to determine is the request image type is the one used in the
current class instance.
</p>
</descr>
<seealso>
<link id="TRasterImage.GetSharedImageClass"/>
</seealso>
</element>
<element name="TCustomBitmap.GetSharedImageClass.Result">
<short>TSharedCustomBitmap class type for the shared image.</short>
</element>
<element name="TCustomBitmap.HandleNeeded">
<short>Ensures that the handle for the bitmap has been assigned.</short>
<descr>
<p>Calls <var>BitmapHandleNeeded</var> to create handles for both the image
and its mask (when needed).
</p>
</descr>
<seealso>
<link id="TRasterImage.BitmapHandleNeeded"/>
<link id="TRasterImage.HandleNeeded"/>
</seealso>
</element>
<element name="TCustomBitmap.InternalReleaseBitmapHandle">
<short/>
<descr/>
<seealso>
<link id="TSharedRasterImage.ReleaseHandle"/>
</seealso>
</element>
<element name="TCustomBitmap.InternalReleaseBitmapHandle.Result">
<short/>
</element>
<element name="TCustomBitmap.InternalReleaseMaskHandle">
<short/>
<descr/>
<seealso></seealso>
</element>
<element name="TCustomBitmap.InternalReleaseMaskHandle.Result">
<short/>
</element>
<element link="#lcl.graphics.TRasterImage.InternalReleasePalette" name="TCustomBitmap.InternalReleasePalette">
<short/>
<descr/>
<seealso>
<link id="TSharedCustomBitmap.ReleasePalette"/>
</seealso>
</element>
<element name="TCustomBitmap.InternalReleasePalette.Result">
<short/>
</element>
<element name="TCustomBitmap.RawImageNeeded">
<short>Ensures that the RawImage data is allocated prior to use.</short>
<descr>
<p>
Ensures that the <var>RawImage</var> property is allocated prior to accessing
values in the raw image data.
</p>
<p>
<var>ADescOnly</var> indicates whether the image descriptor or the
complete raw image data is required. When ADescOnly is <b>True</b>, only the
<var>TRawImageDescription</var> in the raw image is needed. When set to
<var>False</var>, all values in the <var>TRawImage</var> instance are
required.
</p>
<p>
RawImageNeeded is called from methods access the raw image data, and occurs
before the value in RawImage is accessed. For example:
</p>
<ul>
<li>SetSize</li>
<li>UpdatePixelFormat</li>
<li>GetMonochrome</li>
<li>UnshareImage</li>
<li>GetRawImagePtr</li>
<li>GetRawImageDescriptionPtr</li>
</ul>
</descr>
<seealso/>
</element>
<element name="TCustomBitmap.RawImageNeeded.ADescOnly">
<short>
<b>True</b> when only the image descriptor in the raw image data is needed.
</short>
</element>
<element name="TCustomBitmap.SetHandle">
<short>
Re-implements the method from the ancestor class.
</short>
<descr>
<p>
<var>SetHandle</var> is an overridden method in <var>TCustomBitmap</var>, and
re-implements the method from the <var>TRasterImage</var> ancestor class.
<var>AValue</var> contains the new handle instance assigned to the
<var>BitmapHandle</var> property.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Value parameter.
</version>
<seealso>
<link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.SetHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TCustomBitmap.SetHandle.Value">
<short>New value used as the handle for the bitmap.</short>
</element>
<element name="TCustomBitmap.SetPixelFormat">
<short>Sets the value for the PixelFormat property.</short>
<descr>
<p>
Implements the abstract virtual method defined in the <var>TRasterImage</var>
ancestor.
</p>
<p>
Frees the raw image data in the class instance. No actions are performed in
the method when the new property value is the same as the existing property
value.
</p>
</descr>
<seealso>
<link id="TRasterImage.PixelFormat"/>
<link id="TRasterImage.SetPixelFormat"/>
</seealso>
</element>
<element name="TCustomBitmap.SetPixelFormat.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomBitmap.UnshareImage">
<short>Frees the shared image in the bitmap, and creates a new one.</short>
<descr>
<p>
<var>UnshareImage</var> is an overridden method used to free the shared image
in the bitmap, and create a new one. UnshareImage implements the abstract
virtual method defined in the ancestor class.
</p>
<p>
UnshareImage calls <var>GetSharedImageClass</var> to get the class type used
for the shared image, and creates a new instance of the class. It is cast to
<var>TSharedCustomBitmap</var>, and its <var>Reference</var> method is called
to increment the reference count for the shared image.
</p>
<p>
<var>CopyContent</var> indicates whether the existing image data is copied
into the new shared image instance. When set to <b>True</b>, the content in
the existing shared image is copied and stored in the new shared image
instance. When set to <var>False</var>, only the image descriptor in the
shared image is copied. This gets the metadata for the image.
</p>
<p>
UnshareImage calls <var>FreeCanvasContext</var> to free the device context
for the Canvas used in the image.
</p>
</descr>
<seealso>
<link id="TRasterImage.UnshareImage"/>
</seealso>
</element>
<element name="TCustomBitmap.UnshareImage.CopyContent">
<short><b>True</b> copies the existing content in the shared image.</short>
</element>
<element name="TCustomBitmap.UpdateHandles">
<short>
Sets the handles for the image and mask in the shared Bitmap to the specified
values.
</short>
<descr>
<p>
<var>UpdateHandles</var> is an overridden <var>Boolean</var> function which
implements the abstract virtual method defined in <var>TRasterImage</var>.
UpdateHandles is used to set the handles for the shared bitmap image and its
mask to the values specified in <var>ABitmap</var> and <var>AMask</var>.
</p>
<p>
The return value is <b>True</b> when the values in ABitmap and AMask are
successfully applied in the class instance. The return value is <b>False</b>
when ABitmap and Mask have the same values as the existing handles in the
class instance, and the action is not needed.
</p>
<p>
The <var>FreeHandle</var> method in the internal shared image is called
before applying the value in ABitmap.
</p>
<p>
<var>FreeMaskHandle</var> is called to free the value in
<var>MaskHandle</var> before applying the value in AMask.
</p>
<p>
UpdateHandles is used in the implementation of the
<var>MaskHandleNeeded</var> and <var>SetHandles</var> methods.
</p>
</descr>
<seealso>
<link id="TRasterImage.UpdateHandles"/>
</seealso>
</element>
<element name="TCustomBitmap.UpdateHandles.Result">
<short><b>True</b> when the handle(s) are successfully applied.</short>
</element>
<element name="TCustomBitmap.UpdateHandles.ABitmap">
<short>Handle assigned for the bitmap and shared image.</short>
</element>
<element name="TCustomBitmap.UpdateHandles.AMask">
<short>Handle assigned to the mask in the image.</short>
</element>
<element name="TCustomBitmap.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance, and
calls the inherited constructor on entry. Create sets the default value for
the
<var>PixelFormat</var> property to
<var>pfDevice</var>.
</p>
</descr>
<seealso>
<link id="TRasterImage.PixelFormat"/>
<link id="TPixelFormat"/>
</seealso>
</element>
<element name="TCustomBitmap.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance.
Destroy calls <var>FreeMaskHandle</var> to free the handle in
<var>MaskHandle</var> (when assigned). Destroy calls the inherited destructor
prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="TCustomBitmap.FreeMaskHandle"/>
<link id="TRasterImage.MaskHandle"/>
<link id="TRasterImage.Destroy"/>
</seealso>
</element>
<element name="TCustomBitmap.Assign">
<short>
Copies values from the specified persistent object into the class instance.
</short>
<descr>
<p>
<var>Assign</var> is an overridden method in <var>TCustomBitmap</var> used to
copy property values from the persistent object in <var>Source</var> into the
current class instance. Assign calls the inherited method on entry using
Source as an argument.
</p>
<p>
When Source is a TCustomBitmap descendant, values in its
<var>PixelFormat</var> and <var>PixelFormatNeedsUpdate</var> members are
copied into the members in the class instance.
</p>
</descr>
</element>
<element name="TCustomBitmap.Assign.Source">
<short>Persistent object with values copied in the method.</short>
</element>
<element name="TCustomBitmap.Clear">
<short>Clears the content for the bitmap image.</short>
<descr>
<p>
<var>Clear</var> is an overridden method in <var>TCustomBitmap</var>. It
extends the method defined in <var>TRasterImage</var>. It sets the
<var>PixelFormat</var> property to its default value (<var>pfDevice</var>),
and calls the inherited method to free the internal save stream for the
shared image.
</p>
</descr>
<seealso>
<link id="TCustomBitmap.Changed"/>
<link id="TRasterImage.PixelFormat"/>
<link id="TRasterImage.Clear"/>
</seealso>
</element>
<element name="TCustomBitmap.FreeImage">
<short>Releases the resources for the image when it is discarded.</short>
<descr>
<p>
<var>FreeImage</var> is an overridden method used to free the bitmap image.
FreeImage calls the inherited method on entry to invalidate the handle used
for the shared image. This also causes the device context for the
<var>Canvas</var> to be freed and the shared image is release and freed.
</p>
<p>
FreeImage is called when a new value is assigned to the
<var>PixelFormat</var> property.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomBitmap.LazarusResourceTypeValid">
<short>Determines if the specified resource type is valid for the image
format.
</short>
<descr>
<p>
<var>LazarusResourceTypeValid</var> is a <var>Boolean</var> function used to
determine if the value in <var>ResourceType</var> is a valid resource type
for the image format.
</p>
<p>
LazarusResourceTypeValid is an overridden method in <var>TCustomBitmap</var>,
and re-implements the method defined in the ancestor class. The return value
is <b>True</b> when ResourceType contains one of the values:
</p>
<dl>
<dt>'BMP'</dt>
<dd>Bitmap resource type.</dd>
<dt>'BITMAP'</dt>
<dd>Bitmap resource type.</dd>
<dt>'XPM'</dt>
<dd>Pixmap resource type.</dd>
</dl>
<p>
Case is not significant for the value in ResourceType; it is converted to
uppercase prior to checking its value.
</p>
<p>
The return value is <b>False</b> if ResourceType contains any other value.
</p>
<p>
LazarusResourceTypeValid is used in the implementation of the
<var>LoadFromLazarusResource</var> method.
</p>
</descr>
<seealso>
<link id="TGraphic.LoadFromLazarusResource"/>
<link id="TPicture.LoadFromLazarusResource"/>
</seealso>
</element>
<element name="TCustomBitmap.LazarusResourceTypeValid.Result">
<short>
Returns <b>True</b> if the resource type is valid for the image format.
</short>
</element>
<element name="TCustomBitmap.LazarusResourceTypeValid.ResourceType">
<short>The resource type examined in the method.</short>
</element>
<element name="TCustomBitmap.BitmapHandleAllocated">
<short>
Returns <b>True</b> if a handle has been allocated for the Bitmap.
</short>
<descr>
<p>
<var>BitmapHandleAllocated</var> is an overridden <var>Boolean</var> function
used to determine if a handle has been allocated for the bitmap.
BitmapHandleAllocated implements the abstract virtual method defined in the
ancestor class.
</p>
<p>
The return value is <b>True</b> when the handle in the internal shared image
has a <b>non-zero</b> value.
</p>
<p>
BitmapHandleAllocated is used in the implementation of the
<var>MaskHandleNeeded</var> method.
</p>
</descr>
<seealso>
<link id="TRasterImage.BitmapHandleAllocated"/>
</seealso>
</element>
<element name="TCustomBitmap.BitmapHandleAllocated.Result">
<short/>
</element>
<element name="TCustomBitmap.MaskHandleAllocated">
<short>Determines if the mask handle has been allocated for the image.</short>
<descr>
<p>
<var>MaskHandleNeeded</var> is an overridden <var>Boolean</var> function in
<var>TCustomBitmap</var>, and is used to determine if <var>MaskHandle</var>
has been allocated for the image mask. It implements the abstract virtual
method defined in the ancestor class.
</p>
<p>
The return value is <b>True</b> when the <var>MaskHandle</var> property
contains a <b>non-zero</b> value.
</p>
<p>
MaskHandleAllocated is used in the implementation of methods like:
</p>
<ul>
<li>BitmapHandleNeeded</li>
<li>SetTransparentColor</li>
<li>SetBitmapHandle</li>
<li>CreateMask</li>
<li>Assign</li>
</ul>
</descr>
<seealso>
<link id="TRasterImage.MaskHandleAllocated"/>
<link id="TRasterImage.MaskHandle"/>
<link id="TRasterImage.Masked"/>
</seealso>
</element>
<element name="TCustomBitmap.MaskHandleAllocated.Result">
<short>
Returns <b>True</b> if a mask handle has been allocated for the image.
</short>
</element>
<element name="TCustomBitmap.PaletteAllocated">
<short>
Indicates whether a handle has been allocated for a palette in the image.
</short>
<descr>
<p>
<var>PaletteAllocated</var> is an overridden <var>Boolean</var> function in
<var>TCustomBitmap</var>, and indicates whether a handle has been allocated
for a palette in the image. PaletteAllocated implements the abstract virtual
method defined in the ancestor class.
</p>
<p>
The return value is <b>True</b> when palette handle in the internal shared
image contains a <b>non-zero</b> value.
</p>
</descr>
<seealso>
<link id="TRasterImage.PaletteAllocated"/>
</seealso>
</element>
<element name="TCustomBitmap.PaletteAllocated.Result">
<short>
Returns <b>True</b> if a palette handle has been allocated for the image.
</short>
</element>
<element name="TCustomBitmap.ReleaseHandle">
<short>Releases the bitmap handle for the shared image.</short>
<descr>
<p>
Calls <var>HandleNeeded</var> to ensure that the handles for the bitmap and
mask reflect the values for the raw image data. Calls the
<var>ReleaseHandle</var> method in the shared image to free the handle for
the bitmap.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomBitmap.ReleaseHandle.Result">
<short>Returns <b>True</b> when the handle is successfully released.</short>
</element>
<element name="TCustomBitmap.SetHandles">
<short>
Sets handles for the bitmap and the mask to the specified values.
</short>
<descr>
<p>
<var>SetHandles</var> is a procedure used to set the handles for the bitmap
and the mask to the values specified in <var>ABitmap</var> and
<var>AMask</var>. SetHandles ensures that the <var>Canvas</var> context,
shared image, and save stream are unshared and freed. SetHandles calls
<var>UpdateHandles</var> to store the specified handles for the shared image
and its mask.
</p>
<p>
SetHandles is called from methods that load image data using
<var>TLazIntfImage</var> from the LCL interface. It is also called when
values are assigned to the <var>BitmapHandle</var> or <var>MaskHandle</var>
properties.
</p>
</descr>
<seealso>
<link id="TRasterImage.SetHandles"/>
</seealso>
</element>
<element name="TCustomBitmap.SetHandles.ABitmap">
<short>New Bitmap handle for the image.</short>
</element>
<element name="TCustomBitmap.SetHandles.AMask">
<short>New Mask handle for the image.</short>
</element>
<element name="TCustomBitmap.SetSize">
<short>
Sets the Height and Width for the image to the specified values.
</short>
<descr>
<p>
<var>SetSize</var> is an overridden method in <var>TCustomBitmap</var> used
to change the <var>Height</var> and <var>Width</var> for the bitmap image to
the specified values. SetSize implements the abstract virtual method defined
in the ancestor class.
</p>
<p>
Calls RawImageNeeded to ensure that the image header in RawImage is valid for
the image.
</p>
<p>
The values in AWidth and AHeight contain the new dimensions for the image.
Both values must contain a positive value or 0. The default value for an
argument is set to 0 when a negative value is found. Their values are
assigned to the image desriptor in the shared imaged to change the size for
the image content. No additional actions are performed in the method if
either value is not successfully applied to the raw image descriptor.
</p>
<p>
Calls UnshareImage and RawImageNeeded to re-create the raw image data for the
shared image.
</p>
<p>
Copies existing pixel data for the image into the resized image. When the new
image size is smaller, only the portion of the image that fits within the new
dimensions is copied. Uses the CopyPixels method in the TLazIntfImage
instance to copy the image content.
</p>
<p>
Ensures that the Canvas context, BitMapHandle, and MaskHandle are updated for
the image. Calls the Changed method to update the shared image data and
signal the OnChange event handler (when assigned).
</p>
</descr>
<seealso>
<link id="TRasterImage.SetSize"/>
</seealso>
</element>
<element name="TCustomBitmap.SetSize.AWidth">
<short>New width for the image.</short>
</element>
<element name="TCustomBitmap.SetSize.AHeight">
<short>New height for the image.</short>
</element>
<element name="TCustomBitmap.Handle">
<short>The operating system Handle associated with this bitmap.</short>
<descr>
<p>In <var>TCustomBitmap</var>, the handle is provided by the internal shared
image class (<var>TSharedCustomBitmap</var>) and stored in the
<var>BitmapHandle</var> property.
</p>
</descr>
<seealso>
<link id="TRasterImage.BitmapHandle"/>
<link id="TSharedCustomBitmap"/>
</seealso>
</element>
<element name="TCustomBitmap.HandleType">
<short>Handle type for the Bitmap.</short>
<descr>
<p>
<var>HandleType</var> is a
<var>TBitmapHandleType</var> property which indicates the handle type used
for the bitmap image data. HandleType identifies whether the bitmap handle is
classified as a Device-Dependent Bitmap (DDB) or a Device-Independent Bitmap
(DIB).
</p>
<p>See <link id="TBitmapHandleType">TBitmapHandleType</link> for more
information about the handle types and their specifics.
</p>
<p>The value for the property is read from the internal shared image in the
class instance. Setting a new value for the property has no effect in the
current implementation; the value is always read from the raw image data.
</p>
</descr>
<seealso>
<link id="TBitmapHandleType"/>
<link id="TSharedCustomBitmap.HandleType"/>
</seealso>
</element>
<element name="TCustomBitmap.Monochrome">
<short><b>True</b> when the image contains monochrome image data.</short>
<descr>
<p>
<var>Monochrome</var> is a <var>Boolean</var> property which indicates
whether the raw image data is represented using pixels of a single color.
</p>
<p>
The property value is <b>True</b> when the descriptor for the shared raw
image data has a color depth of <b>1</b>. The <var>PixelFormat</var> property
will also contain the value <var>pf1bit</var>.
</p>
<p>
Setting a new value in Monochrome causes the value in PixelFormat to be
changed. When set to <b>True</b>, PixelFormat is set to <var>pf1bit</var>.
When set to <b>False</b>, the value <var>pfDevice</var> is assigned to the
PixelFormat property.
</p>
<p>
Changing the value in Monochrome (and PixelFormat) causes the image data to
be discarded, and the Handle for the internal shared image is freed.
</p>
<p>
No actions are performed when Monochrome is set to the existing value for the
property.
</p>
</descr>
<seealso>
<link id="TRasterImage.PixelFormat"/>
<link id="TCustomBitmap.Handle"/>
</seealso>
</element>
<element name="TFPImageBitmap">
<short>
Implements a Bitmap using the FPImage reader and writer from the FCL.
</short>
<descr>
<p>
Use this class to easily create a <var>TCustomBitmap</var> descendant using
an FPImage reader and writer.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.GetMimeType">
<short>
Gets the MIME type used for the image data in the image type.
</short>
<descr>
<p>
GetMimeType is an overridden String function used to get the MIME type for
the image data in the class instance.
</p>
<p>
Calls GetFileExtensions to get the delimited list of file extensions
supported for the image type. The list is an empty string in TFPImageBitmap.
Descendent classes provide value(s) which reflect the image formats supported
in their implementations.
</p>
<p>
GetMimeType extracts the first file extension in the list (separated by a
SemiColon character), and uses the file extension in the return value. For
example:
</p>
<ul>
<li>'image/bmp'</li>
<li>'image/gif'</li>
<li>'image/jpg'</li>
<li>'image/png'</li>
<li>'image/tiff'</li>
<li>'image/xpm'</li>
</ul>
<remark>
GetMimeType is not implemented in the current LCL version.
</remark>
</descr>
<seealso>
<link id="TFPImageBitmap.GetFileExtensions"/>
<link id="TRasterImage.GetMimeType"/>
<link id="TGraphic.GetMimeType"/>
</seealso>
</element>
<element name="TFPImageBitmap.GetMimeType.Result">
<short>MIME type used for the image data in the class.</short>
</element>
<element name="TFPImageBitmap.GetReaderClass">
<short>
Gets the class reference used to create new instances of the FCL-compatible
image reader.
</short>
<descr>
<p>
Defined as an abstract virtual method in TFPImageBitmap. Must be implemented
in a descendent class which provides support for a specific image format.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.GetReaderClass.Result">
<short>
TFPCustomImageReaderClass descendent used for the image class type.
</short>
</element>
<element name="TFPImageBitmap.GetWriterClass">
<short>
Gets the class reference used to create new instances of the FCL-compatible
image writer.
</short>
<descr>
<p>
Defined as an abstract virtual method in TFPImageBitmap. Must be implemented
in a descendent class which provides support for a specific image format.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.GetWriterClass.Result">
<short>
TFPCustomImageWriterClass descendent used for the image class type.
</short>
</element>
<element name="TFPImageBitmap.InitializeReader">
<short>Configures the reader class instance for the image type.</short>
<descr>
<p>
<var>InitializeReader</var> is a virtual method used to configure the
FCL-compatible image reader class instance in <var>AReader</var>.
InitializeReader assigns the <var>Progress</var> method to the
<var>OnProgress</var> event handler in AReader.
</p>
<p>
<var>AImage</var> is not used in the current implementation.
</p>
<p>
InitializeReader is called from the <var>ReadStream</var> method prior to any
operation that reads the image descriptor, header, or data.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.InitializeReader.AImage">
<short>Not used in the current implementation.</short>
</element>
<element name="TFPImageBitmap.InitializeReader.AReader">
<short>FCL image reader instance updated in the method.</short>
</element>
<element name="TFPImageBitmap.InitializeWriter">
<short>Configures the writer class instance for the image type.</short>
<descr>
<p>
<var>InitializeWriter</var> is a virtual method used to configure the
FCL-compatible image writer class instance in <var>AWriter</var>.
InitializeWriter assigns the <var>Progress</var> method to the
<var>OnProgress</var> event handler in <var>AWriter</var>. When AWriter
implements the <var>ILazImageWriter</var> interface, its
<var>Initialize</var> method is called to store the data for the LCL
interface image in <var>AImage</var>.
</p>
<p>
InitializeWriter is called from the <var>WriteStream</var> method prior to
any operation that writes the raw image data to a stream.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.InitializeWriter.AImage">
<short>
LCL interface image with the image data for the write class instance.
</short>
</element>
<element name="TFPImageBitmap.InitializeWriter.AWriter">
<short>FCL image write instance updated in the method.</short>
</element>
<element name="TFPImageBitmap.FinalizeReader">
<short>
Finalizes the FCL image reader when a read operation has been completed.
</short>
<descr>
<p>
<var>FinalizeReader</var> has an empty implementation in
<var>TFPImageBitmap</var>. In a descendent class, it is used to update
properties in the class instance to reflect values encountered by the image
reader.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.FinalizeReader.AReader">
<short>FCL reader class instance examined in the method.</short>
</element>
<element name="TFPImageBitmap.FinalizeWriter">
<short>
<var>FinalizeWriter</var> - ends the Image writing process.
</short>
<descr>
<p>
<var>FinalizeWriter</var> is a virtual method used to finalize the
FCL-compatible image writer class instance in <var>AWriter</var>. When
AWriter implements the <var>ILazImageWriter</var> interface, its
<var>Finalize</var> method is called to release image data in the LCL
interface image.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.FinalizeWriter.AWriter">
<short>FCL image writer class examined in the method.</short>
</element>
<element name="TFPImageBitmap.ReadStream">
<short>Read the image data from the specified Stream.</short>
<descr>
<p>
<var>ReadStream</var> is an overridden method used to read the image data
from the stream specified in <var>AStream</var>.
</p>
<p>
ReadStream creates an instance of the <var>TFPCustomImageReader</var> class
used to read the image type from a stream. It calls
<var>InitializeReader</var> to configure the reader class instance. If the
image reader class supports the <var>ILazImageReader</var> interface, it is
configure to update its description from the image data. Otherwise, the
<var>GetDescriptionFromDevice</var> routine is called to store the defaults
for the LCL interface image.
</p>
<p>
ReadStream calls the <var>ImageRead</var> method in the
<var>TFPCustomImageReader</var> instance to load the image data from AStream.
<var>FinalizeReader</var> is called when the operation is completed. The
shared image for the image type is freed, and the raw image data from the LCL
interface image is loaded into the shared image. The mask information in raw
image data is applied to the shared image. The image is flagged to update the
value for the <var>PixelFormat</var> property in the calling routine.
</p>
</descr>
<seealso>
<link id="TRasterImage.ReadStream"/>
</seealso>
</element>
<element name="TFPImageBitmap.ReadStream.AStream">
<short>TMemoryStream instance with the image data read in the method.</short>
</element>
<element name="TFPImageBitmap.ReadStream.ASize">
<short>Not used in the current implementation.</short>
</element>
<element name="TFPImageBitmap.WriteStream">
<short>Write the data to a stream.</short>
<descr>
<p>
<var>WriteStream</var> is an overridden procedure in
<var>TFPImageBitmap</var> used to write the image content to the stream
specified in <var>AStream</var>. WriteStream implements the abstract virtual
method defined in <var>TRasterImage</var>.
</p>
<p>
WriteStream creates temporary <var>TLazIntfImage</var> and
<var>TFPCustomImageWriter</var> instances that are used to write the data for
the internal <var>TRawImage</var> instance used in the class. Raw image data
is stored in the TLazIntfImage instance, and its <var>SaveToStream</var>
method is called to write the values to AStream.
</p>
<p>
No actions are performed in the method when the data size for the raw image
is <b>0</b>.
</p>
</descr>
<seealso>
<link id="TRasterImage.WriteStream"/>
</seealso>
</element>
<element name="TFPImageBitmap.WriteStream.Stream">
<short>Stream where the image data is stored.</short>
</element>
<element name="TFPImageBitmap.GetFileExtensions">
<short>
Returns a list of the file extensions available for the image type.
</short>
<descr>
<p>Always returns an empty string ('') in TFPImageBitmap.
</p>
</descr>
<seealso>
<link id="TGraphic.GetFileExtensions"/>
</seealso>
</element>
<element name="TFPImageBitmap.GetFileExtensions.Result">
<short>List of file extensions supported for the image type.</short>
</element>
<element name="TFPImageBitmap.IsStreamFormatSupported">
<short>
Determines if the specified stream contains image data supported for the
image type.
</short>
<descr>
<p>
<var>IsStreamFormatSupported</var> is an overridden <var>TFPImageBitmap</var>
class function used to determine if the stream specified in
<var>Stream</var> contains image data supported in the image type.
</p>
<p>
IsStreamFormatSupported creates a temporary instance of the
<var>TFPCustomImageReader</var> used for the image type, and calls its
<var>CheckContents</var> method to examine the values in Stream. The return
value is <b>True</b> when the FCL image reader recognizes the image format.
</p>
<p>
IsStreamFormatSupported saves the position in Stream on entry, and restores
the position prior to exiting from the method.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.IsStreamFormatSupported.Result">
<short>
<b>True</b> when the stream contains a image data in a supported format.
</short>
</element>
<element name="TFPImageBitmap.IsFileExtensionSupported">
<short>
Indicates whether the given file extension is supported for the image type.
</short>
<descr>
<p>
<var>IsFileExtensionSupported</var> is a <var>Boolean</var> class function
used to determine if the file extension in <var>FileExtension</var> is valid
for the image type. If FileExtension includes a period character ('.'), it is
removed before use.
</p>
<p>
The return value is <b>True</b> when FileExtension is included in the value
returned by the <var>GetFileExtensions</var> method. No actions are performed
in the method when FileExtension is an empty string (<b>''</b>).
</p>
<p>
IsFileExtensionSupported is used in the implementation of
<var>LazarusResourceTypeValid</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TFPImageBitmap.IsFileExtensionSupported.Result">
<short>
<b>True</b> when the file extension is valid for the image type.
</short>
</element>
<element name="TFPImageBitmap.IsFileExtensionSupported.FileExtension">
<short>File extension checked for the image type.</short>
</element>
<element name="TFPImageBitmap.LazarusResourceTypeValid">
<short>Determines if the specified resource type is valid for the image
format.
</short>
<descr>
<p>
<var>LazarusResourceTypeValid</var> is a <var>Boolean</var> function used to
determine if the value in <var>ResourceType</var> is a valid resource type
for the image format.
</p>
<p>
LazarusResourceTypeValid is an overridden method, and re-implements the
method defined in the ancestor class. The return value is <b>True</b> when
ResourceType contains is one the file extensions returned from
IsFileExtensionSupported. The return value is <b>False</b> if ResourceType
contains any other value.
</p>
<p>
LazarusResourceTypeValid is used in the implementation of the
<var>LoadFromLazarusResource</var> method.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap.IsFileExtensionSupported"/>
<link id="TCustomBitmap.LazarusResourceTypeValid"/>
<link id="TGraphic.LazarusResourceTypeValid"/>
<link id="TGraphic.LoadFromLazarusResource"/>
</seealso>
</element>
<element name="TFPImageBitmap.LazarusResourceTypeValid.Result">
<short>
<b>True</b> when the resource type name is one file extensions for the image
format.
</short>
</element>
<element name="TFPImageBitmap.LazarusResourceTypeValid.ResourceType">
<short>Resource type examined in the method.</short>
</element>
<element name="TFPImageBitmapClass">
<short>Class reference used to create new instances of TFPImageBitmap.</short>
<descr/>
<seealso>
<link id="TFPImageBitmap"/>
</seealso>
</element>
<element name="TSharedBitmap">
<short>Defines a reference-counted shared Bitmap graphic.</short>
<descr>
<p>
TSharedBitmap is a TSharedCustomBitmap descendant.
</p>
</descr>
<seealso>
<link id="TSharedCustomBitmap"/>
</seealso>
</element>
<element name="TBitmap">
<short>Implements a FCL-compatible reader/writer for a Bitmap image.</short>
<descr>
<p>
<var>TBitmap</var> is a <var>TFPImageBitmap</var> descendant which represents
the data for a Bitmap image. The image can be loaded from a file, stream or
resource which uses <b>.bmp (windows bitmap)</b> format.
</p>
<p>
TBitmap provides overridden methods which get the image reader
(<var>TLazReaderBMP</var>) and writer (<var>TLazWriteBMP</var>) class
references, as well as the shared image storage class
(<var>TSharedBitmap</var>).
</p>
<p>
An overridden LoadFromStream method is provided which handles reading the BMP
header using the correct endian-ness for the platform. The loading routine
automatically recognizes the format, so it is also used to load the images
from Delphi form streams (e.g. .dfm files) or FreePascal/Lazarus form streams
(.lfm).
</p>
<p>
When the handle for the image is created, it is up to the interface (GTK, QT,
Win32,etc.) to convert it automatically to the best internal format for the
widgetset. That is why the <var>Handle</var> is interface dependent.
</p>
<p>
To access the raw image data, see <var>TLazIntfImage</var>.
</p>
<remark>
Please note that the current implementation is dramatically different than
previous LCL implementations. Most of the low-level functionality for TBitmap
has been refactored into ancestor or descendent classes.
</remark>
</descr>
<seealso>
<link id="TFPImageBitmap"/>
<link id="TCustomBitmap"/>
<link id="TRasterImage"/>
<link id="TGraphic"/>
<link id="TSharedBitmap"/>
<link id="#lcl.intfgraphics.TLazIntfImage">TLazIntfImage</link>
<link id="#lcl.intfgraphics.TLazReaderBMP">TLazReaderBMP</link>
<link id="#lcl.intfgraphics.TLazWriterBMP">TLazWriterBMP</link>
</seealso>
</element>
<element name="TBitmap.InitializeReader">
<short>
Initializes the image reader to use the transparency settings in the class
instance.
</short>
<descr>
<p>
<var>InitializeReader</var> is an overridden procedure used to apply
transparency settings to the image reader in <var>AReader</var>.
InitializeReader calls the inherited method on entry to signal the
<var>OnProgress</var> event handler (when assigned).
</p>
<p>
InitializeReader ensures that AReader is derived from
<var>TLazReaderBMP</var>. No additional actions are performed in the method
when AReader is not a TLazReaderBMP class instance.
</p>
<p>
InitializeReader applies values from the <var>TransparentMode</var> and
<var>TransparentColor</var> properties to the mask settings in AReader.
</p>
<p>
<b>TransparentMode</b>
</p>
<p>
Determines whether the transparency color is auto-detected in the image data,
or a fixed transparency color is used.
</p>
<dl>
<dt>tmAuto</dt>
<dd>The bottom left pixel in the image data contains the transparency
color.</dd>
<dt>tmFixed</dt>
<dd>Uses a predefined color in TransparentColor as the transparency
color.</dd>
</dl>
<p>
<b>TransparentColor</b>
</p>
<p>
Determines the color used to represent transparent areas in the image data.
</p>
<dl>
<dt>clDefault</dt>
<dd>
Uses the bottom left pixel as the transparency color. This is a Lazarus
extension.
</dd>
<dt>clNone</dt>
<dd>Ignores transparency in the image data. This is a Lazarus extension.</dd>
</dl>
<p>
All other color constants represent the color for transparent pixels in the
image.
</p>
<p>
Values in TransparentMode and TransparentColor are assigned to the MaskMode
and MaskColor properties in AReader as required.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap.InitializeReader"/>
</seealso>
</element>
<element name="TBitmap.InitializeReader.AImage">
<short>Provides access to the raw data for the image.</short>
</element>
<element name="TBitmap.InitializeReader.AReader">
<short>Reader used to access raw data for the image.</short>
</element>
<element name="TBitmap.GetReaderClass">
<short>
Gets the class reference used to create the FCL-compatible reader for the
image.
</short>
<descr>
<p>
<var>GetReaderClass</var> is an overridden
<var>TFPCustomImageReaderClass</var> class function used to get the
FCL-compatible reader for the image type. The return value is a
<var>TLazReaderBMP</var> class reference in <var>TBitmap</var>.
</p>
<p>
GetReaderClass is called from the <var>ReadStream</var> method when the
reader is created and initialized. It is used to load a
<var>TLazIntfImage</var> instance with the image content supplied in a
stream. It is also used in the <var>IsStreamFormatSupported</var> method to
determine if the stream contains an image format that can be read using the
reader class type.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap.GetReaderClass"/>
<link id="TFPImageBitmap.ReadStream"/>
<link id="TFPImageBitmap.IsStreamFormatSupported"/>
<link id="#lcl.intfgraphics.TLazReaderBMP">TLazReaderBMP</link>
<link id="#lcl.intfgraphics.TLazReaderDIB">TLazReaderDIB</link>
<link id="#lcl.intfgraphics.ILazImageReader">ILazImageReader</link>
</seealso>
</element>
<element name="TBitmap.GetReaderClass.Result">
<short>Class reference used to create instances of the reader class.</short>
</element>
<element name="TBitmap.GetWriterClass">
<short>
Gets the class reference used to create instances of the FCL-compatible image
writer.
</short>
<descr>
<p>The return value is a <var>TLazWriterBMP</var> class reference in TBitmap.
</p>
<p>
<var>GetWriterClass</var> is called from the
<var>WriteStream</var> method when the image writer is used to write a
<var>TLazIntfImage</var> instance to a stream.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap.GetWriterClass"/>
<link id="TFPImageBitmap.WriteStream"/>
</seealso>
</element>
<element name="TBitmap.GetWriterClass.Result">
<short>Class reference used to create instances of the writer class.</short>
</element>
<element name="TBitmap.GetSharedImageClass">
<short>
Gets the class reference used to create new instances of a shared image.
</short>
<descr>
<p>
<var>GetSharedImageClass</var> provides a class reference used to create new
instances of the shared image class used in <var>TBitmap</var>.
</p>
<p>
The return value is a <var>TSharedBitmap</var> class reference in TBitmap.
</p>
<p>
GetSharedImageClass is called from methods like <var>Create</var>,
<var>Assign</var>, and <var>CanShareImage</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TBitmap.GetSharedImageClass.Result">
<short>
Class reference used to create new instances of the shared image class.
</short>
</element>
<element name="TBitmap.GetFileExtensions">
<short>Gets the file extensions supported for the image type.</short>
<descr>
<p>
<var>GetFileExtensions</var> is an overridden <var>String</var> class
function used to get a delimited list of file extensions used for graphic
files supported in the class. The <b>'.'</b> character is omitted from file
extension(s), and extensions are separated by a <b>SemiColon</b> (<b>;</b>)
character.
</p>
<p>
In TBitmap, the method returns the value <b>'bmp'</b> for the Windows Bitmap
format supported in the class.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap.GetFileExtensions"/>
<link id="TGraphic.GetFileExtensions"/>
</seealso>
</element>
<element name="TBitmap.GetFileExtensions.Result">
<short>File extensions used for the image type.</short>
</element>
<element name="TBitmap.GetResourceType">
<short>Gets the resource type identifier for the image format.</short>
<descr>
<p>
<var>GetResourceType</var> is an overridden method used to get the resource
type identifier for the image format. GetResourceType returns the value in the
<var>RT_BITMAP</var> constant for the Windows Bitmap image format.
</p>
</descr>
<seealso/>
</element>
<element name="TBitmap.GetResourceType.Result">
<short>Returns the RT_BITMAP constant.</short>
</element>
<element name="TBitmap.LoadFromStream">
<short>
Loads image data for the bitmap from the specified stream.
</short>
<descr>
<p>
<var>LoadFromStream</var> is an overridden method used to read data for the
bitmap image from the <var>TStream</var> instance specified in
<var>AStream</var>. <var>ASize</var> contains the number of bytes to read in
the method.
</p>
<p>
The inherited method has been adapted for reading from a TResourceStream
instance which can contain data as RT_BITMAP or RT_RCDATA resource types having
slightly different binary structures.
</p>
<p>
LoadFromStream is called when the ReadData method is executed (in the
TRasterImage ancestor) or when a TBitmap instance calls LoadFromResourceName or
LoadFromResourceID.
</p>
</descr>
<version>
Modified in LCL version 3.0 to provide support for loading image data from a
resource stream containing either the RT_RCDATA or RT_BITMAP resource types.
</version>
<seealso>
<link id="TRasterImage.LoadFromStream"/>
<link id="TRasterImage.ReadData"/>
<link id="TGraphic.LoadFromResourceName"/>
<link id="TGraphic.LoadFromResourceID"/>
<link id="#lcl.lcltype.TBitmapFileHeader">TBitmapFileHeader</link>
<link id="#lcl.lcltype.TResourceType">TResourceType</link>
<link id="#lcl.lcltype.RT_BITMAP">RT_BITMAP</link>
<link id="#lcl.lcltype.RT_RCDATA">RT_RCDATA</link>
<link id="#rtl.classes.TResourceStream">TResourceStream</link>
</seealso>
</element>
<element name="TBitmap.LoadFromStream.AStream">
<short>Stream instance with the image data loaded in the method.</short>
</element>
<element name="TBitmap.LoadFromStream.ASize">
<short>Number of bytes to read from the stream.</short>
</element>
<element name="TSharedPixmap">
<short>Implements a reference-counted shared Pixmap image type.</short>
<descr/>
<seealso>
<link id="TSharedCustomBitmap"/>
<link id="TPixmap"/>
</seealso>
</element>
<element name="TPixmap">
<short>Implements support for the XPM (Pixmap) image format.</short>
<descr>
<p>
<var>TPixMap</var> is a <var>TFPImageBitmap</var> descendant, and is a
wrapper used to handle the <b>Pixmap</b> (<b>'XPM'</b>) image format.
</p>
<p>
Pixmap is an image file format used by the X Window System. It is intended
primarily for creating icons, and supports transparent pixels. Derived from
the earlier XBM syntax, it is a plain text file using the XPM2 format or a C
programming language syntax, which can be included in a source code file.
</p>
<p>
<var>TPixmap</var> ensures that specified resources (image, file, or stream)
are of the correct type and format.
</p>
</descr>
<seealso/>
</element>
<element name="TPixMap.GetReaderClass">
<short>
Gets the class reference for a reader used during component streaming.
</short>
<descr/>
<seealso/>
</element>
<element name="TPixMap.GetReaderClass.Result">
<short>Class reference for a reader used during component streaming.</short>
</element>
<element name="TPixMap.GetWriterClass">
<short>
Gets the class reference for a writer used during component streaming.
</short>
<descr/>
<seealso/>
</element>
<element name="TPixMap.GetWriterClass.Result">
<short>Class reference for a writer used during component streaming.</short>
</element>
<element name="TPixMap.GetSharedImageClass">
<short>
Gets the class reference used to create the shared image in the class
instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TPixMap.GetSharedImageClass.Result">
<short>
class reference used to create the shared image in the class instance.
</short>
</element>
<element name="TPixmap.LazarusResourceTypeValid">
<short>
Determines if the specified resource type is valid for the image format.
</short>
<descr/>
<seealso/>
</element>
<element name="TPixmap.LazarusResourceTypeValid.Result">
<short>Returns <b>True</b> if the resource type is 'XPM'</short>
</element>
<element name="TPixmap.LazarusResourceTypeValid.ResourceType">
<short>Resource type examined in the method.</short>
</element>
<element name="TPixmap.GetFileExtensions">
<short>Gets the file extensions supported for the image type.</short>
<descr>
<p>
<var>GetFileExtensions</var> is an overridden <var>String</var> class
function used to get a delimited list of file extensions used for graphic
files supported in the class. The <b>'.'</b> character is omitted from file
extension(s), and extensions are separated by a <b>SemiColon</b> (<b>;</b>)
character.
</p>
<p>
In TPixmap, the method returns the value <b>'xpm'</b> for the Pixmap format
supported in the class.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap.GetFileExtensions"/>
<link id="TGraphic.GetFileExtensions"/>
</seealso>
</element>
<element name="TPixmap.GetFileExtensions.Result">
<short>File extension(s) supported for the image format.</short>
</element>
<element name="TSharedPortableNetworkGraphic">
<short>
<var>TSharedPortableNetworkGraphic</var> - a reference counted PNG Image.
</short>
<descr>
<p>
<var>TSharedPortableNetworkGraphic</var> is a <var>TSharedCustomBitmap</var>
descendant which implements a reference counted PNG image.
TSharedPortableNetworkGraphic is the type returned by the
<var>GetSharedImageClass</var> method in <var>TPortableNetworkGraphic</var>.
</p>
</descr>
<seealso>
<link id="TSharedCustomBitmap"/>
<link id="TPortableNetworkGraphic.GetSharedImageClass"/>
</seealso>
</element>
<element name="TPortableNetworkGraphic">
<short>Implements support for the PNG image format.</short>
<descr>
<p>
<var>TPortableNetworkGraphic</var> is a <var>TFPImageBitmap</var> descendant
which implements support for the <b>PNG</b> (<b>Portable Network
Graphics</b>) image format. PNG is a raster graphic file format that supports
loss-less data compression. PNG was developed as an improved, non-patented
replacement for GIF (Graphics Interchange Format).
</p>
<p>
PNG supports palette-based images (using 24-bit RGB or 32-bit RGBA colors),
grayscale images (with or without alpha channel transparency), and full-color
non-palette-based RGB or RGBA images. A PNG file contains a single image in
an extensible chunk structure, and uses encoding to compress repetitive pixel
values in the image.
</p>
<p>
PNG image files use the file extension <b>PNG</b> or <b>png</b>, and uses the
MIME media type <b>'image/png'</b>.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap"/>
</seealso>
</element>
<element link="#lcl.graphics.TFPImageBitmap.GetReaderClass" name="TPortableNetworkGraphic.GetReaderClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TPortableNetworkGraphic.GetReaderClass.Result">
<short/>
</element>
<element name="TPortableNetworkGraphic.GetWriterClass" link="#lcl.graphics.TFPImageBitmap.GetReaderClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TPortableNetworkGraphic.GetWriterClass.Result">
<short/>
</element>
<element name="TPortableNetworkGraphic.InitializeWriter" link="#lcl.graphics.TFPImageBitmap.InitializeWriter"/>
<element name="TPortableNetworkGraphic.InitializeWriter.AImage"/>
<element name="TPortableNetworkGraphic.InitializeWriter.AWriter"/>
<element link="#lcl.graphics.TRasterImage.GetSharedImageClass" name="TPortableNetworkGraphic.GetSharedImageClass">
<descr/>
<seealso/>
</element>
<element name="TPortableNetworkGraphic.GetSharedImageClass.Result">
<short/>
</element>
<element name="TPortableNetworkGraphic.IsStreamFormatSupported">
<short>
Determines if the specified stream contains image data supported for the
image type.
</short>
<descr/>
<seealso/>
</element>
<element name="TPortableNetworkGraphic.IsStreamFormatSupported.Result">
<short/>
</element>
<element name="TPortableNetworkGraphic.IsStreamFormatSupported.Stream">
<short/>
</element>
<element link="#lcl.graphics.TGraphic.GetFileExtensions" name="TPortableNetworkGraphic.GetFileExtensions">
<short/>
<descr/>
<seealso/>
</element>
<element name="TPortableNetworkGraphic.GetFileExtensions.Result">
<short/>
</element>
<element name="TSharedPortableAnyMapGraphic">
<short>
<var>TSharedPortableAnyMapGraphic</var> - a reference counted shared PNM.
</short>
<descr/>
<seealso>
<link id="TSharedCustomBitmap"/>
</seealso>
</element>
<element name="TPortableAnyMapGraphic">
<short>
Implements an image which supports for the Portable Any Map (PNM) graphic
format.
</short>
<descr>
<p>
<var>TPortableAnyMapGraphic</var> is a <var>TFPImageBitmap</var> descendant
which implements support for the Portable Any Map (PNM) graphic format.
</p>
<p>
<b>PNM</b> is a member of the NetPBM family of image formats and includes
<b>PBM</b>, <b>PGM</b>, and <b>PPM</b> image formats. The group is referred
to collectively as the Portable Any Map format, and uses the <b>.PNM</b> file
extension.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap"/>
</seealso>
</element>
<element link="#lcl.graphics.TFPImageBitmap.GetReaderClass" name="TPortableAnyMapGraphic.GetReaderClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TPortableAnyMapGraphic.GetReaderClass.Result">
<short/>
</element>
<element link="#lcl.graphics.TFPImageBitmap.GetWriterClass" name="TPortableAnyMapGraphic.GetWriterClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TPortableAnyMapGraphic.GetWriterClass.Result">
<short/>
</element>
<element link="#lcl.graphics.TRasterImage.GetSharedImageClass" name="TPortableAnyMapGraphic.GetSharedImageClass">
<descr/>
<seealso/>
</element>
<element name="TPortableAnyMapGraphic.GetSharedImageClass.Result">
<short/>
</element>
<element name="TPortableAnyMapGraphic.IsStreamFormatSupported">
<short>
Determines if the specified stream contains image data supported for the
image type.
</short>
<descr/>
<seealso/>
</element>
<element name="TPortableAnyMapGraphic.IsStreamFormatSupported.Result">
<short/>
</element>
<element name="TPortableAnyMapGraphic.IsStreamFormatSupported.Stream">
<short/>
</element>
<element link="#lcl.graphics.TGraphic.GetFileExtensions" name="TPortableAnyMapGraphic.GetFileExtensions">
<short/>
<descr/>
<seealso/>
</element>
<element name="TPortableAnyMapGraphic.GetFileExtensions.Result">
<short/>
</element>
<element name="TIconImageClass">
<short>Class reference used to create new instances of TIconImage.</short>
<descr/>
<seealso>
<link id="TIconImage"/>
</seealso>
</element>
<element name="TSharedIcon">
<short>Implements a reference-counted shared Icon image type.</short>
<descr>
<p>
<var>TSharedIcon</var> is a <var>TSharedRasterImage</var> descendant which
implements a reference counted shared Icon. TSharedIcon provides access to
the list of images available in the Icon as <var>TIconImage</var> instances
using the <var>Images</var> property. Methods are provided to add, delete,
clear, sort, and retrieve the images.
</p>
<p>
TSharedIcon is the type used to implement the internal shared image in
<var>TCustomIcon</var> (and descendant classes).
</p>
</descr>
<seealso/>
</element>
<!-- private -->
<element name="TSharedIcon.FImages"/>
<element name="TSharedIcon.FreeHandle">
<short>Frees the handle for the shared reference-counted icon.</short>
<descr>
<p>
<var>FreeHandle</var> is an overridden method in <var>TSharedIcon</var>. It
calls <var>DestroyIcon</var> to free the Handle for the shared Icon in the
widgetset class. It does not call the inherited method. No actions are
performed in the method when Handle contains <b>0</b> (<b>zero</b>).
</p>
</descr>
<seealso>
<link id="TSharedImage.FreeHandle"/>
</seealso>
</element>
<element name="TSharedIcon.UpdateFromHandle">
<short>
Frees the existing icon image and reloads it from the specified handle.
</short>
<descr>
<p>
Calls FreeHandle to free the existing handle for the Icon in the widgetset
class, and sets the handle to the value specified in NewHandle. Gets icon
information from the widgetset class and adds a new icon image to the list of
Images.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the NewHandle parameter.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TSharedIcon.UpdateFromHandle.NewHandle">
<short>
TLCLHandle instance assigned as the handle for the shared icon.
</short>
</element>
<element name="TSharedIcon.IsEmpty">
<short>
Indicates if the shared icon is empty (contains no icon images).
</short>
<descr/>
<seealso>
<link id="TSharedRasterImage.IsEmpty"/>
</seealso>
</element>
<element name="TSharedIcon.IsEmpty.Result">
<short/>
</element>
<element name="TSharedIcon.GetImage">
<short>Gets the value for the indexed Images property.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedIcon.GetImage.Result">
<short>
TIconImage instance at the specified position in the image list.
</short>
</element>
<element name="TSharedIcon.GetImage.AIndex">
<short>Ordinal position for the image retrieved from the image list.</short>
</element>
<element name="TSharedIcon.Create">
<short>
<var>Create</var> - constructor for <var>TSharedIcon</var>: performs inherited
<var>Create</var> then creates a list of images.
</short>
<descr/>
<seealso>
<link id="#rtl.System.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TSharedIcon.Destroy">
<short>
<var>Destroy</var> - destructor for <var>TSharedIcon</var>: frees the list of
images and performs inherited <var>Destroy</var>.
</short>
<descr/>
<seealso>
<link id="#rtl.System.TObject.Destroy">TObject.Destroy</link>
</seealso>
</element>
<element name="TSharedIcon.Clear">
<short>
<var>Clear</var> - remove the icon and free its resources.
</short>
<descr/>
<seealso/>
</element>
<element name="TSharedIcon.Delete">
<short>Removes the icon image with the specified index.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedIcon.Delete.AIndex">
<short>Ordinal position for the icon image removed in the method.</short>
</element>
<element name="TSharedIcon.GetIndex">
<short>
Gets the Index of an image with specified pixel format, height and width.
</short>
<descr/>
<seealso/>
</element>
<element name="TSharedIcon.GetIndex.Result">
<short>
Ordinal position for the icon image matching the requested value(s).
</short>
</element>
<element name="TSharedIcon.GetIndex.AFormat">
<short>Pixel format (color depth) to locate in the Images.</short>
</element>
<element name="TSharedIcon.GetIndex.AHeight">
<short>Height for the requested image.</short>
</element>
<element name="TSharedIcon.GetIndex.AWidth">
<short>Width for the requested image.</short>
</element>
<element name="TSharedIcon.GetImagesClass">
<short>
Gets the class reference used to create a new icon image in the Images
property.
</short>
<descr/>
<seealso/>
</element>
<element name="TSharedIcon.GetImagesClass.Result">
<short/>
</element>
<element name="TSharedIcon.Add">
<short>Adds the specified image to the list of Images in the icon.
</short>
</element>
<element name="TSharedIcon.Add.AIconImage">
<short/>
</element>
<element name="TSharedIcon.Sort">
<short>Sorts values in Images using the IconCompare routine.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedIcon.Count">
<short>
<var>Count</var> - returns the number of references to the shared icon.
</short>
</element>
<element name="TSharedIcon.Count.Result">
<short/>
</element>
<element name="TSharedIcon.Images">
<short>Provides indexed access to the images available in the Icon.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedIcon.Images.AIndex">
<short>Ordinal position for an icon image in the list of images.</short>
</element>
<element name="TIconImage">
<short>
<var>TIconImage</var> - a primitive Icon class with handles for the Bitmap,
Mask and Palette.
</short>
<descr/>
<seealso/>
</element>
<!-- private -->
<element name="TIconImage.FHeight"/>
<element name="TIconImage.FPixelFormat"/>
<element name="TIconImage.FWidth"/>
<element name="TIconImage.FImage"/>
<element name="TIconImage.FHandle"/>
<element name="TIconImage.FMaskHandle"/>
<element name="TIconImage.FPalette"/>
<element name="TIconImage.GetPalette">
<short>Gets the value for the Palette property.</short>
<descr/>
<seealso>
<link id="TIconImage.Palette"/>
</seealso>
</element>
<element name="TIconImage.GetPalette.Result">
<short>Value for the property.</short>
</element>
<element name="TIconImage.RawImageNeeded">
<short>
<var>RawImageNeeded</var> - if <var>ADescOnly</var> is <b>True</b>
(descriptor only), then we need a Raw Image.
</short>
<descr/>
<seealso/>
</element>
<element name="TIconImage.RawImageNeeded.ADescOnly">
<short/>
</element>
<element name="TIconImage.UpdateFromImage">
<short>Updates the icon image from the specified raw image data.</short>
<descr>
<p>
<var>UpdateFromImage</var> is a procedure used to update the icon image from
the specified raw image data.
</p>
<p>
<var>AImage</var> is a <var>TRawImage</var> instance with the image content
stored in the <var>RawImage</var> property in the class instance. The image
descriptor in AImage is examined to get the values stored in the Height and
Width properties. The color depth in AImage is converted and stored in the
<var>PixelFormat</var> property.
</p>
<p>
UpdateFromImage is called from the Create constructor when a
<var>TRawImage</var> or a <var>TIconInfo</var> argument is provided.
</p>
</descr>
<seealso>
<link id="TIconImage.PixelFormat"/>
<link id="TIconImage.Height"/>
<link id="TIconImage.Width"/>
<link id="#lazutils.graphtype.TRawImage">TRawImage</link>
</seealso>
</element>
<element name="TIconImage.UpdateFromImage.AImage">
<short>Raw image data stored in the method.</short>
</element>
<element name="TIconImage.Create">
<short>
Constructor for the class instance.
</short>
<descr>
<p>
<var>Create</var> is the overloaded constructor for the class instance. It
specifies a Raw image to be used, and calls the inherited Create method.
Variants are provided with parameters which specify the dimensions and/or
content for the icon image. The variant with the <var>TIconInfo</var> argument
is used to create a new icon image when a handle is assigned in
<var>TSharedIcon</var>.
</p>
</descr>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TIconImage.Create.AFormat">
<short>Pixel format (color depth) for the image data.</short>
</element>
<element name="TIconImage.Create.AHeight">
<short>Height in pixels for the image.</short>
</element>
<element name="TIconImage.Create.AWidth">
<short>Width in pixels for the image.</short>
</element>
<element name="TIconImage.Create.AImage">
<short>Raw image data used to load the content in the image.</short>
</element>
<element name="TIconImage.Create.AInfo">
<short>
Structure with Hotspot, Mask and Color information for the icon image.
</short>
</element>
<element name="TIconImage.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance.
Destroy ensures that existing values in <var>Handle</var>,
<var>MaskHandle</var>, and <var>Palette</var> are freed by calling
<var>DeleteObject</var>. The raw image data used the class instance is also
freed. Destroy calls the inherited destructor prior to exiting from the
method.
</p>
</descr>
<seealso>
<link id="#rtl.system.TObject.Destroy">TObject.Destroy</link>
</seealso>
</element>
<element name="TIconImage.ReleaseHandle">
<short>Releases the Handle for the icon image.</short>
<descr>
<p>
<var>ReleaseHandle</var> is a <var>HBITMAP</var> function used to release the
<var>Handle</var> assigned for the icon image. The return value contains the
HBITMAP value for Handle before it is released. ReleaseHandle sets the value
in Handle to <b>0</b> (<b>zero</b>) to indicate that the handle is no longer
in use or invalid.
</p>
<p>
ReleaseHandle is called when a <var>TCustomIcon</var> descendant calls its
<var>InternalReleaseBitmapHandle</var> method.
</p>
<p>
Use <var>ReleaseMaskHandle</var> to release the <var>MaskHandle</var> for the
icon image.
</p>
<p>
Use <var>ReleasePalette</var> to release the <var>Palette</var> handle used
in the icon image.
</p>
</descr>
<seealso/>
</element>
<element name="TIconImage.ReleaseHandle.Result">
<short/>
</element>
<element name="TIconImage.ReleaseMaskHandle">
<short>
<var>ReleaseMaskHandle</var> - returns mask Bitmap handle to operating system.
</short>
<descr/>
<seealso/>
</element>
<element name="TIconImage.ReleaseMaskHandle.Result">
<short/>
</element>
<element name="TIconImage.ReleasePalette">
<short>
<var>ReleasePalette</var> - returns Palette handle to operating system.
</short>
<descr/>
<seealso/>
</element>
<element name="TIconImage.ReleasePalette.Result">
<short/>
</element>
<element name="TIconImage.UpdateHandles">
<short>
<var>UpdateHandles</var> - returns <b>True</b> when Bitmap and Mask handles
have been updated.
</short>
<descr>
<p>
<var>UpdateHandles</var> is a <var>Boolean</var> function used to set the
handles for the Bitmap and its optional Mask to the specified values.
<var>DeleteObject</var> is called to remove existing handle value(s) in the
<var>Handle</var> and <var>MaskHandle</var> properties.
</p>
<p>
The return value is <b>True</b> when the value(s) in Handle and/or MaskHandle
are successfully set to the specified values.
</p>
<p>
UpdateHandles emulates the method with the same name in
<var>TCustomBitmap</var>. UpdateHandles is called when the <var>TIcon</var>
instance where the icon image is used calls its <var>UpdateHandles</var>
method.
</p>
</descr>
<seealso/>
</element>
<element name="TIconImage.UpdateHandles.Result">
<short><b>True</b> when the handles are successfully updated.</short>
</element>
<element name="TIconImage.UpdateHandles.ABitmap">
<short>Handle for the Bitmap stored in the method.</short>
</element>
<element name="TIconImage.UpdateHandles.AMask">
<short>Handle for the Mask stored in the method.</short>
</element>
<element name="TIconImage.Height">
<short>The <var>Height</var> of the Icon.</short>
<descr/>
<seealso/>
</element>
<element name="TIconImage.Width">
<short>The <var>Width</var> of the Icon.</short>
<descr/>
<seealso/>
</element>
<element name="TIconImage.PixelFormat">
<short>
<var>PixelFormat</var> - the format of the Pixels in the Image.
</short>
<descr/>
<seealso/>
</element>
<element name="TIconImage.Handle">
<short>
<var>Handle</var> - for the Bitmap.
</short>
<descr/>
<seealso/>
</element>
<element name="TIconImage.MaskHandle">
<short>
<var>MaskHandle</var> - Bitmap handle for the Mask.
</short>
<descr/>
<seealso/>
</element>
<element name="TIconImage.Palette">
<short>Handle for the <var>Palette</var>.
</short>
<descr>
<p>
<var>Palette</var> is a read-only <var>HPALETTE</var> property which provides
access to the color palette used in the Icon image.
</p>
<remark>
Palette is not implemented in the current LCL version.
</remark>
</descr>
<seealso/>
</element>
<element name="TIconImage.RawImage">
<short>Raw image data for the icon image.</short>
<descr>
<p>
<var>RawImage</var> is a read-only <var>TRawImage</var> property which
contains the raw image data for the icon image.
</p>
<p>
The property value is assigned in the <var>Create</var> method when a
TRawImage argument is provided. The <var>UpdateFromImage</var> method is used
to examine the raw image data and get the values stored in properties.
</p>
</descr>
<seealso>
<link id="TIconImage.Create"/>
<link id="TIconImage.UpdateFromImage"/>
<link id="#lazutils.graphtype.TRawImage">TRawImage</link>
</seealso>
</element>
<element name="TCustomIcon">
<short>
<var>TCustomIcon</var> - base class for TIcon.</short>
<descr>
<p>
<var>TCustomIcon</var> is a <var>TRasterImage</var> descendant which
implements the base class for TIcon. TIcon supports image files using the
<b>.ICO</b> file format. An .ICO file typically contains several images with
different sizes and/or color depths.
</p>
<p>
TCustomIcon extends the ancestor class to include an internal list of images,
and provides overridden methods which use the list of images in their
implementations. This includes the <var>ReadData</var> method used during LCL
component streaming. <var>ReadStream</var> is overridden to handle not only
multiple images but <b>PNG</b> and <b>DIB</b> image formats used in some Icon
files.
</p>
<p>
When loading an icon file, the largest/most colorful image is selected as the
current image. Other sizes and/or color depths are accessed by setting the
value in the <var>Current</var> property, or using <var>Size</var> when
Current is not already set, or by setting Current to the value from the
<var>GetBestIndexForSize</var> method.
</p>
<p>
Use the <var>Count</var>, <var>Add</var>, <var>Delete</var>,
<var>Remove</var>, <var>Clear</var>, and <var>AssignImage</var> methods to
maintain the images in the internal list.
</p>
<remark>
Please note that writing to an icon file is not currently implemented in
TCustomIcon (or descendent classes).
</remark>
</descr>
<seealso>
<link id="TRasterImage"/>
<link id="TIcon"/>
<link id="TSharedIcon"/>
</seealso>
</element>
<element name="TCustomIcon.GetCount">
<short>Gets the value for the Count property.</short>
<descr/>
<seealso>
<link id="TCustomIcon.Count"/>
<link id="TSharedIcon.Count"/>
<link id="TSharedIcon.Images"/>
</seealso>
</element>
<element name="TCustomIcon.GetCount.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomIcon.SetCurrent">
<short>Sets the value for the Current property.</short>
<descr/>
<seealso>
<link id="TCustomIcon.Current"/>
</seealso>
</element>
<element name="TCustomIcon.SetCurrent.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomIcon.FCurrent">
<short>
Local member variable used to hold the current sequence number.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.FRequestedSize">
<short>Member used for the requested icon size.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.MaskHandleNeeded">
<short>Ensures that a handle for the mask in the icon is valid.</short>
<descr/>
<seealso>
<link id="TRasterImage.MaskHandleNeeded"/>
</seealso>
</element>
<element name="TCustomIcon.PaletteNeeded">
<short>An empty implementation in TCustomIcon.</short>
<descr>
<p>
Palette information is handled in the .ICO image format.
</p>
</descr>
<seealso>
<link id="TRasterImage.PaletteNeeded"/>
</seealso>
</element>
<element name="TCustomIcon.CanShareImage">
<short>Indicates whether the image class type has a shared handle.</short>
<descr>
<p>
Determines whether the image class type can be shared. Returns
<b>True</b> when <var>AClass</var> is derived from <var>TSharedIcon</var>.
</p>
<p>
This is a temporary work-around to make Assign work with cursors, icons and
icnsicons.
</p>
</descr>
<seealso>
<link id="TRasterImage.CanShareImage"/>
</seealso>
</element>
<element name="TCustomIcon.CanShareImage.Result">
<short>Returns <b>True</b> when AClass is derived from TSharedIcon.</short>
</element>
<element name="TCustomIcon.CanShareImage.AClass">
<short/>
</element>
<element name="TCustomIcon.CheckRequestedSize">
<short>
<var>CheckRequestedSize</var> - method to ensure correct size requested.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.GetIndex">
<short>
<var>GetIndex</var> - returns the Index value of the Icon with specified
format and size (.icn files can contain several versions of image).
</short>
<descr>
<p>
Gets the ordinal position in the internal image list for the icon with the
specified pixel format, height, and width. The return value is <b>-1</b> if
an image using all of the requested values was not found in the list.
</p>
<p>
Assign the return value to the <var>Current</var> property to use it as the
selected image for the icon.
</p>
<p>
Use <var>GetBestIndexForSize</var> to find the position of the image which
matches most closely the specified height and width.
</p>
</descr>
<seealso>
<link id="TCustomIcon.Current"/>
<link id="TCustomIcon.GetBestIndexForSize"/>
<link id="TSharedIcon.GetIndex"/>
<link id="TSharedIcon.Images"/>
</seealso>
</element>
<element name="TCustomIcon.GetIndex.Result">
<short>
Ordinal position for the image with the requested attributes, or -1 when not
found.
</short>
</element>
<element name="TCustomIcon.GetIndex.AFormat">
<short>Color depth for the requested icon image.</short>
</element>
<element name="TCustomIcon.GetIndex.AHeight">
<short>Height for the requested icon image.</short>
</element>
<element name="TCustomIcon.GetIndex.AWidth">
<short>Width for the requested icon image.</short>
</element>
<element name="TCustomIcon.GetBitmapHandle">
<short>Gets the value for the BitmapHandle property.</short>
<descr>
<p>Implements the abstract method defined in the ancestor class.
</p>
</descr>
<seealso>
<link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.GetBitmapHandle"/>
</seealso>
</element>
<element name="TCustomIcon.GetBitmapHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomIcon.GetDefaultSize">
<short>
<var>GetDefaultSize</var> - returns default size for Icon.
</short>
<descr>
<p>
<var>GetDefaultSize</var> is a <var>TSize</var> class function used to get
the default size in new instances of the class. The return value uses the
SM_CXICON and SM_CYICON values returned from the GetSystemMetrics function in
its cx and cy members.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomIcon.GetDefaultSize.Result">
<short>TSize instance with the default width and height for an icon.</short>
</element>
<element name="TCustomIcon.GetMaskHandle">
<short>Gets the value for the MaskHandle property.</short>
<descr>
<p>
<var>GetMaskHandle</var> implements the abstract method defined in the
ancestor class.
</p>
</descr>
<seealso>
<link id="TRasterImage.MaskHandle"/>
<link id="TRasterImage.GetMaskHandle"/>
</seealso>
</element>
<element name="TCustomIcon.GetMaskHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomIcon.GetPalette">
<short>Gets the value for the Palette property.</short>
<descr/>
<seealso>
<link id="TGraphic.Palette"/>
<link id="TGraphic.GetPalette"/>
</seealso>
</element>
<element name="TCustomIcon.GetPalette.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomIcon.GetPixelFormat">
<short>Gets the value for the PixelFormat property.</short>
<descr>
<p>Implements the abstract virtual method defined in the ancestor class.
</p>
</descr>
<seealso>
<link id="TRasterImage.PixelFormat"/>
<link id="TRasterImage.GetPixelFormat"/>
</seealso>
</element>
<element name="TCustomIcon.GetPixelFormat.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomIcon.GetRawImagePtr">
<short>Gets a pointer to the raw image data for the icon.</short>
<descr>
<p>
<var>GetRawImagePtr</var> is an overridden method used to get a pointer to
the raw image data for the icon image. The return value is a
<var>PRawImage</var> type which points to the data in a <var>TIconImage</var>
instance in the shared image list for the icon.
</p>
<p>
GetRawImagePtr uses the value in <var>Current</var> to determine which image
is retrieved from the internal image list. When Current is <b>-1</b>, the
return value is <b>Nil</b>. Otherwise, the shared icon image at the position
in Current is accessed to get the return value for the method.
</p>
<p>
GetRawImagePtr is called from <var>AssignImage</var> a raw image is assigned
to the icon. It is also used to get mask image data in the
<var>MaskHandleNeeded</var> method.
</p>
</descr>
<seealso>
<link id="TCustomIcon.Current"/>
<link id="TCustomIcon.AssignImage"/>
<link id="TCustomIcon.MaskHandleNeeded"/>
<link id="TIconImage"/>
<link id="TRasterImage.GetRawImagePtr"/>
</seealso>
</element>
<element name="TCustomIcon.GetRawImagePtr.Result">
<short>
Pointer to the raw image data, or Nil when Current is not assigned.
</short>
</element>
<element link="#lcl.graphics.TRasterImage.GetRawImageDescriptionPtr" name="TCustomIcon.GetRawImageDescriptionPtr">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.GetRawImageDescriptionPtr.Result">
<short/>
</element>
<element link="#lcl.graphics.TGraphic.GetTransparent" name="TCustomIcon.GetTransparent">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.GetTransparent.Result">
<short/>
</element>
<element link="#lcl.graphics.TRasterImage.GetSharedImageClass" name="TCustomIcon.GetSharedImageClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.GetSharedImageClass.Result">
<short/>
</element>
<element name="TCustomIcon.GetStreamSignature">
<short>Gets the stream signature used for icon data.</short>
<descr>
<p>
<var>GetStreamSignature</var> is a <var>Cardinal</var> class function used to
get the signature which identifies the image content when stored in a stream.
GetStreamSignature is used in the implementation of the <var>ReadData</var>
method which reads the values for the class instance during LCL component
streaming.
</p>
<p>
GetStreamSignature is defined as a virtual method, and is overridden in
<var>TIcon</var> to use the value required for the icon image format.
</p>
</descr>
<seealso>
<link id="TIcon"/>
</seealso>
</element>
<element name="TCustomIcon.GetStreamSignature.Result">
<short>Cardinal value with the stream signature for the class.</short>
</element>
<element name="TCustomIcon.GetTypeID">
<short>Gets the icon type identifier used in the image list header.
</short>
<descr>
<p>
<var>GetTypeId</var> is a <var>Word</var> class function used to get the
image type identifier used for icon images. It is used in the implementation
of the
<var>WriteStream</var> method, and provides the value stored in the icon
image header.
</p>
<p>
Since TCustomIcon instances are not included in component streaming, the
return value is always returns <b>0</b>. GetTypeId is overridden in
<var>TIcon</var> to provide the value used in the derived class.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomIcon.GetTypeID.Result">
<short>Type identifier for images in the icon.</short>
</element>
<element name="TCustomIcon.HandleNeeded">
<short>Ensures that a handle for the image has been allocated.</short>
<descr>
<p>
<var>HandleNeeded</var> is an overridden procedure used to ensure that a
handle for the image has been allocated. HandleNeeded re-implements the
method defined in the ancestor class.
</p>
<p>
No actions are performed in the method when a valid valid has already been
assigned to the shared image in the class instance.
</p>
<p>
HandleNeeded calls the <var>CreateIconIndirect</var> routine for the
widgetset to get the value used as the Handle for the shared image.
</p>
</descr>
<seealso>
<link id="TRasterImage.HandleNeeded"/>
</seealso>
</element>
<element link="#lcl.graphics.TRasterImage.InternalReleaseBitmapHandle" name="TCustomIcon.InternalReleaseBitmapHandle">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.InternalReleaseBitmapHandle.Result">
<short/>
</element>
<element link="#lcl.graphics.TRasterImage.InternalReleaseMaskHandle" name="TCustomIcon.InternalReleaseMaskHandle">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.InternalReleaseMaskHandle.Result">
<short/>
</element>
<element link="#lcl.graphics.TRasterImage.InternalReleasePalette" name="TCustomIcon.InternalReleasePalette">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCustomIcon.InternalReleasePalette.Result">
<short/>
</element>
<element name="TCustomIcon.IsStreamFormatSupported">
<short>
Indicates whether the specified stream contains image data with a format
supported for use in derived TCustomIcon classes.
</short>
<descr>
<p>
<var>IsStreamFormatSupported</var> is an overridden <var>Boolean</var> class
function in <var>TCustomIcon</var> used to check whether the image data stored
in <var>Stream</var> uses the StreamSignature required for an icon class
instance. It overrides the method implemented in TGraphic which always returns
<b>False</b>. While IsStreamFormatSupported() has been implemented for other
graphics classes like TPortableNetworkGraphics, TBitmap, TJpegImage, etc., it
was missing in TCustomIcon and its descendants TIcon and TCursorImage in
versions prior to LCL 4.4.
</p>
<p>
IsStreamFormatSupported returns <b>True</b> if the data stored in Stream
starts with the four byte StreamSignature required for an icon class instance.
The position in Stream is saved before reading the byte values, and restored
when the read operation is complete.
</p>
<p>
Please note that TCustomIcon does <b>not</b> define the value for
StreamSignature - it is defined in descendent classes like TIcon and
TCursorImage which implement custom GetStreamSignature methods for the image
types.
</p>
</descr>
<version>
Added in LCL version 4.4.
</version>
<seealso>
<link id="TCustomIcon.GetStreamSignature"/>
<link id="TIcon.GetStreamSignature"/>
<link id="TCursorImage.GetStreamSignature"/>
<link id="TGraphic.IsStreamFormatSupported"/>
<link id="TGraphicClass"/>
<link id="TPicture.Graphic"/>
<link id="GetGraphicClassForFileExtension"/>
</seealso>
</element>
<element name="TCustomIcon.IsStreamFormatSupported.Stream">
<short>
TStream instance with the image data examined in the method.
</short>
</element>
<element name="TCustomIcon.IsStreamFormatSupported.Result">
<short>
Returns <b>True</b> if the stream starts with the StreamSignature needed for
a graphic class type.
</short>
</element>
<element name="TCustomIcon.ReadData">
<short>Reads data for the class instance from a stream.</short>
<descr>
<p>
<var>ReadData</var> is an overridden method used to read the data for the
class instance from the TStream instance specified in <var>Stream</var>.
ReadData is the method called when TFiler reads a persistent object during
LCL component streaming.
</p>
<p>
ReadData saves the position in Stream on entry, and restores the original
position prior to exiting from the method.
</p>
<p>
ReadData checks the values in Stream to determine if a size prefix for the
content is stored in the stream. Delphi streaming does not include the size
prefix. Current Lazarus versions do. When the <var>LongInt</var> value used
as the StreamSignature is 0, the LoadFromStream method is called to load the
contents of the stream. Otherwise, the inherited method is called to complete
the operation.
</p>
<p>
ReadData is also called from the <var>LoadFromResourceHandle</var> method in
<var>TIcon</var>.
</p>
</descr>
<seealso>
<link id="TRasterImage.ReadData"/>
<link id="TGraphic.ReadData"/>
<link id="TIcon.LoadFromResourceHandle"/>
<link id="#rtl.classes.TFiler">TFiler</link>
</seealso>
</element>
<element name="TCustomIcon.ReadData.Stream">
<short/>
</element>
<element name="TCustomIcon.ReadStream">
<short>Reads the content for the icon from the specified stream.</short>
<descr>
<p>
<var>ReadStream</var> is an overridden procedure used to read the content for
the icon from the stream specified in <var>AStream</var>. ReadStream
implements the abstract virtual method defined in the ancestor class.
</p>
<p>
ReadStream verifies that AStream contains an icon image by checking for
header value(s) that are valid for .ICO data. If the header values are not
found, an <var>EInvalidGraphic</var> exception is raised.
</p>
<p>
For icon data, the icon directory must be read from the stream. The header
contains the number of icon directory entries included in the stream. The
icon directory entries are read from AStream, and include values for each
icon image that includes:
</p>
<ul>
<li>HotSpotX</li>
<li>HotSpotY</li>
<li>BytesInRes</li>
<li>ImageOffset</li>
</ul>
<p>
ReadStream positions the stream, and reads image data for the each of the
icon directory entries. It handles both DIB Bitmap and PNG (used in Windows
Vista) image data for the icon images. An FCL-compatible image reader is
created as required for the image type, and a <var>TLazIntfImage</var>
instance is used to capture the raw image data from the stream. Images read
from the stream are added to the internal list of images in the
<var>TSharedIcon</var> member for the class instance.
</p>
<p>
ReadStream calls <var>CheckRequestedSize</var> to use the <var>Width</var>
and/or <var>Height</var> specified in the class instance.
<var>GetBestIndexForSize</var> is called to determine the value in
<var>Current</var> with the requested image size.
</p>
</descr>
<seealso>
<link id="TRasterImage.ReadStream"/>
</seealso>
</element>
<element name="TCustomIcon.ReadStream.AStream">
<short>Stream instance with the image content read in the method.</short>
</element>
<element name="TCustomIcon.ReadStream.ASize">
<short>Number of bytes expected for the icon data.</short>
</element>
<element name="TCustomIcon.SetMasked">
<short>Sets the value for the Masked property.</short>
<descr>
<p>
<var>SetMasked</var> is an empty implementation in <var>TCustomIcon</var>.
</p>
</descr>
<seealso>
<link id="TRasterImage.Masked"/>
</seealso>
</element>
<element name="TCustomIcon.SetMasked.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomIcon.SetPixelFormat">
<short>Sets the value for the PixelFormat property.</short>
<descr>
<p>
Changing the value for <var>PixelFormat</var> raises an
<var>EInvalidGraphicOperation</var> exception in <var>TCustomIcon</var>.
</p>
</descr>
<seealso>
<link id="TRasterImage.SetPixelFormat"/>
<link id="TRasterImage.PixelFormat"/>
</seealso>
</element>
<element name="TCustomIcon.SetPixelFormat.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomIcon.SetTransparent">
<short>Sets the value for the Transparent property.</short>
<descr>
<p>
<var>SetTransparent</var> is an empty implementation in
<var>TCustomIcon</var>.
</p>
</descr>
<seealso>
<link id="TGraphic.Transparent"/>
<link id="TRasterImage.SetTransparent"/>
</seealso>
</element>
<element name="TCustomIcon.SetTransparent.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomIcon.UnshareImage">
<short>
Unshares the shared image when the content in the icon is changed.
</short>
<descr>
<p>
<var>UnshareImage</var> is an overridden procedure used to stop sharing the
image(s) for the icon. UnshareImage implements the abstract virtual method
defined in the ancestor class.
</p>
<p>
No actions are performed in the method when the <var>RefCount</var> for the
internal <var>TSharedIcon</var> instance is less than <b>1</b>.
</p>
<p>
When sharing is stopped, the internal TSharedIcon instance in the class is
re-created.
</p>
<p>
<var>CopyContent</var> indicates whether existing content from icon images is
copied into the new image list. When set to <b>True</b>,
<var>TIconImage</var> instances are re-created for each of the icon images
and their existing content is copied. When set to <b>False</b>, image data
for the icon is empty.
</p>
<p>
UnshareImage calls <var>FreeCanvasContext</var> to discard the device context
used in the Canvas.
</p>
<p>
UnshareImage calls the <var>Release</var> method for the old TSharedIcon
instance.
</p>
<p>
UnshareImage is called from methods which alter the handle or image content
for the icon, including:
</p>
<ul>
<li>SetHandle</li>
<li>Add</li>
<li>Assign</li>
<li>AssignImage</li>
<li>Delete</li>
</ul>
</descr>
<seealso>
<link id="TRasterImage.UnshareImage"/>
</seealso>
</element>
<element name="TCustomIcon.UnshareImage.CopyContent">
<short><b>True</b> if existing image content is copied in the method.</short>
</element>
<element name="TCustomIcon.UpdateCurrentView">
<short>
<var>UpdateCurrentView</var> - updates the current appearance of the Icon.
</short>
<descr>
<p>
<var>UpdateCurrentView</var> is a procedure used to refresh the canvas when
an icon image has been modified. UpdateCurrentView frees the device context
(or handle) for the <var>Canvas</var>, and calls the <var>Changed</var>
method.
</p>
<p>
UpdateCurrentView is called from methods like <var>Add</var> and
<var>Delete</var>, and when a new icon image is selected by setting the value
in the <var>Current</var> property.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomIcon.SetHandle">
<short>
Unshares an existing shared image handle and set the new value.
</short>
<descr>
<p>
<var>SetHandle</var> is a method used to set set the value for the shared
image handle in the icon instance. It ensures that an existing shared image
handle frees both its canvas context and the data in its TSharedImage instance.
</p>
<p>
It calls UpdateHandle to set the new shared handle for the icon instance to
AValue. Values in Current and Count are reset when the handle is changed.
Current is set 0 when multiple images are used in the icon. It is set to -1
when a single image is present. Changed is called to update the value in
Modified and signal the OnChange event handler (when assigned).
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the AValue parameter.
</version>
<seealso>
<link id="TRasterImage.SetHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TCustomIcon.SetHandle.AValue">
<short>
New value for the shared image handle in the icon.
</short>
</element>
<element name="TCustomIcon.UpdateHandle">
<short>
Updates the handle in the shared icon image top the specified value.
</short>
<descr>
<p>
<var>UpdateHandle</var> is a <var>Boolean</var> function used to update the
shared icon image when the handle specified in <var>AValue</var> differs from
the handle in the shared image.
</p>
<p>
The return value is <b>True</b> when the handles have different values on
entry. UpdateHandle calls the <var>UpdateFromHandle</var> method in the
<var>TSharedIcon</var> instance using AValue as an argument.
</p>
<p>
No actions are performed in the method when the return value is <b>False</b>.
</p>
<p>
UpdateHandle is called when a new value is assigned to the <var>Handle</var>
property.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomIcon.UpdateHandle.Result">
<short>
<b>True</b> when the handle in the icon is different that the handle in the
shared icon image.
</short>
</element>
<element name="TCustomIcon.UpdateHandle.AValue">
<short>Handle compared to the shared icon image.</short>
</element>
<element name="TCustomIcon.UpdateHandles">
<short>
Sets the Bitmap and Mask handles for the current image in the icon.
</short>
<descr>
<p>
<var>UpdateHandles</var> is an overridden method used to set the Bitmap and
Mask handles for the
<var>Current</var> icon image to the specified values. UpdateHandles
implements the abstract virtual method defined in the ancestor class.
</p>
<p>
UpdateHandles uses the value in <var>Current</var> to determine the
<var>TIconImage</var> in the internal image list that is updated in the
method.
</p>
<p>
When Current is set to <b>-1</b>, an icon image has not been selected and no
actions are performed in the method. The return value is <b>False</b> if the
handles could not be applied to icon image.
</p>
<p>
UpdateHandles calls the <var>UpdateHandles</var> method for the TIconImage
indicated in Current using the values in <var>ABitmap</var> and
<var>AMask</var> as arguments. The return value is <b>True</b> if the handles
are successfully applied to the icon image.
</p>
<p>
UpdateHandles is called from methods like:
</p>
<ul>
<li>BitmapHandleNeeded</li>
<li>MaskHandleNeeded</li>
<li>UpdateHandle</li>
<li>Assign</li>
</ul>
</descr>
<seealso>
<link id="TRasterImage.UpdateHandles"/>
</seealso>
</element>
<element name="TCustomIcon.UpdateHandles.Result">
<short>
<b>True</b> if the new handles are successfully applied to the icon image.
</short>
</element>
<element name="TCustomIcon.UpdateHandles.ABitmap">
<short>Bitmap handle for the current image in the icon.</short>
</element>
<element name="TCustomIcon.UpdateHandles.AMask">
<short>Mask handle for the current image in the icon.</short>
</element>
<element name="TCustomIcon.WriteStream">
<short>
Writes the content for the multi-image icon to the specified stream.
</short>
<descr>
<p>
<var>WriteStream</var> is an overridden method used to write the content for
the multi-image icon to the stream specified in
<var>AStream</var>. WriteStream implements the abstract virtual method
defined in the ancestor class.
</p>
<p>
WriteStream performs actions needed to write the header, icon directory, and
content for each of the images used in the multi-image icon to the
TMemoryStream instance. It handles both PNG and DIB Bitmap icon images, and
creates Mask data for images when it is not already present.
</p>
<p>
For icon images used in <var>TCursorImage</var>, the X and Y coordinates for
the HotSpot are also included in the image data.
</p>
<p>
WriteStream is called from <var>SaveStreamNeeded</var> when the
<var>SaveToStream</var> method is performed.
</p>
</descr>
<seealso>
<link id="TRasterImage.WriteStream"/>
</seealso>
</element>
<element name="TCustomIcon.WriteStream.AStream">
<short>TMemoryStream instance where icon data is stored.</short>
</element>
<element name="TCustomIcon.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance, and
calls the inherited constructor on entry. Create sets the default values for
properties, including:
</p>
<dl>
<dt>Current</dt>
<dd>Set to -1 to indicate that an icon image has not been selected.</dd>
<dt>Masked</dt>
<dd>
Set to <b>True</b>. By definition, an icon is masked. Does not account for
icon images with an alpha channel.
</dd>
</dl>
<p>
Create initializes the internal member used to track the size for a requested
icon.
</p>
</descr>
<seealso>
<link id="TCustomIcon.Current"/>
<link id="TRasterImage.Masked"/>
<link id="TGraphic.Create"/>
</seealso>
</element>
<element name="TCustomIcon.Add">
<short>
<var>Add</var> - an Icon formatted as <var>AFormat</var>, with specified
<var>Height</var> and <var>Width</var>.
</short>
<descr>
<p>
<var>Add</var> is procedure used to create an image for the icon with the
attributes specified in <var>AFormat</var>, <var>AHeight</var>, and
<var>AWidth</var>. Add calls <var>GetIIndex</var> to determine if an icon
image with the requested attributes already exists in the image list for the
icon. An <var>EInvalidGraphicOperation</var> exception is raised when the
image already exists in the internal image list.
</p>
<p>
Add calls <var>UnshareImage</var> to release the shared image handle, and
adds a new image class instance to the shared icon. If the icon image is the
first one in the list, the value in <var>Current</var> is set to <b>0</b>
(<b>zero</b>) and the <var>UpdateCurrentView</var> method is called.
</p>
<p>
Use Current to make an icon image active for the class instance. Use
<var>AssignImage</var> to store the image at the position in Current.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomIcon.Add.AFormat">
<short>Pixel format (color depth) for the icon image.</short>
</element>
<element name="TCustomIcon.Add.AHeight">
<short>Height in pixels for the icon image.</short>
</element>
<element name="TCustomIcon.Add.AWidth">
<short>Width in pixels for the icon image.</short>
</element>
<element name="TCustomIcon.Assign">
<short>
Copies values from the specified persistent object into the current class
instance.
</short>
<descr>
<p>
<var>Assign</var> is an overridden method used to copy values from the
persistent object in <var>Source</var> into the current class instance.
Assign calls <var>BeginUpdate</var> to increment the active update counter,
and calls <var>EndUpdate</var> prior to exiting from the method.
</p>
<p>
Assign handles specific class types in Source, including:
</p>
<dl>
<dt>TRasterImage</dt>
<dd>
Calls Clear to remove existing image content, and calls Add to create and
icon image with the attributes in the PixelFormat, Height, and Width
properties in Source. Calls AssignImage to store the image content from
Source in the icon image. If the shared image class in Source is different
than the one for the current class instance, UnshareImage is called.
</dd>
<dt>TCustomIcon</dt>
<dd>
Sets the value in Current to the value found in Source.
</dd>
</dl>
<p>
When Source is derived from another class type, the inherited Assign method
is called.
</p>
</descr>
<seealso>
<link id="TRasterImage.Assign"/>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TCustomIcon.Assign.Source">
<short>
Persistent object with values copied into the current class instance.
</short>
</element>
<element name="TCustomIcon.AssignImage">
<short>
Copies image data from the source image to the current icon image.
</short>
<descr>
<p>
<var>AssignImage</var> is used to copy image data from <var>ASource</var> to
the currently selected image for the icon.
</p>
<p>
AssignImage is typically used to assign the icon image when <var>Add</var> is
used to create a new icon image with the required attributes (PixelFormat,
Height, Width). AssignImage is called from the <var>Assign</var> method to
store a single raster image to the icon.
</p>
</descr>
<seealso>
<link id="TCustomIcon.Add"/>
<link id="TCustomIcon.Assign"/>
</seealso>
</element>
<element name="TCustomIcon.AssignImage.ASource">
<short>Image with the values assigned to the current icon image.</short>
</element>
<element name="TCustomIcon.Clear">
<short>Removes the image content for the icon.</short>
<descr>
<p>
<var>Clear</var> is an overridden method used to remove the image content for
the icon. Clear frees the internal save stream for the image. The internal
shared image is also freed and re-created. The value in <var>Current</var> is
set to <b>-1</b> to indicate that an icon image has not been selected.
</p>
<p>
Clear calls the <var>Changed</var> method to set the value in
<var>Modified</var> and signal the <var>OnChange</var> event handler (when
assigned).
</p>
<p>
No actions are performed in the method when <var>Empty</var> returns
<b>True</b>.
</p>
<remark>
Clear does not call the method inherited from TRasterImage.
</remark>
</descr>
<seealso>
<link id="TRasterImage.Clear"/>
</seealso>
</element>
<element name="TCustomIcon.Delete">
<short>
Deletes the image at the specified position in the list of images for the
icon.
</short>
<descr>
<p>
<var>Delete</var> is a procedure used to delete the icon image at the ordinal
position specified in <var>AIndex</var> from the list of images for the icon.
</p>
<p>
Delete calls <var>UnshareImage</var> to stop sharing the image list for the
icon. A copy of the images is kept and restored when the Delete method in
TSharedIcon has removed the image at the specified position.
</p>
<p>
When AIndex is also the <var>Current</var> image for the icon, Current is set
to <b>-1</b> and the <var>UpdateCurrentView</var> method is called.
Otherwise, the value in Current is decremented.
</p>
<p>
Use <var>Remove</var> to delete an icon image with specific PixelFormat,
Height, and Width values.
</p>
<p>
Use <var>Add</var> to add an icon image with specific PixelFormat, Height,
and Width values.
</p>
<p>
Use <var>Count</var> to determine the number of images in the list of images
for the icon.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomIcon.Delete.AIndex">
<short>Ordinal position for the icon image deleted in the method.</short>
</element>
<element name="TCustomIcon.Remove">
<short>Removes an icon image with the specified attributes.</short>
<descr>
<p>
<var>Remove</var> is used to locate and delete an icon image with the
attributes specified in <var>AFormat</var>, <var>AHeight</var>, and
<var>AWidth</var>.
</p>
<p>
Remove calls <var>GetIndex</var> to get the position in the internal image
list where the icon image with the specified attributes is stored. If an
image is found, the <var>Delete</var> method is called to the remove the icon
image.
</p>
<p>
The value in <var>Current</var> is modified when it represents an icon image
affected by the removal. Current is set to <b>-1</b> when it contains the
index for the icon image removed in the method.
</p>
</descr>
<seealso>
<link id="TCustomIcon.GetIndex"/>
<link id="TCustomIcon.Delete"/>
<link id="TCustomIcon.Current"/>
<link id="TCustomIcon.Count"/>
</seealso>
</element>
<element name="TCustomIcon.Remove.AFormat">
<short>Pixel format (color depth) for the icon image.</short>
</element>
<element name="TCustomIcon.Remove.AHeight">
<short>Height for the icon image.</short>
</element>
<element name="TCustomIcon.Remove.AWidth">
<short>Width for the icon image.</short>
</element>
<element name="TCustomIcon.GetDescription">
<short>
Gets metadata which describes the icon image at the specified position in the
image list.
</short>
<descr>
<p>
<var>GetDescription</var> is used to get image metadata which describes the
icon image at the position specified in <var>AIndex</var>.
<var>AFormat</var>, <var>AHeight</var>, and <var>AWidth</var> are output
parameters where the corresponding values from the <var>TIconImage</var>
instance are stored.
</p>
<p>
GetDescription accesses the image list in the internal <var>TSharedIcon</var>
instance used in the class.
</p>
</descr>
<seealso>
<link id="TIconImage"/>
<link id="TSharedIcon"/>
<link id="TPixelFormat"/>
</seealso>
</element>
<element name="TCustomIcon.GetDescription.AIndex">
<short>
<var>Aindex</var> - the Index value for the Icon.</short>
</element>
<element name="TCustomIcon.GetDescription.AFormat">
<short>
<var>AFormat</var> - the Pixel Format for the Icon.</short>
</element>
<element name="TCustomIcon.GetDescription.AHeight">
<short>
<var>AHeight</var> - the height of the Icon.</short>
</element>
<element name="TCustomIcon.GetDescription.AWidth">
<short>
<var>AWidth</var> - the width of the Icon.</short>
</element>
<element name="TCustomIcon.SetSize">
<short>Sets the size (width, height) for the image in the Icon.</short>
<descr>
<p>
<var>SetSize</var> is an overridden method used to set the size for the image
in the icon to the values specified in <var>AWidth</var> and
<var>AHeight</var>. SetSize implements the abstract virtual method defined in
the ancestor class. SetSize stores the argument values in an internal member
used to track the requested icon image size used in the
<var>GetBestIndexForSize</var> method.
</p>
<p>
SetSize raises an <var>EInvalidGraphicOperation</var> exception when an icon
size has been selected by setting a value in the <var>Current</var> property.
</p>
<p>
SetSize is called from the <var>ReadStream</var> method.
</p>
</descr>
<errors>
Raises an EInvalidGraphicOperation with the message in rsIconImageSizeChange
when Current contains a value other than -1.
</errors>
<seealso>
<link id="TCustomIcon.Current"/>
<link id="TCustomIcon.ReadStream"/>
<link id="TCustomIcon.GetBestIndexForSize"/>
<link id="TRasterImage.SetSize"/>
<link id="EInvalidGraphicOperation"/>
<link id="rsIconImageSizeChange"/>
</seealso>
</element>
<element name="TCustomIcon.SetSize.AWidth">
<short>New Width for the icon.</short>
</element>
<element name="TCustomIcon.SetSize.AHeight">
<short>New Height for the icon.</short>
</element>
<element name="TCustomIcon.GetFileExtensions">
<short>
Gets a delimited list of file extensions supported for the image type.
</short>
<descr>
<p>
<var>GetFileExtensions</var> is an overridden <var>String</var> class
function used to get a delimited list of file extensions supported for the
image type. In <var>TCustomIcon</var> and <var>TIcon</var>, the return value
is always <b>'ico'</b>.
</p>
</descr>
<seealso>
<link id="TGraphic.GetFileExtensions"/>
</seealso>
</element>
<element name="TCustomIcon.GetFileExtensions.Result">
<short>Delimited list of file extensions supported for the image type.</short>
</element>
<element name="TCustomIcon.LazarusResourceTypeValid">
<short>
Determines if the specified resource type is valid for the image format.
</short>
<descr>
<p>
<var>LazarusResourceTypeValid</var> is an overridden Boolean function used to
determine if the specified resource type is valid for the image format.
</p>
<p>
The return value is <b>True</b> when <var>ResourceType</var> contains
<b>'ICO'</b> or <b>'ICON'</b>. The inherited method is called to get the
return value when ResourceType contains any other resource type name. Case is
not significant when comparing the value in ResourceType; it is converted to
uppercase in the method.
</p>
</descr>
<seealso>
<link id="TGraphic.LazarusResourceTypeValid"/>
<link id="TCustomBitmap.LazarusResourceTypeValid"/>
<link id="TFPImageBitmap.LazarusResourceTypeValid"/>
<link id="TIcnsIcon.LazarusResourceTypeValid"/>
<link id="TCursorImage.LazarusResourceTypeValid"/>
</seealso>
</element>
<element name="TCustomIcon.LazarusResourceTypeValid.Result">
<short>
<b>True</b> when the resource type identifier is valid for the image format.
</short>
</element>
<element name="TCustomIcon.LazarusResourceTypeValid.ResourceType">
<short>Resource type identifier examined in the method.</short>
</element>
<element name="TCustomIcon.LoadFromResourceName">
<short>
Loads the icon with the specified resource name from the instance handle.
</short>
<descr>
<p>
<var>LoadFromResourceName</var> is an overridden procedure used to load a
resource with the name specified in <var>ResName</var> using the handle
provided in <var>Instance</var>. LoadFromResourceName re-implements the method
defined in the ancestor class, and does not call the inherited method.
</p>
<p>
LoadFromResourceName calls <var>GetResourceType</var> to get the
<var>Integer</var> resource type used in the class instance. No actions are
performed in the method when the <var>TResourceType</var> value is unassigned
(contains <b>Nil</b>).
</p>
<p>
LoadFromResourceName calls <var>FindResource</var> to get the resource handle
needed in the method. An <var>EResNotFound</var> exception is raised if a
resource with the specified name and type is not found in FindResource.
</p>
<p>
LoadFromResourceName calls <var>LoadFromResourceHandle</var> to load the icon
using the Instance and resource handle values.
</p>
<p>
Use <var>LoadFromResourceID</var> to load a resource by its Resource ID.
</p>
<p>
Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
<b>.lrs</b> file with a give name.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TCustomIcon.LoadFromResourceHandle"/>
<link id="TGraphic.GetResourceType"/>
<link id="#lcl.lcltype.TResourceType">TResourceType</link>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TCustomIcon.LoadFromResourceName.Instance">
<short>Handle where the content for the resource is stored.</short>
</element>
<element name="TCustomIcon.LoadFromResourceName.ResName">
<short>Name for the resource loaded in the method.</short>
</element>
<element name="TCustomIcon.LoadFromResourceID">
<short>
Load icon data from a resource with the specified integer resource identifier.
</short>
<descr>
<p>
<var>LoadFromResourceID</var> is an overridden procedure used to load a
resource with the specified Resource ID into the class instance.
LoadFromResourceID re-implements the method defined in the ancestor class,
and does not call the inherited method.
</p>
<p>
<var>Instance</var> contains the handle used to read the resource.
<var>ResID</var> contains an Integer pointer to the resource identifier
loaded in the method.
</p>
<p>
LoadFromResourceID calls <var>GetResourceType</var> to get the
<var>Integer</var> resource type used in the class instance. No actions are
performed in the method when the <var>TResourceType</var> value is unassigned
(contains <b>Nil</b>).
</p>
<p>
LoadFromResourceName calls <var>FindResource</var> to get the resource handle
needed in the method. An <var>EResNotFound</var> exception is raised if a
resource with the specified ID and type is not found in FindResource.
</p>
<p>
LoadFromResourceName calls <var>LoadFromResourceHandle</var> to load the icon
using the Instance and resource handle values.
</p>
<p>
Use <var>LoadFromResourceName</var> to load a resource with a given resource
name.
</p>
<p>
Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
<b>.lrs</b> file with a give name.
</p>
</descr>
<errors>
Raises an EResNotFound exception if the resource handle for the specified ID
and type is not valid.
</errors>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TCustomIcon.LoadFromResourceID.Instance">
<short>Handle where the content for the resource is stored.</short>
</element>
<element name="TCustomIcon.LoadFromResourceID.ResID">
<short>Integer resource identifier loaded in the method.</short>
</element>
<element name="TCustomIcon.LoadFromResourceHandle">
<short>
Loads icon data from the specified instance and resource handles.
</short>
<descr>
<p>
LoadFromResourceHandle has an empty implementation in TCustomIcon. It is
re-implemented in TIcon descendant.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TIcon.LoadFromResourceHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TCustomIcon.LoadFromResourceHandle.Instance">
<short>Handle with the resource data loaded in the method.</short>
</element>
<element name="TCustomIcon.LoadFromResourceHandle.ResHandle">
<short>Resource handle with the icon data loaded in the method.</short>
</element>
<element name="TCustomIcon.BitmapHandleAllocated">
<short>Indicates if a handle for the icon image has been allocated.</short>
<descr>
<p>
<var>BitmapHandleAllocated</var> is an overridden <var>Boolean</var> function
which indicates if a handle for the icon image has been allocated in the
class instance. BitmapHandleAllocated implements the abstract virtual method
defined in the ancestor class.
</p>
<p>
The return value is <b>True</b> when <var>Current</var> has a valid image
index for the icon image, and the handle for the <var>TIconImage</var> in the
shared icon has a <b>non-zero</b> value.
</p>
<p>
BitmapHandleAllocated is called from methods that required a valid image
handle prior to performing actions using the image data. For example:
</p>
<ul>
<li>Assign</li>
<li>BitmapHandleNeeded</li>
<li>MaskHandleNeed</li>
<li>Draw</li>
<li>EndUpdate</li>
<li>SetMaskHandle</li>
</ul>
</descr>
<seealso>
<link id="TRasterImage.BitmapHandleAllocated"/>
</seealso>
</element>
<element name="TCustomIcon.BitmapHandleAllocated.Result">
<short>
<b>True</b> when a valid handle has been assigned for the shared icon image.
</short>
</element>
<element name="TCustomIcon.MaskHandleAllocated">
<short>
<b>True</b> if a handle has been allocated for the mask in the image.
</short>
<descr>
<p>
<var>MaskHandleAllocated</var> is an overridden method used to determine if a
handle for the image mask has been allocated in the class instance.
MaskHandleAllocated implements the abstract virtual method defined in the
ancestor class.
</p>
<p>
The return value is <var>True</var> when <var>Current</var> contains a value
other than -1, and the <var>MaskHandle</var> for the <var>TIconImage</var> in
the shared image list has a non-zero value.
</p>
<p>
MaskHandleAllocated is called from methods that required a valid handle prior
to performing actions using the mask image data. For example:
</p>
<ul>
<li>Assign</li>
<li>AssignImage</li>
<li>BitmapHandleNeeded</li>
<li>MaskHandleNeeded</li>
<li>CreateMask</li>
<li>SetTransparentColor</li>
<li>SetBitmapHandle</li>
<li>SetMaskHandle</li>
</ul>
</descr>
<seealso>
<link id="TCustomIcon.Assign"/>
<link id="TCustomIcon.AssignImage"/>
<link id="TCustomIcon.MaskHandleNeeded"/>
<link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.Mask"/>
<link id="TRasterImage.MaskHandle"/>
<link id="TRasterImage.MaskHandleAllocated"/>
</seealso>
</element>
<element name="TCustomIcon.MaskHandleAllocated.Result">
<short>
<b>True</b> when the MaskHandle has been allocated for the icon image.
</short>
</element>
<element name="TCustomIcon.PaletteAllocated">
<short>
Determine if a handle has been allocated for the Palette in the icon.
</short>
<descr>
<p>
<var>PaletteAllocated</var> is an overridden method used to determine if a
handle has been allocated for the Palette in the icon image. PaletteAllocated
implements the abstract virtual method defined in the ancestor class.
</p>
<p>
The return value is <b>True</b> when <var>Current</var> contains a value
other than <b>-1</b>, and the palette handle in the <var>TIconImage</var>
instance for the shared icon image has a <b>non-zero</b> value.
</p>
<remark>
While provided as property in TCustomIcon, Palette is never assigned in the
TIconImage class instances used to represent the individual images in the
icon. Effectively, Palette is not implemented for TCustomIcon and
PaletteAllocated will always return <b>False</b>.
</remark>
</descr>
<seealso>
<link id="TRasterImage.PaletteAllocated"/>
<link id="TSharedIcon"/>
<link id="TIconImage.Palette"/>
</seealso>
</element>
<element name="TCustomIcon.PaletteAllocated.Result">
<short>
<b>True</b> when the Palette handle has been allocated for the icon.
</short>
</element>
<element name="TCustomIcon.SetHandles">
<short>Not implemented in TCustomIcon.</short>
<descr>
<p>SetHandles has an empty implementation in TCustomIcon.
</p>
</descr>
<seealso>
<link id="TRasterImage.SetHandles"/>
</seealso>
</element>
<element name="TCustomIcon.SetHandles.ABitmap">
<short>Handle for the Bitmap in the icon.</short>
</element>
<element name="TCustomIcon.SetHandles.AMask">
<short>Handle for the Mask in the icon.</short>
</element>
<element name="TCustomIcon.Sort">
<short>Sorts the images for the icon.</short>
<descr>
<p>
Sorts images in the internal image list for the icon. The <var>Sort</var>
method in <var>TSharedIcon</var> is called to perform the sort, and compares
the Width/PixelFormat values in the images to determine the sort order.
Preference is given to the value in Width; if two items have the same Width,
the value in PixelFormat is used for the comparison.
</p>
<p>
Sort keeps a reference to the image in <var>Current</var> when it is set to a
value other than <b>-1</b>. The image is used to restore the value in Current
when the sort operation is completed. The IndexOf method for the internal
image list is called determine the new position for the referenced image.
</p>
</descr>
<seealso>
<link id="TCustomIcon.Current"/>
<link id="TSharedIcon"/>
<link id="TIconImage"/>
</seealso>
</element>
<element name="TCustomIcon.GetBestIndexForSize">
<short>
Gets the ordinal position for the image closest to the requested size.
</short>
<descr>
<p>
The default icon size from <var>GetSystemMetrics</var> is used when
<var>ASize</var> does not have explicit values in its <var>cx</var> and
<var>cy</var> members. The best color depth is determined using the
<var>GetDeviceCaps</var> routine for the screen context.
</p>
<p>
GetBestIndexForSize iterates over the items in the internal image list to
find the TIconImage which most closely matches the required values. The
return value is <b>-1</b> if no images are stored in the internal image list
for the icon.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomIcon.GetBestIndexForSize.Result">
<short>
Ordinal position for the image, or -1 when no images are available.
</short>
</element>
<element name="TCustomIcon.GetBestIndexForSize.ASize">
<short>
TSize instance with the height and width for the requested image size.
</short>
</element>
<element name="TCustomIcon.ExportImage">
<short>
Exports the image for the icon at the specified index to another
TFPImageBitmap class instance.
</short>
<descr>
<p>
<var>ExportImage</var> creates a new instance of the bitmap image class
specified in <var>AImageClass</var>, then calls its LoadFromRawImage method to
load the raw image data for the shared icon. AIndex specifies the ordinal
position in the Images for the the shared icon instance.
</p>
<remark>
To avoid memory leaks, the bitmap instance created in the return value must be
destroyed in the calling routine.
</remark>
</descr>
<seealso>
<link id="TCustomIcon.Count"/>
<link id="TRasterImage.FSharedImage"/>
<link id="TRasterImage.LoadFromRawImage"/>
<link id="TPicture.SaveToStreamWithFileExt"/>
</seealso>
<version>
Added in LCL version 4.2.
</version>
</element>
<element name="TCustomIcon.ExportImage.AIndex">
<short>
Ordinal position for the icon exported in the method.
</short>
</element>
<element name="TCustomIcon.ExportImage.AImageClass">
<short>
Graphics class for the exported image.
</short>
</element>
<element name="TCustomIcon.ExportImage.Result">
<short>
Image instance created in the method where the exported icon is stored.
</short>
</element>
<element name="TCustomIcon.Current">
<short>Ordinal position for the current image displayed for the icon.</short>
<descr>
<p>
<var>Current</var> is an <var>Integer</var> property which contains the
ordinal position for the selected image in the icon. Setting a new value for
the property causes the <var>UpdateCurrentView</var> method to be called to
update the <var>Canvas</var>, and the save stream for the shared image. The
<var>OnChange</var> event handler is signalled (when assigned).
</p>
<p>
Set Current to <b>-1</b> before calling <var>SetSize</var> (or changing
values in <var>Height</var> and <var>Width</var>) to avoid raising an
<var>EInvalidGraphicOperation</var> exception.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomIcon.Count">
<short>Number of images in the image list for the shared icon.</short>
<descr>
<p>
<var>Count</var> is a read-only <var>Integer</var> property which contains
the number of images in the internal image list for the icon. Read access for
the property value is redirected to the Count property in the internal
TSharedIcon instance used in the class.
</p>
<p>
Use methods like <var>Add</var>, <var>Delete</var>, <var>Remove</var>,
<var>Clear</var>, <var>Assign</var>, and <var>AssignImage</var> to maintain
the list of images available in the icon.
</p>
</descr>
<seealso/>
</element>
<element name="TIcon">
<short>
Implements an icon image type; small images typically associated with
applications, controls, etc.
</short>
<descr>
<p>
Icons can be loaded from .ICO files, or from Lazarus resources. An icon
resource typically contains several versions of the same image, in multiple
resolutions and color depths.
</p>
<p>
When loading, the largest/most colorful image is loaded as the
<var>Bitmap</var> property, and so can be handled as any other bitmap.
</p>
</descr>
<errors>
Writing to icon files is not (yet) implemented.
</errors>
</element>
<element name="TIcon.GetIconHandle">
<short>Gets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TIcon.Handle"/>
</seealso>
</element>
<element name="TIcon.GetIconHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TIcon.SetIconHandle">
<short>Sets the value for the Handle property.</short>
<descr/>
<seealso>
<link id="TIcon.Handle"/>
</seealso>
</element>
<element name="TIcon.SetIconHandle.AValue">
<short>New value for the property.</short>
</element>
<element link="#lcl.graphics.TCustomIcon.GetStreamSignature" name="TIcon.GetStreamSignature"/>
<element link="#lcl.graphics.TCustomIcon.GetStreamSignature.Result" name="TIcon.GetStreamSignature.Result"/>
<element link="#lcl.graphics.TCustomIcon.GetTypeID" name="TIcon.GetTypeID"/>
<element link="#lcl.graphics.TCustomIcon.GetTypeID.Result" name="TIcon.GetTypeID.Result"/>
<element name="TIcon.HandleNeeded">
<short>Ensures that handle values for the icon are valid.</short>
<descr>
<p>
Ensures that Handle values are valid for the icon. Configures the values in
IconInfo with the BitmapHandle and MaskHandle for the class instance. Calls
CreateIconIndirect for the widgetset to get the Handle used for the shared
image in the icon.
</p>
<p>
No actions are performed in the method when the Handle for the shared icon
image has already been assigned.
</p>
</descr>
<seealso>
<link id="TIcon.Handle"/>
<link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.MaskHandle"/>
<link id="TRasterImage.HandleNeeded"/>
</seealso>
</element>
<element name="TIcon.LoadFromResourceHandle">
<short>
Loads icon data from the specified instance and resource handles.
</short>
<descr>
<p>
<var>LoadFromResourceHandle</var> is an overridden method in <var>TIcon</var>
used to load image data from an icon resource identified by the handles in
<var>Instance</var> and <var>ResHandle</var>. The handles are passed as
arguments to the RTL LoadResource routine which provides the global handle for
the group resource on the platform.
</p>
<p>
LoadFromResourceHandle reads the icon headers and data for the entries from
the resource. The ReadData method is called to read and store the values in
the stream to the shared raster image for the icon.
</p>
<p>
LoadFromResourceHandle reimplements the empty implementation introduced in the
TCustomIcon ancestor.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TCustomIcon.LoadFromResourceHandle"/>
<link id="TCustomIcon.ReadData"/>
<link id="TRasterImage.LoadFromStream"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TIcon.LoadFromResourceHandle.Instance">
<short>Handle with the resource data loaded in the method.</short>
</element>
<element name="TIcon.LoadFromResourceHandle.ResHandle">
<short>Resource handle with the icon data loaded in the method.</short>
</element>
<element name="TIcon.ReleaseHandle">
<short>Frees the Handle used for the shared image in the Icon.</short>
<descr>
<p>
Calls HandleNeeded to ensure that a handle is assigned if it does not already
exist. Calls the ReleaseHandle method in the shared raster image used for the
icon. The return value is the handle for the shared raster image before it is
set to the unassigned value (0).
</p>
</descr>
<seealso/>
</element>
<element name="TIcon.ReleaseHandle.Result">
<short>HICON value removed from the handle in the class instance.</short>
</element>
<element name="TIcon.GetResourceType">
<short>Gets the Integer Resource Type for the class instance.</short>
<descr>
<p>
GetResourceType is an overridden TResourceType function in TIcon.
It is used to get the resource type identifier for the class instance. It
identifies the storage format used for graphic data in a resource.
</p>
<p>
The return value is RT_GROUP_ICON in TIcon.
</p>
</descr>
<seealso>
<link id="TGraphic.GetResourceType"/>
</seealso>
</element>
<element name="TIcon.GetResourceType.Result">
<short>Resource type used for the icon image type.</short>
</element>
<element name="TIcon.Handle">
<short>
Handle used to access the image data for the icon.
</short>
<descr>
<p>
<var>Handle</var> is a <var>HICON</var> property which contains the handle
for the icon used to access its image data. The property value is provided by
the inherited GetHandle method, and contains the handle for its
TSharedRasterImage instance.
</p>
<p>
Setting a new value for the property causes the previous handle and the
canvas device context to be freed. The previous image is cleared and unshared
as well.
</p>
<p>
The inherited UpdateHandle method is called to apply the new handle to the
shared image, and to load its icon data.
</p>
</descr>
<seealso>
<link id="TCustomIcon.SetHandle"/>
<link id="TCustomIcon.UpdateHandle"/>
<link id="TRasterImage.GetHandle"/>
<link id="TSharedRasterImage.HandleAllocated"/>
</seealso>
</element>
<!-- .ICNS is the Apple icon image format used in macOS. -->
<element name="TIcnsRec">
<short>
Record type with the icon type and raw image data for a TIcnsIcon instance.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsRec.IconType">
<short>
TIcnsIconType value for the icon data, mask, or alpha channel used in the raw
image.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsRec.RawImage">
<short>
Contains the TRawImage instance with the data for an icon image.
</short>
<descr/>
<seealso/>
</element>
<element name="PIcnsRec">
<short>Pointer to a TIcnsRec instance.</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsList">
<short>Implements a list used to maintain TIcnsIcon instances.</short>
<descr>
<p>
<var>TIcnsList</var> is a <var>TList</var> descendant which implements a list
used to create, store, and maintain TIcnsIcon instances. It provides indexed
access to the icons using the <var>Items</var> property. It re-implements the
<var>Add</var> method to allow an icon instance to be created and stored
using the specified icon type and raw image data.
</p>
<p>
TIcnsList is the type used to implement storage for images and masks in
<var>TIcnsIcon</var>.
</p>
</descr>
<seealso>
<link id="TIcnsIcon"/>
<link id="#rtl.classes.TList">TList</link>
</seealso>
</element>
<element name="TIcnsList.GetItem">
<short/>
<descr/>
<seealso/>
</element>
<element name="TIcnsList.GetItem.Result">
<short/>
</element>
<element name="TIcnsList.GetItem.Index">
<short/>
</element>
<element name="TIcnsList.SetItem">
<short/>
<descr/>
<seealso/>
</element>
<element name="TIcnsList.SetItem.Index">
<short/>
</element>
<element name="TIcnsList.SetItem.AValue">
<short/>
</element>
<element name="TIcnsList.Notify">
<short>
Handles the notification when an icon image is added to or removed from the
list.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsList.Notify.Ptr">
<short>
Pointer to the TIcnsRec with the icon type and raw image data for the
notification.
</short>
</element>
<element name="TIcnsList.Notify.Action">
<short>
Action performed for the icon image.
</short>
</element>
<element name="TIcnsList.Add">
<short>
Creates and stores a entry in the list for the specified icon type and raw
image.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsList.Add.Result">
<short>Ordinal position in the list where the new entry was stored.</short>
</element>
<element name="TIcnsList.Add.AIconType">
<short>
Type for the image data, mask, or alpha channel image in the raw data.
</short>
</element>
<element name="TIcnsList.Add.ARawImage">
<short>Raw image instance added to the container.</short>
</element>
<element name="TIcnsList.Items">
<short>
Provides indexed access to the icon images in the list by their ordinal
position.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsList.Items.Index">
<short>Ordinal position in the list for the property value.</short>
</element>
<element name="TSharedIcnsIcon">
<short>Declares the shared icon for the TIcnsIcon type.</short>
<descr/>
<seealso>
<link id="TSharedIcon"/>
</seealso>
</element>
<element name="TIcnsIcon">
<short>Implements a macOS Icon Resource file.</short>
<descr>
<p>
<var>TIcnsIcon</var> is a <var>TCustomIcon</var> descendant which implements
a class used for macOS Icon resources. TIcnsIcon is similar to the .ICO
format used on Windows platforms. An Icns Icon can store one or more images,
which generally use the PNG image format. Standard icon sizes used in Icns
Icon files include: 16x16, 32x32, 48x48, 128x128, 256x256, 512x512, and
1024x1024 pixels.
</p>
</descr>
<seealso>
<link id="TCustomIcon"/>
</seealso>
</element>
<!-- private -->
<element name="TIcnsIcon.FImageList"/>
<element name="TIcnsIcon.FMaskList"/>
<element name="TIcnsIcon.IcnsAdd">
<short/>
<descr/>
<seealso/>
</element>
<element name="TIcnsIcon.IcnsAdd.AIconType">
<short/>
</element>
<element name="TIcnsIcon.IcnsAdd.ARawImage">
<short/>
</element>
<element name="TIcnsIcon.IcnsProcess">
<short/>
<descr/>
<seealso/>
</element>
<element name="TIcnsIcon.GetSharedImageClass">
<short>
Gets the class reference used to create the shared image for the icon.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsIcon.GetSharedImageClass.Result">
<short/>
</element>
<element name="TIcnsIcon.ReadData">
<short>
Reads icon data from the specified stream, and performs byte order conversion
when needed.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsIcon.ReadData.Stream">
<short/>
</element>
<element name="TIcnsIcon.ReadStream">
<short>
Reads each of the icon resources from the specified stream, and adds them to
the list of icon images.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsIcon.ReadStream.AStream">
<short/>
</element>
<element name="TIcnsIcon.ReadStream.ASize">
<short/>
</element>
<element name="TIcnsIcon.WriteStream">
<short>
Writes each of the icon resources in the list to the specified stream.
</short>
<descr>
<p>
Does not write icons using the JPEG2000 image format in the current LCL
version.
</p>
</descr>
<seealso/>
</element>
<element name="TIcnsIcon.WriteStream.AStream">
<short/>
</element>
<element name="TIcnsIcon.Create">
<short>Constructor for the class instance.</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsIcon.Destroy">
<short>Destructor for the class instance.</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsIcon.GetFileExtensions">
<short>Gets the file extension(s) used for the icon type.</short>
<descr/>
<seealso>
<link id="TCustomIcon.GetFileExtensions"/>
</seealso>
</element>
<element name="TIcnsIcon.GetFileExtensions.Result">
<short>Always returns 'icns' in TIcnsIcon.</short>
</element>
<element name="TIcnsIcon.LazarusResourceTypeValid">
<short>
Checks whether the specified Resource Type name is valid for the icon type.
</short>
<descr/>
<seealso/>
</element>
<element name="TIcnsIcon.LazarusResourceTypeValid.Result">
<short><b>True</b> when the uppercase value in ResourceType is 'ICNS'.</short>
</element>
<element name="TIcnsIcon.LazarusResourceTypeValid.ResourceType">
<short>Resource type name checked in the method.</short>
</element>
<element name="TSharedCursorImage">
<short>Implements a reference-counted shared image used for cursors.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedCursorImage.FreeHandle">
<short>Frees the handle for the cursor image.</short>
<descr/>
<seealso>
<link id="TSharedImage.FreeHandle"/>
</seealso>
</element>
<element name="TSharedCursorImage.GetImagesClass">
<short>
Gets the class reference used to create a new cursor image in the Images
property.
</short>
<descr/>
<seealso>
<link id="TSharedIcon.GetImagesClass"/>
</seealso>
</element>
<element name="TSharedCursorImage.GetImagesClass.Result">
<short>
Class reference used to create images in the shared cursor image list.
</short>
</element>
<element name="TCursorImageImage">
<short>Implements the image for a cursor, stored as an Icon.</short>
<descr>
<p>
Provides a <var>HotSpot</var> property with the coordinates in the cursor
that is the point that interacts with other elements on the screen.
</p>
</descr>
<seealso>
<link id="TIconImage"/>
</seealso>
</element>
<!-- private -->
<element name="TCursorImageImage.FHotSpot"/>
<element name="TCursorImageImage.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
Calls the inherited constructor on entry using the value in <var>AInfo</var>
as an argument. AInfo contains the coordinates that are assigned to the
<var>HotSpot</var> property.
</p>
</descr>
<seealso/>
</element>
<element name="TCursorImageImage.Create.AInfo">
<short>
TIconInfo instance with the hotspot information for the cursor image.
</short>
</element>
<element name="TCursorImageImage.HotSpot">
<short>
<var>HotSpot</var> - the coordinates of the point to which the cursor refers,
and which represents the 'active' position on the current form or canvas.
</short>
<descr/>
<seealso/>
</element>
<element name="TCursorImage">
<short>
<var>TCursorImage</var> - an Icon to be used to represent a cursor.
</short>
<descr/>
<seealso>
<link id="TCustomIcon"/>
</seealso>
</element>
<element name="TCursorImage.GetHotSpot">
<short>Gets the value for the HotSpot property.</short>
<descr/>
<seealso>
<link id="TCursorImage.HotSpot"/>
</seealso>
</element>
<element name="TCursorImage.GetHotSpot.Result">
<short>Value for the property.</short>
</element>
<element name="TCursorImage.GetCursorHandle">
<short>Gets the value for the CursorHandle property.</short>
<descr/>
<seealso>
<link id="TCursorImage.CursorHandle"/>
</seealso>
</element>
<element name="TCursorImage.GetCursorHandle.Result">
<short>Value for the property.</short>
</element>
<element name="TCursorImage.SetCursorHandle">
<short>Sets the value for the CursorHandle property.</short>
<descr/>
<seealso>
<link id="TCursorImage.CursorHandle"/>
</seealso>
</element>
<element name="TCursorImage.SetCursorHandle.AValue">
<short>New value for the property.</short>
</element>
<element link="#lcl.graphics.TRasterImage.HandleNeeded" name="TCursorImage.HandleNeeded">
<short/>
<descr/>
<seealso/>
</element>
<element link="#lcl.graphics.TCustomIcon.GetDefaultSize" name="TCursorImage.GetDefaultSize">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCursorImage.GetDefaultSize.Result">
<short/>
</element>
<element link="#lcl.graphics.TCustomIcon.GetStreamSignature" name="TCursorImage.GetStreamSignature">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCursorImage.GetStreamSignature.Result">
<short/>
</element>
<element link="#lcl.graphics.TRasterImage.GetSharedImageClass" name="TCursorImage.GetSharedImageClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCursorImage.GetSharedImageClass.Result">
<short/>
</element>
<element link="#lcl.graphics.TCustomIcon.GetTypeID" name="TCursorImage.GetTypeID">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCursorImage.GetTypeID.Result">
<short/>
</element>
<element link="#lcl.graphics.TGraphic.GetFileExtensions" name="TCursorImage.GetFileExtensions">
<short/>
<descr/>
<seealso/>
</element>
<element name="TCursorImage.GetFileExtensions.Result">
<short/>
</element>
<element name="TCursorImage.GetResourceType">
<short>Gets the resource type identifier for the cursor image.</short>
<descr>
<p>
Returns <var>RT_GROUP_CURSOR</var> in <var>TCursorImage</var>.
</p>
</descr>
<seealso>
<link id="#lcl.lcltype.RT_GROUP_CURSOR">RT_GROUP_CURSOR</link>
<link id="TGraphic.GetResourceType"/>
</seealso>
</element>
<element name="TCursorImage.GetResourceType.Result">
<short>
Returns RT_GROUP_CURSOR for TCusrsorImage.
</short>
</element>
<element name="TCursorImage.LoadFromResourceHandle">
<short>
Loads cursor images from the specified instance and resource handles.
</short>
<descr>
<p>
<var>LoadFromResourceHandle</var> is an overridden method in
<var>TCursorImage</var> used to load cursor image(s) from the group cursor
resource identified in the Instance and ResHandle arguments. It calls the RTL
LoadResource routine to get the global handle used for the resource(s) on the
platform. No actions are performed in the method if the handle is unassigned
(0).
</p>
<p>
LoadFromResourceHandle creates a temporary resource stream which is used to
store the group cursor resources, including hot spot and image offset data.
ReadData is called to load the values from the stream to the shared raster
image used for the group cursor resources.
</p>
<p>
LoadFromResourceHandle reimplements the empty implementation introduced in the
TCustomIcon ancestor.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TCustomIcon.LoadFromResourceHandle"/>
<link id="TCustomIcon.ReadData"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="TCursorImage.LoadFromResourceHandle.Instance">
<short>
Handle for the resource instance with the cursor image.
</short>
</element>
<element name="TCursorImage.LoadFromResourceHandle.ResHandle">
<short>
Handle for the resource entry with the cursor image.
</short>
</element>
<element name="TCursorImage.LazarusResourceTypeValid" link="#lcl.graphics.TGraphic.LazarusResourceTypeValid"/>
<element name="TCursorImage.LazarusResourceTypeValid.Result"/>
<element name="TCursorImage.LazarusResourceTypeValid.ResourceType"/>
<element name="TCursorImage.ReleaseHandle">
<short>
Frees the handle in the shared raster image used for the cursor.
</short>
<descr/>
<seealso/>
</element>
<element name="TCursorImage.ReleaseHandle.Result">
<short>
HICON value for the handle freed in the method.
</short>
</element>
<element name="TCursorImage.SetCenterHotSpot">
<short>
Updates the HotSpot coordinate to the center point for the Current image in
the cursor.
</short>
<descr/>
<seealso/>
</element>
<element name="TCursorImage.HotSpot">
<short>
<var>HotSpot</var> - the coordinates of the point to which the cursor refers,
and which represents the 'active' position on the current form or canvas.
</short>
<descr/>
<seealso/>
</element>
<element name="TCursorImage.Handle">
<short>Handle for the cursor image.</short>
<descr>
<p>
<var>Handle</var> is a <var>HCURSOR</var> property in
<var>TCursorImage</var>, and contains the handle used to identify the cursor
image. The value for the property is provided by the <var>GetHandle</var>
method.
</p>
<p>
Setting a new value for Handle causes the device context in <var>Canvas</var>
to be freed, and the shared image for the icon is cleared. The
<var>UpdateHandle</var> method is called to update the shared image using the
new value for the property. If the shared icon contains image data, the value
in <var>Current</var> is set to <b>0</b> (the first image in the internal
list of images). Otherwise, Current is set to <b>-1</b>.
</p>
<p>
<var>Changed</var> is called to re-create the internal save stream for the
shared image and signal the <var>OnChange</var> event handler (when assigned).
</p>
</descr>
<seealso/>
</element>
<element name="TSharedJpegImage">
<short>
<var>TSharedJpegImage</var> - a reference counted shared image of type JPEG.
</short>
<descr/>
<seealso>
<link id="TSharedCustomBitmap"/>
</seealso>
</element>
<element name="TJPEGQualityRange">
<short>Represents JPEG compression quality values.</short>
<descr>
<p>
<var>TJPEGQualityRange</var> is an alias to the
<var>TFPJPEGCompressionQuality</var> type defined in the FCL.
TJPEGQualityRange is the type used to implement the
<var>CompressionQuality</var> property in <var>TJPEGImage</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TJPEGPerformance">
<short>Represents JPEG read performance setting values.</short>
<descr>
<p>
<var>TJPEGPerformance</var> is an alias to the
<var>TJPEGReadPerformance</var> type defined in the FCL. TJPEGPerformance is
the type used to implement the <var>Performance</var> property in
<var>TJpegImage</var>.
</p>
</descr>
<seealso/>
</element>
<element name="TJPEGImage">
<short>
<var>TJPEGImage</var> - a class for handling images stored in JPEG
(compressed) format.
</short>
<descr>
<p>
<var>TJPEGImage</var> is a <var>TFPImageBitmap</var> descendant which
implements support for the <b>JPEG</b> (<b>Joint Photographic Experts
Group</b>) image format. JPEG images are commonly used for storing digital
photographs. They can represent detailed color photos using a high degree of
compression, resulting in very efficient storage, though with some loss of
quality.
</p>
<p>
JPEG image files normally have a file extension like: <b>jpeg, jpg, jpe, or
jfif</b>.
</p>
<p>
The <var>CompressionQuality</var> and <var>Performance</var> properties can
be used to set the balance between storage efficiency and picture quality.
CompressionQuality is an Integer value between 1 and 100, with 100
representing the best quality. Performance is an enumerated variable with two
states: <var>BestQuality</var> or <var>BestSpeed</var> (for compression).
</p>
</descr>
<seealso>
<link id="TFPImageBitmap"/>
</seealso>
</element>
<!-- private -->
<element name="TJPEGImage.FGrayScale"/>
<element name="TJPEGImage.FMinHeight"/>
<element name="TJPEGImage.FMinWidth"/>
<element name="TJPEGImage.FPerformance"/>
<element name="TJPEGImage.FProgressiveEncoding"/>
<element name="TJPEGImage.FQuality"/>
<element name="TJPEGImage.FScale"/>
<element name="TJPEGImage.FSmoothing"/>
<element name="TJPEGImage.SetCompressionQuality">
<short>Sets the value for the CompressionQuality property.</short>
<descr/>
<seealso>
<link id="TJPEGImage.CompressionQuality"/>
</seealso>
</element>
<element name="TJPEGImage.SetCompressionQuality.AValue">
<short>New value for the property.</short>
</element>
<element name="TJPEGImage.SetGrayScale">
<short>Sets the value for the GrayScale property.</short>
<descr/>
<seealso>
<link id="TJPEGImage.GrayScale"/>
</seealso>
</element>
<element name="TJPEGImage.SetGrayScale.AValue">
<short>New value for the property.</short>
</element>
<element name="TJPEGImage.SetProgressiveEncoding">
<short>Sets the value for the ProgressiveEncoding property.</short>
<descr/>
<seealso>
<link id="TJPEGImage.ProgressiveEncoding"/>
</seealso>
</element>
<element name="TJPEGImage.SetProgressiveEncoding.AValue">
<short>New value for the property.</short>
</element>
<element name="TJPEGImage.InitializeReader">
<short>Initializes the FCL-compatible image reader for the image type.</short>
<descr>
<p>
<var>InitializeReader</var> is an overridden method used transfer property
values specific to the JPEG image in <var>AImage</var> to the
<var>TFPCustomImageReader</var> class instance in <var>AReader</var>. The
following property values are stored to the corresponding properties in
AReader:
</p>
<ul>
<li>MinHeight</li>
<li>MinWidth</li>
<li>Performance</li>
<li>Scale</li>
<li>Smoothing</li>
</ul>
</descr>
<seealso/>
</element>
<element name="TJPEGImage.InitializeReader.AImage">
<short>Image with values used to configure the reader class.</short>
</element>
<element name="TJPEGImage.InitializeReader.AReader">
<short>FCL-compatible image reader class updated in the method.</short>
</element>
<element name="TJPEGImage.InitializeWriter">
<short>Initializes the FCL-compatible Image Writer for the image type.</short>
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.InitializeWriter.AImage">
<short>Image with values used to configure the writer class.</short>
</element>
<element name="TJPEGImage.InitialWriter.AWriter">
<short>FCL-compatible image writer class updated in the method.</short>
</element>
<element name="TJPEGImage.FinalizeReader">
<short>Finalizes the FCL Image reader.</short>
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.FinalizeReader.AReader">
<short>FCL-compatible image reader examined in the method.</short>
</element>
<element link="#lcl.graphics.TFPImageBitmap.GetReaderClass" name="TJPEGImage.GetReaderClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.GetReaderClass.Result">
<short/>
</element>
<element link="#lcl.graphics.TFPImageBitmap.GetWriterClass" name="TJPEGImage.GetWriterClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.GetWriterClass.Result">
<short/>
</element>
<element link="#lcl.graphics.TRasterImage.GetSharedImageClass" name="TJPEGImage.GetSharedImageClass">
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.GetSharedImageClass.Result">
<short/>
</element>
<element name="TJPEGImage.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the TJpegImage class
instance, and calls the inherited constructor on entry. Creates sets the
default values for properties, including:
</p>
<dl>
<dt>Performance</dt>
<dd>Set to jpBestQuality.</dd>
<dt>ProgressiveEncoding</dt>
<dd>Set to <b>False</b>.</dd>
<dt>GrayScale</dt>
<dd>Set to <b>False</b>.</dd>
<dt>Quality</dt>
<dd>Set to 75.</dd>
</dl>
</descr>
<seealso>
<link id="TCustomBitmap.Create">TCustomBitmap.Create</link>
</seealso>
</element>
<element name="TJpegImage.Compress">
<short>
Applies compression settings in the class instance to the image data.
</short>
<descr/>
<seealso>
<link id="TRasterImage.SaveToStream"/>
<link id="TRasterImage.LoadFromStream"/>
</seealso>
</element>
<element name="TJPEGImage.IsStreamFormatSupported">
<short>
Indicates if the stream contains a format supported for the image type.
</short>
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.IsStreamFormatSupported.Result">
<short>
<b>True</b> when Stream contains a valid image format for the image type.
</short>
</element>
<element name="TJPEGImage.IsStreamFormatSupported.Stream">
<short>TStream instance examined in the method.</short>
</element>
<element name="TJPEGImage.GetFileExtensions">
<short>Gets the file extension(s) supported for the image format.</short>
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.GetFileExtensions.Result">
<short>Delimited list of file extensions supported for the image type.</short>
</element>
<element name="TJPEGImage.CompressionQuality">
<short>Determine the compression quality for the image data.</short>
<descr>
<p>
Extreme compression can lead to loss of quality at the expense of a small
file size.
</p>
<p>
The allowed range is <b>1..100</b>, where <b>100</b> is <b>best quality</b>,
and <b>25</b> is <b>pretty awful</b>.
</p>
</descr>
<seealso/>
</element>
<element name="TJPEGImage.GrayScale">
<short>Indicates if the image contains grayscale image data.</short>
<descr/>
<seealso/>
</element>
<element name="TJpegImage.MinHeight">
<short>
Minimum height allowed for the image when read using an FCL image reader.
</short>
<descr/>
<seealso/>
</element>
<element name="TJpegImage.MinWidth">
<short>
Minimum width allowed for the image when read using an FCL image reader.
</short>
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.ProgressiveEncoding">
<short>Indicates if progressive encoding is used for the image data.</short>
<descr/>
<seealso/>
</element>
<element name="TJPEGImage.Performance">
<short>Set for best quality or best speed.</short>
<descr/>
<seealso/>
</element>
<element name="TJpegImage.Scale">
<short>A predefined scaling value applied to the image data.</short>
<descr>
<p>
<var>Scale</var> is a <var>TJPEGScale</var> property which contains one of
the predefined scaling values applied to the raw image data. For instance:
</p>
<dl>
<dt>jsFullSize</dt>
<dd>Image is not scaled.</dd>
<dt>jsHalf</dt>
<dd>Image is scaled to one-half of its width and height.</dd>
<dt>jsQuarter</dt>
<dd>Image is scaled to one-quarter of its width and height.</dd>
<dt>jsEighth</dt>
<dd>Image is scaled to one-eighth of its width and height.</dd>
</dl>
</descr>
<seealso/>
</element>
<element name="TJpegImage.Smoothing">
<short>Indicates if smoothing is applied to the raw image data.</short>
<descr>
<p>
<var>Smoothing</var> is a <var>Boolean</var> property which indicates if
smoothing is applied to raw data in the image. Smoothing uses a low pass
filter to remove high spatial frequency noise from a digital image.
</p>
<p>
The value in Smoothing is used in the <var>InitializeReader</var> method to
configure the image reader used to load the raw image data. Set the value in
Smoothing prior to calling methods which load the image content using an
FCL-compatible image reader.
</p>
</descr>
<seealso/>
</element>
<element name="TSharedTiffImage">
<short>Declares the shared image for the TTiffImage type.</short>
<descr/>
<seealso>
<link id="TSharedCustomBitmap"/>
</seealso>
</element>
<element name="TTiffUnit">
<short>Represents units of measure used in TIFF image data.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffUnit.tuUnknown">
<short>Unit of measurement is unknown.</short>
</element>
<element name="TTiffUnit.tuNone">
<short>No absolute unit of measurement.
</short>
<descr>
<p>
Used for images that may have a non-square aspect ratio, but no meaningful
absolute dimensions.
</p>
</descr>
</element>
<element name="TTiffUnit.tuInch">
<short>Unit of measure is Inches.</short>
</element>
<element name="TTiffUnit.tuCentimeter">
<short>Unit of measure is Centimeters.</short>
</element>
<element name="TTiffImage">
<short>
Implements support for the TIFF (Tag Image File Format) graphic format.
</short>
<descr>
<p>
TTiffImage is a TFPImageBitmap descendant which implements support for the
<b>TIFF</b> (<b>Tag Image File Format</b>) image format.
</p>
<p>
It is a raster graphics image format. TIFF is widely supported by scanning,
faxing, word processing, optical character recognition, image manipulation,
desktop publishing, and page-layout applications. TIFF was created for use as
a common image format for scanners. Various revisions to the specification
have added grayscale and color support to the image format. It is a popular
format for deep-color images.
</p>
<p>
TIFF images use .TIF or .TIFF file extensions, and the MIME types 'image/TIF'
or 'image/TIFF'.
</p>
<p>
TTiffImage implements the class methods from the ancestor class which get FCL
TFPCustomImageReaderClass and TFPCustomImageWriterClass instances, as well as
the shared graphics class instance for the image format.
</p>
<p>
TTiffImage has properties which expose values for Baseline Tags in the image
data, including:
</p>
<ul>
<li>Artist</li>
<li>Copyright</li>
<li>DateTime</li>
<li>DocumentName</li>
<li>HostComputer</li>
<li>ImageDescription</li>
<li>Make</li>
<li>Model</li>
<li>ResolutionUnit</li>
<li>Software</li>
<li>XResolution</li>
<li>YResolution</li>
</ul>
</descr>
<seealso>
<link id="TFPImageBitmap"/>
</seealso>
</element>
<!-- private -->
<element name="TTiffImage.FArtist"/>
<element name="TTiffImage.FCopyright"/>
<element name="TTiffImage.FDateTime"/>
<element name="TTiffImage.FDocumentName"/>
<element name="TTiffImage.FHostComputer"/>
<element name="TTiffImage.FImageDescription"/>
<element name="TTiffImage.FMake">
<short>Scanner manufacturer or brand.</short>
</element>
<element name="TTiffImage.FModel">
<short>Scanner model.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.FResolutionUnit"/>
<element name="TTiffImage.FSoftware"/>
<element name="TTiffImage.FXResolution"/>
<element name="TTiffImage.FYResolution"/>
<element name="TTiffImage.InitializeReader">
<short>Initializes the FCL-compatible image reader for the image.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.InitializeReader.AImage">
<short/>
</element>
<element name="TTiffImage.InitializeReader.AReader">
<short/>
</element>
<element name="TTiffImage.InitializeWriter">
<short>Initializes the FCL-compatible image writer for the image.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.InitializeWriter.AImage">
<short/>
</element>
<element name="TTiffImage.InitializeWriter.AWriter">
<short/>
</element>
<element name="TTiffImage.FinalizeReader">
<short>Captures values from the image reader after loading an image.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.FinalizeReader.AReader">
<short/>
</element>
<element name="TTiffImage.GetReaderClass" link="#lcl.graphics.TFPImageBitmap.GetReaderClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.GetReaderClass.Result">
<short/>
</element>
<element name="TTiffImage.GetWriterClass" link="#lcl.graphics.TFPImageBitmap.GetWriterClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.GetWriterClass.Result">
<short/>
</element>
<element name="TTiffImage.GetSharedImageClass" link="#lcl.graphics.TRasterImage.GetSharedImageClass">
<short/>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.GetSharedImageClass.Result">
<short/>
</element>
<element name="TTiffImage.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overridden constructor for the class instance, and
calls the inherited constructor on entry. Create sets the default value for
the
<var>Title</var> property to include the class name, the LCL version, and the
FPC version.
</p>
</descr>
<seealso/>
</element>
<element name="TTiffImage.GetFileExtensions">
<short>
Gets the delimited list of file extension(s) for files which support the
image format.
</short>
<descr>
<p>
In TTiffImage, the return value is: 'tif;tiff'.
</p>
</descr>
<seealso/>
</element>
<element name="TTiffImage.GetFileExtensions.Result">
<short/>
</element>
<element name="TTiffImage.Artist">
<short>Person who created the image.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.Copyright">
<short>Copyright notice for the image.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.DateTime">
<short>Date and time the image was created.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.DocumentName">
<short>Name of the document from which the image was scanned.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.HostComputer">
<short>
The computer and/or operating system where the image was created.
</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.ImageDescription">
<short>A string that describes the subject of the image.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.Make">
<short>The scanner manufacturer.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.Model">
<short>The scanner model name or number.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.ResolutionUnit">
<short>The unit of measurement for XResolution and YResolution.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.Software">
<short>
Name and version number for the software used to create the image.
</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.XResolution">
<short>Number of pixels in ResolutionUnits for the image width.</short>
<descr/>
<seealso/>
</element>
<element name="TTiffImage.YResolution">
<short>Number of pixels in ResolutionUnits for the image height.</short>
<descr/>
<seealso/>
</element>
<element name="TSharedGIFImage">
<short>Implements a reference-counted shared GIF image.</short>
<descr/>
<seealso>
<link id="TGIFImage"/>
<link id="TSharedCustomBitmap"/>
</seealso>
</element>
<element name="TGIFImage">
<short>
Implements an image using the GIF (Graphics Interchange Format) image format.
</short>
<descr>
<p>
<var>TGIFImage</var> is a <var>TFPImageBitmap</var> descendant which
implements support for the <b>GIF</b> (<b>Graphics Interchange Format</b>)
image format. GIF images support up to 8 bits per pixel in the image data,
and a color palette of up to 256 colors from the 24-bit RGB color space.
While GIF images allow animation, the LCL implementation does not support the
feature.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap"/>
</seealso>
</element>
<!-- private -->
<element name="TGIFImage.FTransparent"/>
<element name="TGIFImage.FInterlaced"/>
<element name="TGIFImage.FBitsPerPixel"/>
<element link="#lcl.graphics.TFPImageBitmap.InitializeReader" name="TGIFImage.InitializeReader">
<short/>
<descr/>
<seealso/>
</element>
<element name="TGIFImage.InitializeReader.AImage">
<short/>
</element>
<element name="TGIFImage.InitializeReader.AReader">
<short/>
</element>
<element name="TGIFImage.FinalizeReader">
<short>
Updates the image when the reader has finished loading the image content.
</short>
<descr>
<p>
Ensures that image properties discovered using the reader class are applied
to the properties in the GIF image.
</p>
<p>
Calls the inherited method on entry. Copies values found in AReader to the
following properties:
</p>
<ul>
<li>Transparent</li>
<li>Interlaced</li>
<li>BitsPerPixel</li>
</ul>
<p>
<var>FinalizeReader</var> is called from the <var>ReadStream</var> method
when the reader class has loaded the image content into a TLazIntfImage
instance.
</p>
</descr>
<seealso>
<link id="TFPImageBitmap.FinalizeReader"/>
</seealso>
</element>
<element name="TGIFImage.FinalizeReader.AReader">
<short>FCL-compatible reader for the image type.</short>
</element>
<element name="TGIFImage.GetReaderClass" link="#lcl.graphics.TFPImageBitmap.GetReaderClass">
<short/>
<descr/>
<seealso>
<link id="TFPImageBitmap.GetReaderClass"/>
</seealso>
</element>
<element name="TGIFImage.GetReaderClass.Result">
<short/>
</element>
<element name="TGIFImage.GetSharedImageClass">
<short>
Gets the class reference used to create the shared image in new class
instances.
</short>
<descr/>
<seealso/>
</element>
<element name="TGIFImage.GetSharedImageClass.Result">
<short/>
</element>
<element name="TGIFImage.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>Calls the inherited constructor on entry.
</p>
</descr>
<seealso/>
</element>
<element name="TGIFImage.IsStreamFormatSupported">
<short>
Determines if the specified Stream contains a valid GIF image format.
</short>
<descr/>
<seealso/>
</element>
<element name="TGIFImage.IsStreamFormatSupported.Result">
<short>
<b>True</b> when the stream contains the GIF87a or GIF89a signature.
</short>
</element>
<element name="TGIFImage.IsStreamFormatSupported.Stream">
<short>TStream instance with values examined in the method.</short>
</element>
<element name="TGIFImage.GetFileExtensions">
<short>Gets the file extensions used for the GIF image format.</short>
<descr/>
<seealso/>
</element>
<element name="TGIFImage.GetFileExtensions.Result">
<short>Returns the value 'gif'</short>
</element>
<element name="TGIFImage.Transparent">
<short>Indicates if the image is drawn with transparent pixels.</short>
<descr/>
<seealso/>
</element>
<element name="TGIFImage.Interlaced">
<short>
Indicates if the image uses the "venetian blind" effect during display.
</short>
<descr/>
<seealso/>
</element>
<element name="TGIFImage.BitsPerPixel">
<short>Number of bits needed to represent a pixel in the image.</short>
<descr>
<p>
BitsPerPixel indicates the color depth (or maximum number of colors) that can
be represented in the image data.
</p>
</descr>
<seealso/>
</element>
<element name="GraphicFilter">
<short>
Gets a filter string for files using the specified graphic class type.
</short>
<descr>
<p>
<var>GraphicFilter</var> is a <var>String</var> function used to get a filter
value for image files compatible with the graphics class type specified in
<var>GraphicClass</var>. The return value contains a description of the graphic
class and one or more file masks which represent files for the specified type.
</p>
<p>
GraphicClass is a TGraphicClass type which identifies the image class type for
the requested filter value. It can be one of the graphic classes like TBitmap,
TCursorImage, TIcon, TPNGImage, TJPEGImage, et. al. If TGraphic is passed in
the argument, a list with filters for all of the registered image formats is
returned.
</p>
<p>
For example:
</p>
<code>sFilter := GraphicFilter(TJpegImage);</code>
<p>
Returns:
</p>
<code>JPEG Files (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif</code>
<p>
While:
</p>
<code>sFilter := GraphicFilter(TGraphic);</code>
<p>
Returns:
</p>
<code>
Graphic (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.
tiff;*.gif;*.pbm;*.pgm;*.ppm)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;
*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm|
PNG Files (*.png)|*.png|
Pixmap Files (*.xpm)|*.xpm|
Bitmap Files (*.bmp)|*.bmp|
Cursor Files (*.cur)|*.cur|
Icon Files (*.ico)|*.ico|
macOS Icon Files (*.icns)|*.icns|
JPEG Files (*.jpeg;*.jpg;*.jpe;*.jfif)|*.jpeg;*.jpg;*.jpe;*.jfif|
Tagged Image File Format Files (*.tif;*.tiff)|*.tif;*.tiff|
Graphics Interchange Format Files (*.gif)|*.gif|
Portable Pixmap Files (*.pbm;*.pgm;*.ppm)|*.pbm;*.pgm;*.ppm
</code>
<remark>
Formatted for readability; the return value is a string without line breaks.
Content depends on the images types supported on a given platform.
</remark>
<p>
The return value can be used to set the Filter property in dialogs like
TFileDialog, TOpenDialog, and TSaveDialog. It contains localized description(s)
for the graphic class(es) and a delimited list of file mask(s) compatible with
the class type(s).
</p>
<p>
Use GraphicFileMask to get a delimited list of file masks for a graphic class
type without the descriptive text.
</p>
<p>
Use GraphicExtension to get a single file extension (without the leading '.')
for a graphic class type.
</p>
</descr>
<seealso>
<link id="TGraphic"/>
<link id="TGraphicClass"/>
<link id="TIcon"/>
<link id="TIcnsIcon"/>
<link id="TCursorImage"/>
<link id="TBitmap"/>
<link id="TJpegImage"/>
<link id="TPortableNetworkGraphic"/>
<link id="TPortableAnyMapGraphic"/>
<link id="TPixmap"/>
<link id="TTiffImage"/>
<link id="TGifImage"/>
<link id="#lcl.dialogs.TFileDialog.Filter">TFileDialog.Filter</link>
</seealso>
</element>
<element name="GraphicFilter.Result">
<short>
String with a filter value compatible with file dialogs.
</short>
</element>
<element name="GraphicFilter.GraphicClass">
<short>
TGraphic class or descendant for the requested filter value.
</short>
</element>
<element name="GraphicExtension">
<short>
Gets a string with the file extension used for the specified graphic class type.
</short>
<descr>
<p>
Calls <var>GetPicFileFormats</var> to get the list which maps TGraphicClass
(or descendent) references to a file extension.
</p>
<p>
GraphicExtension iterates over the values in the mapping list in reverse
order, and compares the class name for the list item to the class name in
<var>GraphicClass</var>. When a match is found, the <var>GetFormatExt</var>
method for the item is called to get the return value for the function.
</p>
<p>
The return value is an empty string (<b>''</b>) when a mapping for
GraphicClass is not found in the list.
</p>
</descr>
</element>
<seealso>
<link id="TGraphic"/>
<link id="TGraphicClass"/>
<link id="TIcon"/>
<link id="TIcnsIcon"/>
<link id="TCursorImage"/>
<link id="TBitmap"/>
<link id="TJpegImage"/>
<link id="TPortableNetworkGraphic"/>
<link id="TPortableAnyMapGraphic"/>
<link id="TPixmap"/>
<link id="TTiffImage"/>
<link id="TGifImage"/>
<link id="GraphicFilter"/>
<link id="GraphicFileMask"/>
</seealso>
<element name="GraphicExtension.Result">
<short>File extension for the image type.</short>
</element>
<element name="GraphicExtension.GraphicClass">
<short>Graphic class used to determine the file extension.</short>
</element>
<element name="GraphicFileMask">
<short>
Gets one or more file masks which can be used to select image files for the
specified TGraphicClass instance.
</short>
<descr>
<p>
<var>GraphicFileMask</var> is a <var>String</var> function used to get a list
of file mask(s) which can be used for files compatible with the specified
graphics class.
</p>
<p>
<var>GraphicClass</var> is the TGraphicClass instance with the TGraphic
descendant requested in the routine. It can contain one of the graphic classes
like TBitmap, TCursorImage, TIcon, TPNGImage, TJPEGImage, et. al. If TGraphic
is passed in the argument, a list with file masks for all of the registered
image formats is returned. File masks are separated by the ';' delimiter.
</p>
<p>
For example:
</p>
<code>sMask := GraphicFileMask(TJpegImage);</code>
<p>
Returns:
</p>
<code>*.jpeg;*.jpg;*.jpe;*.jfif</code>
<p>
While:
</p>
<code>sMask := GraphicFileMask(TGraphic);</code>
<p>
Returns:
</p>
<code>
*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;
*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm
</code>
<remark>
Formatted for readability; the return value is a string without line breaks.
Content depends on the images types supported on a given platform.
</remark>
<p>
Use GraphicFilter to get a filter value for graphic class type(s) which can be
assigned to the Filter property in a dialog.
</p>
<p>
Use GraphicExtension to get a single file extension (without the leading '.')
for a graphic class type.
</p>
</descr>
<seealso>
<link id="TGraphic"/>
<link id="TGraphicClass"/>
<link id="TIcon"/>
<link id="TIcnsIcon"/>
<link id="TCursorImage"/>
<link id="TBitmap"/>
<link id="TJpegImage"/>
<link id="TPortableNetworkGraphic"/>
<link id="TPortableAnyMapGraphic"/>
<link id="TPixmap"/>
<link id="TTiffImage"/>
<link id="TGifImage"/>
<link id="GraphicFilter"/>
<link id="GraphicExtension"/>
<link id="#lcl.dialogs.TFileDialog.Filter">TFileDialog.Filter</link>
</seealso>
</element>
<element name="GraphicFileMask.Result">
<short>
Delimited list of file masks for the graphics class, or an empty string when
the graphics class is not supported.
</short>
</element>
<element name="GraphicFileMask.GraphicClass">
<short>
TGraphicClass instance to locate in the registered graphic formats for the
platform.
</short>
</element>
<element name="GetGraphicClassForFileExtension">
<short>
Gets the TGraphicClass instance used for images with the specified file
extension.
</short>
<descr/>
<seealso/>
</element>
<element name="GetGraphicClassForFileExtension.Result">
<short>TGraphicClass descendant for the image format.</short>
</element>
<element name="GetGraphicClassForFileExtension.FileExt">
<short>
File extension used to determine the TGraphicClass for an image format.
</short>
</element>
<element name="TGetColorStringProc">
<short>
Specifies an object procedure used to process color value to color identifier
map entries.
</short>
<descr/>
<seealso>
<link id="GetColorValues"/>
</seealso>
</element>
<element name="TGetColorStringProc.s">
<short/>
</element>
<element name="IdentEntry">
<short>Checks whether a given Entry exists in a Map of color names.
</short>
<descr>
<p>
<var>IdentEntry</var> checks whether a given Entry exists in a Map of color
names.
</p>
<p>
A list of system <var>Colors</var> is specified as a look-up table of indices
(Entry) and names (MapEntry).
</p>
<p>
This function checks that the value in <var>Entry</var> is within the
permitted range, and returns the data pair <var>Value</var>, <var>Name</var>
of the corresponding color in <var>MapEntry</var>.
</p>
<p>
If <var>Entry</var> is out of range the Result is <b>False</b>.
</p>
</descr>
<errors>
If <var>Entry</var> is out of the range [0..High(colors)] the Result is
returned as <b>False</b>.
</errors>
<seealso/>
</element>
<element name="IdentEntry.Result">
<short>
<b>True</b> if <var>Entry</var> was a valid index into the color look-up
table.
</short>
</element>
<element name="IdentEntry.Entry">
<short>
<var>Entry</var> - a numeric index into the table of colors.</short>
</element>
<element name="IdentEntry.MapEntry">
<short>
<var>MapEntry</var> - the record of <var>Value</var>, <var>Name</var>
returned from the look-up table of <var>Colors</var>.
</short>
</element>
<element name="ColorToIdent">
<short>
ColorToIdent - given a Color value, find its name (<var>Ident</var>) in the
look-up table of <var>Colors</var>.
</short>
</element>
<element name="ColorToIdent.Result">
<short>
Returns <b>True</b> if there is a valid entry in the <var>Colors</var>
look-up table.
</short>
</element>
<element name="ColorToIdent.Color">
<short>the <var>Color</var> value to be sought in the look-up table.</short>
</element>
<element name="ColorToIdent.Ident">
<short>
<var>Ident</var> - the name of the supplied <var>Color</var> as found in the
look-up table of <var>Colors</var>.
</short>
</element>
<element name="IdentToColor">
<short>
<var>IdentToColor</var> - given a color identifier (name) returns the color
value.
</short>
<descr/>
<seealso/>
</element>
<element name="IdentToColor.Result">
<short>
Returns <b>True</b> if <var>Ident</var> is part of a valid entry in the
look-up table of <var>Colors</var>.
</short>
</element>
<element name="IdentToColor.Ident">
<short>
<var>Ident</var> - the supplied name for the required <var>Color</var>.
</short>
</element>
<element name="IdentToColor.Color">
<short>
The <var>Color</var> returned from the look-up table, with the name supplied
in <var>Ident</var>.
</short>
</element>
<element name="ColorIndex">
<short>
Finds the position in the color identifier map for the specified value.
</short>
<descr>
<p>
<var>ColorIndex</var> is a <var>Boolean</var> function used to determine if
the color value specified in <var>Color</var> exists in the color value to
name identifier map.
</p>
<p>
ColorIndex iterates over the values in the <var>Colors</var> constant to find
an element in the array with the value specified in Color. The position for
the value is assigned to the Index output parameter. The return value is
<b>True</b> when a value is located in Colors. Otherwise, the return value is
<b>False</b>. The value in Index is not significant when the return value is
<b>False</b>.
</p>
</descr>
<seealso>
<link id="IdentToColor"/>
<link id="ColorToIdent"/>
</seealso>
</element>
<element name="ColorIndex.Result">
<short><b>True</b> when the color value exists in Colors.</short>
</element>
<element name="ColorIndex.Color">
<short>Color value to locate in Colors.</short>
</element>
<element name="ColorIndex.Index">
<short>Position in Colors where the color value was found.</short>
</element>
<element name="SysColorToSysColorIndex">
<short>
<var>SysColorToSysColorIndex</var> - if <var>Color</var> is one of the system
colors, returns the <var>Index</var> of the system color.
</short>
<descr/>
<errors>
If <var>Color</var> is not a system color, returns -1.
</errors>
</element>
<element name="SysColorToSysColorIndex.Result">
<short>
Returns the Index value of the Color if it is a system color, otherwise
returns -1
</short>
</element>
<element name="SysColorToSysColorIndex.Color">
<short>The <var>Color</var> to examine in the routine.</short>
</element>
<element name="ColorToRGB">
<short>
Converts a TColor value to an RGB color constant.
</short>
<descr>
<p>
ColorToRGB ensures that TColor values for special and system colors remove
the non-RGB values in the constant (Alpha channel).
</p>
<p>
To get a hexadecimal string for a color value with the bytes in RGB order use:
</p>
<code>
// var ColorStr: String;
ColorStr := '$'+ Red(clMoneyGreen).ToHexString(2) +
Green(clMoneyGreen).ToHexString(2) +
Blue(clMoneyGreen).ToHexString(2);
</code>
<p>
Use RGBToColor to convert individual RGB byte values to a TColor value.
</p>
</descr>
<seealso>
<link id="SysColorToSysColorIndex"/>
<link id="Red"/>
<link id="Green"/>
<link id="Blue"/>
<link id="RGBToColor"/>
<link id="#lcl.lclintf.GetSysColor">GetSysColor</link>
</seealso>
</element>
<element name="ColorToRGB.Result">
<short>
TColor value after the Alpha channel is removed from the input value.
</short>
</element>
<element name="ColorToRGB.Color">
<short>
TColor value converted in the method.
</short>
</element>
<element name="ColorToString">
<short>
Gets a string representation for the specified TColor value.
</short>
<descr>
<p>
<var>ColorToString</var> converts the <var>TColor</var> value in the
<var>Color</var> argument to a string representation for the color. Color may
contain either a named color identifier, like clRed or clForm, or a custom
color value not represented by a color identifier like TColor($00D7FF).
</p>
<!--
TODO: Include when FPC 3.2.4 (or later) is released.
Starting with FPC 3.2.0, additional color constants matching standard HTML
color names are defined in the RTL TColorRec record type. The values, like
TColorRec.Goldenrod and TColorRec.LightSteelBlue, can also be used in the
Color argument.
Nota Bene: Not recommended at the present time. FPC versions 3.20 and 3.2.2
have color constants with the wrong byte order. The byte orders are fixed in
3.2.4 - but that version has not seen a stable release yet.
-->
<p>
For named color identifiers, the return value contains the string
representation for the identifier; e.g. 'clRed' or 'clForm'. For colors which
are not recognized in the standard Colors map, the return value contains the
hexadecimal representation for the color in ABGR (Alpha Blue Green Red) byte
order; e.g. '$0000D7FF'.
</p>
<p>
Use StringToColor or StringToColorDef to convert the string representation for
a color to its TColor equivalent.
</p>
</descr>
<seealso>
<link id="ColorToIdent"/>
<link id="ColorToRGB"/>
<link id="ColorIndex"/>
<link id="StringToColor"/>
<link id="StringToColorDef"/>
</seealso>
</element>
<element name="ColorToString.Result">
<short>
AnsiString with the hexadecimal byte values or the color identifier name for the specified color value.
</short>
</element>
<element name="ColorToString.Color">
<short>
The <var>TColor</var> value examined in the routine.
</short>
</element>
<element name="StringToColor">
<short>
Converts the specified string representation for a color to a TColor value.
</short>
<descr>
<p>
<var>StringToColor</var> is used to convert the string in <var>S</var> to its
value as a <var>TColor</var> type. The S argument can contain a color
identifier like 'clRed' or 'clForm', or a hexadecimal string with the bytes for
the color in GBR byte order like '$00D7FF'.
</p>
<p>
The return value contains the LongInt value for the color. When S is a valid
color identifier, the corresponding color constant is returned; e.g. clRed or
clForm. If S is not a color identifier, it is converted to an Integer value and
cast to the TColor type for use as the return value. The default return value
is clNone.
</p>
<p>
Use StringToColorDef to convert a color string to its TColor value using a
specified default TColor value.
</p>
</descr>
<seealso>
<link id="StringToColorDef"/>
<link id="IdentToColor"/>
</seealso>
</element>
<element name="StringToColor.Result">
<short>
Returns the TColor value corresponding to the value in <var>S</var>.
</short>
</element>
<element name="StringToColor.S">
<short>
String with the color identifier or hexadecimal byte values converted in the
routine.
</short>
</element>
<element name="StringToColorDef">
<short>
Converts the specified string representation for a color to a TColor value
using a specified default value.
</short>
<descr>
<p>
<var>StringToColorDef</var> is used to convert the string in <var>S</var> to
its value as a <var>TColor</var> type. The S argument can contain a color
identifier like 'clRed' or 'clForm', or a hexadecimal string with the bytes for
the color in GBR byte order like '$00D7FF'. The DefaultValue argument contains
the default value used when S is not a valid color string.
</p>
<p>
The return value contains the LongInt value for the color. When S is a valid
color identifier, the corresponding color constant is returned; e.g. clRed or
clForm. If S is not a color identifier, it is converted to an Integer value and
cast to the TColor type for use as the return value. The default return value
is specified in the DefaultValue argument.
</p>
</descr>
<seealso>
<link id="StringToColor"/>
<link id="ColorToString"/>
<link id="IdentToColor"/>
</seealso>
</element>
<element name="StringToColorDef.Result">
<short>
TColor value for the specified string, or the default value when S does not contain a valid representation for a color.
</short>
</element>
<element name="StringToColorDef.S">
<short>
String with the color identifier or hexadecimal byte values converted in the
routine.
</short>
</element>
<element name="StringToColorDef.DefaultValue">
<short>
Default TColor value used when S is not a valid representation for a color.
</short>
</element>
<element name="GetColorValues">
<short>
Executes the specified procedure for each of the non-deprecated Color names
defined for the platform.
</short>
<descr/>
<seealso/>
</element>
<element name="GetColorValues.Proc">
<short/>
</element>
<element name="InvertColor">
<short>
<var>InvertColor</var> - returns the complementary color to the supplied
value - helps to produce a 'negative' image.
</short>
</element>
<element name="InvertColor.Result">
<short>
Returns the inverse of the original color (i.e. a 'negative' effect).
</short>
</element>
<element name="InvertColor.AColor">
<short>
<var>AColor</var> - the original color for processing.
</short>
</element>
<element name="DecColor">
<short>
Decreases the component RGB values in a color by the specified amount (results
in a darker color overall).
</short>
<descr>
<p>
<var>DecColor</var> separates the color specified in AColor into its Red,
Green, and Blue component Byte values. It decreases each the RGB Byte values by
the amount specified in AQuantity with a lower limit of 0 for each of the
Byte values. The modified RGB Byte values are reassembled using RGBToColor to
form the return value for the routine.
</p>
<p>
For example:
</p>
<code>
DkSkyBlue := DecColor(clSkyBlue, 32); // darken by 12.5%
DkKhaki := DecColor(TColor($8CE6F0), 40); // darken custom color
</code>
<p>
Use IncColor to increase (or lighten) the RGB component values in a color.
</p>
</descr>
<seealso>
<link id="RedGreenBlue"/>
<link id="RGBToColor"/>
<link id="IncColor"/>
</seealso>
</element>
<element name="DecColor.Result">
<short>
TColor value with RGB components decremented by the specified amount.
</short>
</element>
<element name="DecColor.AColor">
<short>
TColor value with the original color modified in the function.
</short>
</element>
<element name="DecColor.AQuantity">
<short>
The amount by which the separate RGB values in AColor are decreased.
</short>
</element>
<element name="IncColor">
<short>
Increases the component RGB values in a color by the specified amount (results
in a lighter color overall).
</short>
<descr>
<p>
<var>IncColor</var> separates the color specified in AColor into its Red,
Green, and Blue component Byte values. It increases each the RGB Byte values by
the amount specified in AQuantity with an upper limit of 255 for each of the
Byte values. The modified RGB Byte values are reassembled using RGBToColor to
form the return value for the routine.
</p>
<p>
For example:
</p>
<code>
AColor := IncColor(clNavy, 32); // lighten by 12.5%
</code>
<p>
Use DecColor to decrease (or darken) the RGB component values in a color.
</p>
</descr>
<seealso>
<link id="RedGreenBlue"/>
<link id="RGBToColor"/>
<link id="DecColor"/>
</seealso>
</element>
<element name="IncColor.Result">
<short>
TColor value with RGB components incremented by the specified amount.
</short>
</element>
<element name="IncColor.AColor">
<short>
TColor value with the original color modified in the function.
</short>
</element>
<element name="IncColor.AQuantity">
<short>
The amount by which the separate RGB values in AColor are increased.
</short>
</element>
<element name="IsSysColor">
<short>
Indicates whether the specified color reference is one of the system colors.
</short>
<descr>
<p>
Returns <b>True</b> when <var>AColor</var> has value greater than or equal to
the value in the <var>SYS_COLOR_BASE</var> constant.
</p>
</descr>
<seealso>
<link id="#lcl.lcltype.SYS_COLOR_BASE">SYS_COLOR_BASE</link>
</seealso>
</element>
<element name="IsSysColor.Result">
<short><b>True</b> when AColor is a system color.</short>
</element>
<element name="IsSysColor.AColor">
<short>TColorRef value examined in the routine.</short>
</element>
<element name="Blue">
<short>Finds the <var>Blue</var> component of the supplied color.</short>
<descr>
<p>
Does <b>not</b> work with system color values.
</p>
</descr>
<seealso/>
</element>
<element name="Blue.Result">
<short>Returns the Blue component of the color specified in RGB.</short>
</element>
<element name="Blue.rgb">
<short>The color for processing, expressed as a RGB value.</short>
</element>
<element name="Green">
<short>Finds the <var>Green</var> component of the supplied color.</short>
<descr>
<p>
Does <b>not</b> work with system color values.
</p>
</descr>
<seealso/>
</element>
<element name="Green.Result">
<short>Returns the Green component of the color specified in RGB.</short>
</element>
<element name="Green.rgb">
<short>The color for processing, expressed as RGB.</short>
</element>
<element name="Red">
<short>Finds the <var>Red</var> component of the supplied color.</short>
<descr>
<p>
Does <b>not</b> work with system color values.
</p>
</descr>
<seealso/>
</element>
<element name="Red.Result">
<short>Returns the Red component of the color specified in <var>RGB</var>.
</short>
</element>
<element name="Red.rgb">
<short>The color for processing, expressed as RGB.</short>
</element>
<element name="RGBToColor">
<short>Combines the values for Red, Green and Blue into a TColor value.
</short>
</element>
<element name="RGBToColor.Result">
<short>TColor value for the specified color components.</short>
</element>
<element name="RGBToColor.R">
<short>Byte with the Red color component.</short>
</element>
<element name="RGBToColor.G">
<short>Byte with the Green color component.</short>
</element>
<element name="RGBToColor.B">
<short>Byte with the Blue color component.</short>
</element>
<element name="RedGreenBlue">
<short>
<var>RedGreenBlue</var> - decomposes a composite color into its component
Red, Green and Blue values.
</short>
<descr>
<p>Does <b>not</b> work with system color values.
</p>
</descr>
<seealso/>
</element>
<element name="RedGreenBlue.rgb">
<short>The color for processing, expressed as RGB.</short>
</element>
<element name="RedGreenBlue.Red">
<short>The <var>Red</var> component of the color defined in <var>RGB</var>.
</short>
</element>
<element name="RedGreenBlue.Green">
<short>The <var>Green</var> component of the color defined in <var>RGB</var>.
</short>
</element>
<element name="RedGreenBlue.Blue">
<short>The <var>Blue</var> component of the color defined in <var>RGB</var>.
</short>
</element>
<element name="FPColorToTColorRef">
<short>Converts a TFPColor value to a Cardinal color reference used in API
system color constants.
</short>
<descr/>
<seealso/>
</element>
<element name="FPColorToTColorRef.Result">
<short/>
</element>
<element name="FPColorToTColorRef.FPColor">
<short/>
</element>
<element name="FPColorToTColor">
<short>
<var>FPColorToTColor</var> - converts a color specified as a
<var>FPColor</var> to a color of type
<var>TColor</var>.
</short>
<descr/>
<seealso/>
</element>
<element name="FPColorToTColor.Result">
<short>Returns the color specified in <var>FPColor</var> as a color of type
<var>TColor</var>.
</short>
</element>
<element name="FPColorToTColor.FPColor">
<short>The color for processing, expressed as a <var>FPColor</var>.
</short>
</element>
<element name="TColorToFPColor">
<short>
<var>TColorToFPColor</var> - converts a color of type <var>TColor</var> to
one specified as a <var>FPColor</var>.
</short>
<descr>
<p>
Does <b>not</b> work with system color values.
</p>
</descr>
<seealso/>
</element>
<element name="TColorToFPColor.Result">
<short>Returns the color specified as a FPColor.</short>
</element>
<element name="TColorToFPColor.c">
<short>
<var>c</var> - the supplied color specified as type <var>TColor</var>.
</short>
</element>
<element name="GetCharsetValues">
<short>
Calls the specified procedure for each of the character set names in
FontCharsets.
</short>
<descr>
<p>
Not used in the current LCL implementation.
</p>
</descr>
<seealso/>
</element>
<element name="GetCharsetValues.Proc">
<short/>
</element>
<element name="CharsetToIdent">
<short>
Converts the specified numeric character set identifier to its representation
as a string.
</short>
<descr>
<p>
Calls the RTL IntToIdent routine to locate the TIdentMapEntry for the
specified value in the FontCharsets constant.
</p>
</descr>
<seealso>
<link id="IdentToCharset"/>
<link id="FontCharsets"/>
<link id="#rtl.classes.IntToIdent">IntToIdent</link>
<link id="#rtl.classes.IdentToInt">IdentToInt</link>
<link id="#rtl.classes.TIdentMapEntry">TIdentMapEntry</link>
</seealso>
</element>
<element name="CharsetToIdent.Result">
<short>
<b>True</b> if the specified numeric value exists in the FontCharsets
constant.
</short>
</element>
<element name="CharsetToIdent.Charset">
<short>
Numeric character set identifier converted in the routine.
</short>
</element>
<element name="CharsetToIdent.Ident">
<short>
Returns the string representing the specified character set number. It
returns the value on entry if Charset is not found.
</short>
</element>
<element name="IdentToCharset">
<short>
Converts the specified character set identifier to the its numeric
representation.
</short>
<descr>
<p>
Calls the RTL IdentToInt routine to locate the TIdentMapEntry for the
specified value in the FontCharsets constant.
</p>
</descr>
<seealso>
<link id="CharsetToIdent"/>
<link id="FontCharsets"/>
<link id="#rtl.classes.IntToIdent">IntToIdent</link>
<link id="#rtl.classes.IdentToInt">IdentToInt</link>
<link id="#rtl.classes.TIdentMapEntry">TIdentMapEntry</link>
</seealso>
</element>
<element name="IdentToCharset.Result">
<short>
<b>True</b> if the specified string value exists in the FontCharsets
constant.
</short>
</element>
<element name="IdentToCharset.Ident">
<short>
String with the character set identifier to locate in the FontCharsets
constant.
</short>
</element>
<element name="IdentToCharset.Charset">
<short>
Returns the numeric representation for the specified character set name. It returns the value on entry if Ident is not found.
</short>
</element>
<element name="GetFontData">
<short>Gets font data for the specified font handle.</short>
<descr>
<p>
Values from <var>DefFontData</var> are assigned as the default return value
for the routine. No additional actions are performed in the routine when
<var>Font</var> contains <b>0</b> (for an unassigned font handle). When the
font handle is valid, the following members in the return value are updated:
</p>
<ul>
<li>Name</li>
<li>Height</li>
<li>Style</li>
<li>CharSet</li>
<li>Pitch</li>
<li>Orientation</li>
<li>Handle</li>
</ul>
</descr>
<seealso/>
</element>
<element name="GetFontData.Result">
<short>TFontData structure with values read in the routine.</short>
</element>
<element name="GetFontData.Font">
<short>Font handle with the logical font data read in the routine.</short>
</element>
<element name="GetDefFontCharSet">
<short>
Gets the default TFontCharSet value for the platform.
</short>
<descr>
<p>
Returns the value for the <var>DEFAULT_CHARSET</var> constant.
</p>
</descr>
<seealso>
<link id="#lcl.lcltype.DEFAULT_CHARSET">DEFAULT_CHARSET</link>
</seealso>
</element>
<element name="GetDefFontCharSet.Result">
<short/>
</element>
<element name="IsFontNameXLogicalFontDesc">
<short>Determines if the specified font name is a valid X Logical Font
Description.
</short>
<descr>
<p>
<var>IsFontNameXLogicalFontDesc</var> is a <var>Boolean</var> function used
to determine whether the specified font name is a valid X Logical Font
Description (<b>XLFD</b>).
</p>
</descr>
<seealso/>
</element>
<element name="IsFontNameXLogicalFontDesc.Result">
<short><b>True</b> when the font name is a valid XLFD font name.</short>
</element>
<element name="IsFontNameXLogicalFontDesc.LongFontName">
<short>Font name with segments examined in the routine.</short>
</element>
<element name="XLFDNameToLogFont">
<short>
Gets a logical font record with values representing the specified XLFD font
descriptor.
</short>
<descr>
<p>
XLFDName contains the font descriptor examined in the function. Its value
consists of delimited segments that contain the attributes for the font,
including:
</p>
<dl>
<dt>Registry</dt>
<dd>Ignored.</dd>
<dt>Foundry</dt>
<dd>Ignored.</dd>
<dt>FamilyName</dt>
<dd>Font family.</dd>
<dt>WeightName</dt>
<dd>Font weight.</dd>
<dt>Slant</dt>
<dd>Italic, Reverse Italic, Oblique.</dd>
<dt>SetwidthName</dt>
<dd>Normal, Condensed, Narrow, Wide, Expanded.</dd>
<dt>AddStyleName</dt>
<dd>Orientation or rotation.</dd>
<dt>PixelSize</dt>
<dd>Height in pixels.</dd>
<dt>PointSize</dt>
<dd>Height in points.</dd>
<dt>ResolutionX</dt>
<dd>Horizontal resolution in points.</dd>
<dt>ResolutionY</dt>
<dd>Vertical resolution in points.</dd>
<dt>Spacing</dt>
<dd>Monospace, Proportional, Character Cell (Fixed Pitch).</dd>
<dt>AverageWidth</dt>
<dd>Average character width.</dd>
<dt>CharSetRegistry</dt>
<dd>Ignored.</dd>
<dt>CharSetCoding</dt>
<dd>Ignored.</dd>
</dl>
<p>
Values read from the segments are converted, translated, and massaged into
the values expected in the logical font record.
</p>
</descr>
<seealso/>
</element>
<element name="XLFDNameToLogFont.Result">
<short>TLogFont instance with values for the XLFD font.</short>
</element>
<element name="XLFDNameToLogFont.XLFDName">
<short>Font descriptor examined in the routine.</short>
</element>
<element name="ExtractXLFDItem">
<short>
Gets the value for the specified segment in an XLFD font descriptor.
</short>
<descr/>
<seealso/>
</element>
<element name="ExtractXLFDItem.Result">
<short>Value for the XLFD segment, or an empty string when not found.</short>
</element>
<element name="ExtractXLFDItem.XLFDName">
<short>XLFD font descriptor examined in the routine.</short>
</element>
<element name="ExtractXLFDItem.Index">
<short>
Ordinal position (starting at 0) for the requested segment in XLFDName.
</short>
</element>
<element name="ExtractFamilyFromXLFDName">
<short>
Gets the family name for the typeface used in the XLFD font descriptor.
</short>
<descr>
<p>
Parses a font name in XLFD format and extracts the FamilyName sequence with
the typeface family name.
</p>
</descr>
<seealso/>
</element>
<element name="ExtractFamilyFromXLFDName.Result">
<short>Typeface family name found in XLFDName.</short>
</element>
<element name="ExtractFamilyFromXLFDName.XLFDName">
<short>XLFD font descriptor examined in the routine.</short>
</element>
<element name="ClearXLFDItem">
<short>
Replaces the specified XLFD segment value with the '*' wildcard.
</short>
<descr/>
<seealso/>
</element>
<element name="ClearXLFDItem.Result">
<short/>
</element>
<element name="ClearXLFDItem.LongFontName">
<short/>
</element>
<element name="ClearXLFDItem.Index">
<short/>
</element>
<element name="ClearXLFDHeight">
<short>
Replaces the PixelSize, PointSize, ResolutionX, ResolutionY and AverageWidth
segments in an XLFD font name with the '*' wildcard.
</short>
<descr/>
<seealso/>
</element>
<element name="ClearXLFDHeight.Result">
<short/>
</element>
<element name="ClearXLFDHeight.LongFontName">
<short/>
</element>
<element name="ClearXLFDPitch">
<short>
Replaces the spacing for a XLFD font descriptor format with a '*' wildcard.
</short>
<descr/>
<seealso/>
</element>
<element name="ClearXLFDPitch.Result">
<short/>
</element>
<element name="ClearXLFDPitch.LongFontName">
<short/>
</element>
<element name="ClearXLFDStyle">
<short>
Replaces the WeightName, Slant and SetwidthName segments in an XLFD font name
with the '*' wildcard.
</short>
<descr/>
<seealso/>
</element>
<element name="ClearXLFDStyle.Result">
<short/>
</element>
<element name="ClearXLFDStyle.LongFontName">
<short/>
</element>
<element name="XLFDHeightIsSet">
<short>
Checks whether an explicit value is assigned to XLFD segments controlling
font height.
</short>
<descr/>
<seealso/>
</element>
<element name="XLFDHeightIsSet.Result">
<short/>
</element>
<element name="XLFDHeightIsSet.LongFontName">
<short/>
</element>
<element name="FontNameToPangoFontDescStr">
<short>
Parses the specified font name into X Logical Font Descriptor attributes.
</short>
<descr>
<p>
Used in the implementation of the GTK2 widgetset to create font handles for
logical fonts.
</p>
</descr>
<seealso/>
</element>
<element name="FontNameToPangoFontDescStr.LongFontName">
<short/>
</element>
<element name="FontNameToPangoFontDescStr.aFamily">
<short/>
</element>
<element name="FontNameToPangoFontDescStr.aStyle">
<short/>
</element>
<element name="FontNameToPangoFontDescStr.aSize">
<short/>
</element>
<element name="FontNameToPangoFontDescStr.aSizeInPixels">
<short/>
</element>
<element name="TOnLoadGraphicFromClipboardFormat">
<short>
Specifies a procedure type used to load a graphic image from a clipboard
format.
</short>
<descr/>
<seealso/>
</element>
<element name="TOnLoadGraphicFromClipboardFormat.Dest">
<short/>
</element>
<element name="TOnLoadGraphicFromClipboardFormat.ClipboardType">
<short/>
</element>
<element name="TOnLoadGraphicFromClipboardFormat.FormatID">
<short/>
</element>
<element name="TOnSaveGraphicToClipboardFormat">
<short>
Specifies a procedure type used to save a graphic image to a clipboard format.
</short>
<descr/>
<seealso/>
</element>
<element name="TOnSaveGraphicToClipboardFormat.Src">
<short/>
</element>
<element name="TOnSaveGraphicToClipboardFormat.ClipboardType">
<short/>
</element>
<element name="TOnSaveGraphicToClipboardFormat.FormatID">
<short/>
</element>
<element name="TOnGetSystemFont">
<short>
Specifies a function type which returns a HFONT handle for a system font.
</short>
<descr>
<p>
<var>TOnGetSystemFont</var> is the type used to implement the
<var>OnGetSystemFont</var> variable in the <file>graphics</file> unit.
</p>
</descr>
<seealso>
<link id="OnGetSystemFont"/>
<link id="#lcl.forms.TScreen">TScreen</link>
</seealso>
</element>
<element name="TOnGetSystemFont.Result">
<short>HFONT handle for the system font.</short>
</element>
<element name="OnLoadSaveClipBrdGraphicValid">
<short>
Indicates whether clipboard formats for graphic types have been registered
for the application.
</short>
<descr/>
<seealso/>
</element>
<element name="OnLoadGraphicFromClipboardFormat">
<short>
Address of the routine used to load a graphic from a clipboard format.
</short>
<descr/>
<seealso/>
</element>
<element name="OnSaveGraphicToClipboardFormat">
<short>
Address of the routine used to save a graphic to a clipboard format.
</short>
<descr/>
<seealso/>
</element>
<element name="OnGetSystemFont">
<short>
Address of the routine used to get the handle for the system font.
</short>
<descr/>
<seealso/>
</element>
<element name="TestStreamIsBMP">
<short>
Examines values in the specified stream to determine if it contains a .BMP
image.
</short>
<descr/>
<seealso/>
</element>
<element name="TestStreamIsBMP.Result">
<short>
<b>True</b> when the stream contains a valid .BMP signature at the required
position.
</short>
</element>
<element name="TestStreamIsBMP.AStream">
<short>TStream instance examined in the routine.</short>
</element>
<element name="TestStreamIsXPM">
<short>
Examines values in the specified stream to determine if it contains a .XPM
image.
</short>
<descr>
<p>
Skip comments and searches for the 'static [const] [unsigned] char*'
statement in the stream.
</p>
</descr>
<seealso/>
</element>
<element name="TestStreamIsXPM.Result">
<short><b>True</b> when .XPM signature is found in the stream.</short>
</element>
<element name="TestStreamIsXPM.AStream">
<short>TStream instance examined in the routine.</short>
</element>
<element name="TestStreamIsIcon">
<short>
Examines values in the specified stream to determine if it contains a .ICO
image.
</short>
<descr/>
<seealso/>
</element>
<element name="TestStreamIsIcon.Result">
<short><b>True</b> when the .ICO signature is found in the stream.</short>
</element>
<element name="TestStreamIsIcon.AStream">
<short>TStream instance examined in the routine.</short>
</element>
<element name="TestStreamIsCursor">
<short>
Examines values in the specified stream to determine if it contains a .CUR
cursor image.
</short>
<descr/>
<seealso/>
</element>
<element name="TestStreamIsCursor.Result">
<short><b>True</b> when the .CUR signature is found in the stream.</short>
</element>
<element name="TestStreamIsCursor.AStream">
<short>TStream instance examined in the routine.</short>
</element>
<element name="XPMToPPChar">
<short>
Converts an XPM image file into an array of PChar values.
</short>
<descr>
<p>
Converts an XPM image file into an array of PChar values. The memory is
allocated as one block, so freeing can simply be done using FreeMem. The data
is just behind the array.
</p>
<p>
An XPM file can be included in a C source file, because it has a C syntax. In
the compiled program it is simply an array of PChar. This function converts
an XPM source file to the same array, by removing the comments and the string
constant symbols.
</p>
</descr>
<seealso/>
</element>
<element name="XPMToPPChar.Result">
<short/>
</element>
<element name="XPMToPPChar.XPM">
<short/>
</element>
<element name="LazResourceXPMToPPChar">
<short>Loads an XPM image resource into an array.</short>
<descr>
<p>
Loads an XPM image from the specified resource name into an array of PChar
values. See <link id="XPMToPPChar">XPMToPPChar</link> for more information.
</p>
</descr>
<seealso>
<link id="XPMToPPChar"/>
</seealso>
</element>
<element name="LazResourceXPMToPPChar.Result">
<short>Pointer to the memory allocated for the XPM image resource.</short>
</element>
<element name="LazResourceXPMToPPChar.ResourceName">
<short>Name of the XPM image resource loaded in the routine.</short>
</element>
<element name="ReadXPMFromStream">
<short>
Converts an XPM image stored in the specified stream into an array of PChar
values.
</short>
<descr>
<p>
See <link id="XPMToPPChar">XPMToPPChar</link> for more info.
</p>
</descr>
<seealso/>
</element>
<element name="ReadXPMFromStream.Result">
<short/>
</element>
<element name="ReadXPMFromStream.Stream">
<short/>
</element>
<element name="ReadXPMFromStream.Size">
<short/>
</element>
<element name="ReadXPMSize">
<short>
Reads the first line from an XPM PChar array which contains the width, height
and number of colors for the XPM data.
</short>
<descr/>
<seealso/>
</element>
<element name="ReadXPMSize.Result">
<short/>
</element>
<element name="ReadXPMSize.XPM">
<short/>
</element>
<element name="ReadXPMSize.Width">
<short/>
</element>
<element name="ReadXPMSize.Height">
<short/>
</element>
<element name="ReadXPMSize.ColorCount">
<short/>
</element>
<element name="LoadCursorFromLazarusResource">
<short>
<var>LoadCursorFromLazarusResource</var> - loads a named cursor handle from
the Lazarus Resource (.LRS).
</short>
</element>
<element name="LoadCursorFromLazarusResource.Result">
<short/>
</element>
<element name="LoadCursorFromLazarusResource.ACursorName">
<short/>
</element>
<element name="LoadBitmapFromLazarusResource">
<short>Deprecated - technically a bitmap is created, not loaded.</short>
<descr/>
<seealso/>
</element>
<element name="LoadBitmapFromLazarusResource.Result">
<short/>
</element>
<element name="LoadBitmapFromLazarusResource.ResourceName">
<short/>
</element>
<element name="LoadBitmapFromLazarusResourceHandle">
<short>Deprecated - technically a bitmap is created, not loaded.</short>
<descr/>
<seealso/>
</element>
<element name="LoadBitmapFromLazarusResourceHandle.Result">
<short/>
</element>
<element name="LoadBitmapFromLazarusResourceHandle.Handle">
<short/>
</element>
<element name="CreateGraphicFromResourceName">
<short>
Creates and loads a TGraphic instance with the content from the specified
resource instance handle and resource name.
</short>
<descr>
<p>
<var>CreateGraphicFromResourceName</var> calls the RTL FindResource routine to
get an FPC resource handle for the LCL handle in Instance and the resource
with the name in ResName.
</p>
<p>
Both Icon and Cursor group resource types are checked using FindResource. When
a valid resource handle (one with a non-zero value) is available, a TIcon or
TCursorImage instance is created and used as the return value for the routine.
The LoadFromResourceHandle method in the class instance is called to load the
image content for the resource.
</p>
<p>
If a handle is not found for an Icon or a Cursor resource type, the
CreateBitmapFromResourceName routine is called to create and load the content
in the TGraphic instance.
</p>
<p>
CreateGraphicFromResourceName is used in the implementation of the
TCustomImageList.AddResourceName method.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TGraphic"/>
<link id="TIcon.LoadFromResourceHandle"/>
<link id="TCursorImage.LoadFromResourceHandle"/>
<link id="#lcl.imglist.TCustomImageList.AddResourceName">TCustomImageList.AddResourceName</link>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="CreateGraphicFromResourceName.Result">
<short>
TGraphic (or descendant) instance with the graphic content loaded for the
specified resource.
</short>
</element>
<element name="CreateGraphicFromResourceName.Instance">
<short>
TLCLHandle instance for the application resource accessed in the routine.
</short>
</element>
<element name="CreateGraphicFromResourceName.ResName">
<short>
Name for the resource loaded from the specified resource handle.
</short>
</element>
<element name="CreateBitmapFromResourceName">
<short>
Creates a TCustomBitmap instance with the content for the named Lazarus
resource.
</short>
<descr>
<p>
Used in the implementation of components, and the LCL, to get a bitmap image
stored in a Lazarus resource. Typically used to load button glyphs and icons
displayed on the component palette in the Lazarus IDE.
</p>
</descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element>
<element name="CreateBitmapFromResourceName.Result">
<short>Bitmap instance created and loaded in the routine.</short>
</element>
<element name="CreateBitmapFromResourceName.Instance">
<short>
Handle for the Lazarus resource with the content for the bitmap.
</short>
</element>
<element name="CreateBitmapFromResourceName.ResName">
<short>Name for the RT_BITMAP resource loaded in the routine.</short>
</element>
<element name="CreateBitmapFromLazarusResource">
<short>Creates and loads a Bitmap from a Lazarus Resource (.lrs) file.
</short>
<descr>
<p>
<var>CreateBitmapFromLazarusResource</var> is an overloaded
<var>TCustomBitmap</var> function used to create and populate a bitmap with
the content specified by the arguments to the routine.
</p>
<p>
The overloaded variants allow either a resource name (AName) or TLResource
handle (AHandle) to be used to select the content for the bitmap. The variants
with the AMinimumClass argument allow the class type for the graphic to be
specified. TCustomBitmapClass is the default class type used in the overloaded
variants.
</p>
<p>
CreateBitmapFromLazarusResource uses a temporary TLazarusResourceStream
instance to load the content from the Lazarus resource.
</p>
<p>
CreateBitmapFromLazarusResource is used in the implementation of routines like
LoadBitmapFromLazarusResourceHandle and GetDefaultGlyph (in
<file>ImgList.pp</file>).
</p>
</descr>
<seealso>
<link id="TCustomBitmap"/>
<link id="TCustomBitmapClass"/>
<link id="LoadBitmapFromLazarusResourceHandle"/>
<link id="#lcl.imglist.GetDefaultGlyph">GetDefaultGlyph</link>
<link id="#lcl.lresources.TLazarusResourceStream">TLazarusResourceStream</link>
<link id="#lcl.lresources.TLResource">TLResource</link>
</seealso>
</element>
<element name="CreateBitmapFromLazarusResource.Result">
<short>
TCustomBitmap with the graphic content created in the routine.
</short>
</element>
<element name="CreateBitmapFromLazarusResource.AName">
<short>
Name for the graphic resource loaded in the routine.
</short>
</element>
<element name="CreateBitmapFromLazarusResource.AMinimumClass">
<short>
Class type required to load the content for the specified resource. The
default class type is TCustomBitmapClass.
</short>
</element>
<element name="CreateBitmapFromLazarusResource.AHandle">
<short>
Handle for the Lazarus resource accessed in the routine.
</short>
</element>
<element name="CreateCompatibleBitmaps">
<short>
Creates a TLazIntfImage instance for the specified raw image data, and
returns the handles to the image and optional mask information.
</short>
<descr/>
<seealso/>
</element>
<element name="CreateCompatibleBitmaps.Result">
<short>
<b>True</b> if the widgetset class was able to create handles using the raw
image data.
</short>
</element>
<element name="CreateCompatibleBitmaps.ARawImage">
<short/>
</element>
<element name="CreateCompatibleBitmaps.ABitmap">
<short/>
</element>
<element name="CreateCompatibleBitmaps.AMask">
<short/>
</element>
<element name="CreateCompatibleBitmaps.ASkipMask">
<short/>
</element>
<element name="CreateBitmapFromFPImage">
<short>
Creates a Bitmap with the content from the specified TFPCustomImage instance.
</short>
<descr>
<p>Creates a temporary <var>TLazIntfImage</var> instance used to copy the
image content in <var>Img</var> into the <var>TBitmap</var> instance in the
return value.
</p>
</descr>
<seealso>
<link id="#lcl.intfgraphics.TLazIntfImage">TLazIntfImage</link>
<link id="TRasterImage.LoadFromIntfImage"/>
</seealso>
</element>
<element name="CreateBitmapFromFPImage.Result">
<short>TBitmap instance created and loaded in the routine.</short>
</element>
<element name="CreateBitmapFromFPImage.Img">
<short>TFPCustomImage with the content copied into the return value.</short>
</element>
<element name="AllocPatternBitmap">
<short>
Ensures that a Pattern Bitmap with the specified colors exists in the Pattern
cache.
</short>
<descr>
<p>
<var>AllocPatternBitmap</var> is a <var>TBitmap</var> function used to ensure
that a bitmap with the specified colors exists in the internal pattern cache.
</p>
<p>
AllocPatternBitmap tries to locate a <var>TPatternBitmap</var> instance with
the colors specified in <var>colorBG</var> and <var>colorFG</var>. If the
requested Pattern Bitmap does not already exist, it is created and added to
the pattern cache.
</p>
<p>
The return value is the TBitmap instance stored in the Bitmap property for
the cached TPatternBitmap instance. No actions are performed if the Pattern
cache has not been assigned; the return value is Nil in this situation.
</p>
</descr>
<seealso>
<link id="TBitmap"/>
</seealso>
</element>
<element name="AllocPatternBitmap.Result">
<short>Bitmap retrieved or created with the specified colors.</short>
</element>
<element name="AllocPatternBitmap.colorBG">
<short>Background color for the Bitmap.</short>
</element>
<element name="AllocPatternBitmap.colorFG">
<short>Foreground color for the Bitmap.</short>
</element>
<element name="ScreenInfo">
<short>
Contains display attributes for the current screen in an application.
</short>
<descr>
<p>
<var>ScreenInfo</var> is a <var>TScreenInfo</var> variable which contains
display attributes for the current screen in an application, including:
</p>
<dl>
<dt>PixelsPerInchX</dt>
<dd>Horizontal display density (Pixels Per Inch). Default is 72.</dd>
<dt>PixelsPerInchY</dt>
<dd>Vertical display density (Pixels Per Inch). Default is 72.</dd>
<dt>ColorDepth</dt>
<dd>Number of colors used in image data. Default is 24.</dd>
<dt>Initialized</dt>
<dd>Default value is <b>False</b>.</dd>
</dl>
<p>
Values in ScreenInfo are updated when an application initializes the
widgetset classes used in the LCL interface.
</p>
<p>
ScreenInfo is used in the implementation of the <var>ScaleX</var> and
<var>ScaleY</var> routines.
</p>
</descr>
<seealso>
<link id="#lcl.lcltype.TScreenInfo">TScreenInfo</link>
</seealso>
</element>
<element name="FontResourceCache">
<short>Variable used as the cache for Font resources.</short>
<descr>
<p>
<var>FontResourceCache</var> is a <var>TFontHandleCache</var> variable used
as the cache for Font resources. FontResourceCache allows reference-counted
font handles to be created or retrieved when the <var>ReferenceNeeded</var>
method in <var>TFont</var> is called. Values in FontResourceCache are
maintained when the FreeReference method in TFont is called.
</p>
<p>
Resources for FontResourceCache are allocated when the
<file>Graphuic.pp</file> unit is initialized, and freed when the unit is
finalized.
</p>
</descr>
<seealso>
<link id="TFontHandleCache"/>
</seealso>
</element>
<element name="PenResourceCache">
<short>Variable used as the cache for Pen resources.</short>
<descr/>
<seealso>
<link id="TPenHandleCache"/>
</seealso>
</element>
<element name="BrushResourceCache">
<short>Variable used as the cache for Brush resources.</short>
<descr/>
<seealso>
<link id="TBrushHandleCache"/>
</seealso>
</element>
<element name="FontCharsets">
<short>
Array constant with TIdentMapEntry values for character sets in TFont
instances.
</short>
<descr>
<p>
Array elements contain <var>TIdentMapEntry</var> record instances which map
the numeric identifier for a character set to its representation as a string
value.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TIdentMapEntry">TIdentMapEntry</link>
</seealso>
</element>
<element name="DbgS">
<short>
Creates a formatted debugger message with values from the TFontStyles set.
</short>
<descr>
<p>
The return value contains the formatted set of font styles, with content like:
</p>
<code>'fsBold,fsItalic,fsStrikeout,fsUnderline'</code>
</descr>
<seealso/>
</element>
<element name="DbgS.Result">
<short>Message formatted for use in the debugger.</short>
</element>
<element name="DbgS.Style">
<short>Set of TFontStyle values included in the formatted string.</short>
</element>
<element name="ScaleX">
<short>
Resizes the specified horizontal size from a given display density to the
current screen PPI.
</short>
<descr>
<p>
Multiplies the values in <var>SizeX</var> and the <var>PixelsPerInchX</var>
member in <var>ScreenInfo</var>, and divides the product by the value in
<var>FromDPI</var>. The return value is rounded to the nearest Integer value.
</p>
</descr>
<seealso>
<link id="TScreenInfo"/>
<link id="#lcl.lcltype.MulDiv">MulDiv</link>
</seealso>
</element>
<element name="ScaleX.Result">
<short>New horizontal size after scaling.</short>
</element>
<element name="ScaleX.SizeX">
<short>Size value scaled in the routine.</short>
</element>
<element name="ScaleX.FromDPI">
<short>Original display density (Pixels per Inch).</short>
</element>
<element name="ScaleY">
<short>
Resizes the specified vertical size from a given display density to the
current screen PPI.
</short>
<descr>
<p>
Multiplies the values in <var>SizeY</var> and the <var>PixelsPerInchY</var>
member in <var>ScreenInfo</var>, and divides the product by the value in
<var>FromDPI</var>. The return value is rounded to the nearest Integer value.
</p>
</descr>
<seealso>
<link id="TScreenInfo"/>
<link id="#lcl.lcltype.MulDiv">MulDiv</link>
</seealso>
</element>
<element name="ScaleY.Result">
<short>New vertical size after scaling.</short>
</element>
<element name="ScaleY.SizeY">
<short>Size value scaled in the routine.</short>
</element>
<element name="ScaleY.FromDPI">
<short>Original display density (Pixels per Inch).</short>
</element>
<element name="Register">
<short>Registers TPersistent classes for use in the RTL.</short>
<descr>
<p>
<var>Register</var> calls <var>RegisterClasses</var> to add the following
persistent objects to the list of classes available in the RTL:
</p>
<ul>
<li>TBitmap</li>
<li>TPixmap</li>
<li>TPortableNetworkGraphic</li>
<li>TPortableAnyMapGraphic (When DisableLCLPNM is not defined)</li>
<li>TJpegImage (When DisableLCLJPEGis not defined)</li>
<li>TGIFImage (When DisableLCLGIF is not defined)</li>
<li>TPicture</li>
<li>TFont</li>
<li>TPen</li>
<li>TBrush</li>
<li>TRegion</li>
</ul>
</descr>
<seealso>
<link id="RegisterClasses"/>
<link id="#rtl.classes.RegisterClass">RegisterClass</link>
</seealso>
</element>
<element name="UpdateHandleObjects">
<short>Renews handles for Fonts, Pens, and Brushes.</short>
<descr/>
<seealso/>
</element>
</module>
<!-- Graphics -->
</package>
</fpdoc-descriptions>
|