/usr/lib/perl5/PDL/IO/GD.pm is in pdl 1:2.007-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #
# GENERATED WITH PDL::PP! Don't modify!
#
package PDL::IO::GD;
@EXPORT_OK = qw( PDL::PP write_png PDL::PP write_png_ex PDL::PP write_true_png PDL::PP write_true_png_ex write_png_best write_true_png_best recompress_png_best load_lut read_png read_true_png PDL::PP _read_true_png PDL::PP _read_png PDL::PP _gd_image_to_pdl_true PDL::PP _gd_image_to_pdl PDL::PP _pdl_to_gd_image_true PDL::PP _pdl_to_gd_image_lut read_png_lut PDL::PP _read_png_lut PDL::PP _gdImageColorAllocates PDL::PP _gdImageColorAllocateAlphas PDL::PP _gdImageSetPixels PDL::PP _gdImageLines PDL::PP _gdImageDashedLines PDL::PP _gdImageRectangles PDL::PP _gdImageFilledRectangles PDL::PP _gdImageFilledArcs PDL::PP _gdImageArcs PDL::PP _gdImageFilledEllipses gdAlphaBlend gdTrueColor gdTrueColorAlpha gdFree gdFontGetLarge gdFontGetSmall gdFontGetMediumBold gdFontGetGiant gdFontGetTiny );
%EXPORT_TAGS = (Func=>[@EXPORT_OK]);
use PDL::Core;
use PDL::Exporter;
use DynaLoader;
@ISA = ( 'PDL::Exporter','DynaLoader' );
push @PDL::Core::PP, __PACKAGE__;
bootstrap PDL::IO::GD ;
=head1 NAME
PDL::IO::GD - Interface to the GD image library.
=head1 SYNOPSIS
my $pdl = sequence(byte, 30, 30);
write_png($pdl, load_lut($lutfile), "test.png");
write_true_png(sequence(100, 100, 3), "test_true.png");
my $image = read_png("test.png");
my $image = read_true_png("test_true_read.png");
write_true_png($image, "test_true_read.out.png");
my $lut = read_png_lut("test.png");
$pdl = sequence(byte, 30, 30);
write_png_ex($pdl, load_lut($lutfile), "test_nocomp.png", 0);
write_png_ex($pdl, load_lut($lutfile), "test_bestcomp1.png", 9);
write_png_best($pdl, load_lut($lutfile), "test_bestcomp2.png");
$pdl = sequence(100, 100, 3);
write_true_png_ex($pdl, "test_true_nocomp.png", 0);
write_true_png_ex($pdl, "test_true_bestcomp1.png", 9);
write_true_png_best($pdl, "test_true_bestcomp2.png");
recompress_png_best("test_recomp_best.png");
=head1 DESCRIPTION
This is the "General Interface" for the PDL::IO::GD library, and is actually several
years old at this point (read: stable). If you're feeling frisky, try the new OO
interface described below.
The general version just provides several image IO utility functions you can use with
piddle variables. It's deceptively useful, however.
=cut
=head1 FUNCTIONS
=cut
=head2 write_png
=for sig
Signature: (byte img(x,y); byte lut(i,j); char* filename)
Writes a 2-d PDL varable out to a PNG file, using the supplied color look-up-table piddle
(hereafter referred to as a LUT).
The LUT contains a line for each value 0-255 with a corresponding R, G, and B value.
=for bad
write_png does not process bad values.
It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles.
=cut
*write_png = \&PDL::write_png;
=head2 write_png_ex
=for sig
Signature: (img(x,y); lut(i,j); char* filename; int level)
=for ref
Same as write_png(), except you can specify the compression level (0-9) as the last arguement.
=for bad
write_png_ex does not process bad values.
It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles.
=cut
*write_png_ex = \&PDL::write_png_ex;
=head2 write_true_png
=for sig
Signature: (img(x,y,z); char* filename)
Writes an (x, y, z(3)) PDL varable out to a PNG file, using a true color format.
This means a larger file on disk, but can contain more than 256 colors.
=for bad
write_true_png does not process bad values.
It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles.
=cut
*write_true_png = \&PDL::write_true_png;
=head2 write_true_png_ex
=for sig
Signature: (img(x,y,z); char* filename; int level)
=for ref
Same as write_true_png(), except you can specify the compression level (0-9) as the last arguement.
=for bad
write_true_png_ex does not process bad values.
It will set the bad-value flag of all output piddles if the flag is set for any of the input piddles.
=cut
*write_true_png_ex = \&PDL::write_true_png_ex;
=head2 write_png_best( $img(piddle), $lut(piddle), $filename )
Like write_png(), but it assumes the best PNG compression (9).
=cut
sub write_png_best
{
my $img = shift;
my $lut = shift;
my $filename = shift;
return write_png_ex( $img, $lut, $filename, 9 );
} # End of write_png_best()...
=head2 write_true_png_best( $img(piddle), $filename )
Like write_true_png(), but it assumes the best PNG compression (9).
=cut
sub write_true_png_best
{
my $img = shift;
my $filename = shift;
return write_true_png_ex( $img, $filename, 9 );
} # End of write_true_png_best()...
=head2 load_lut( $filename )
Loads a color look up table from an ASCII file. returns a piddle
=cut
sub load_lut
{
return xchg(byte(cat(rcols(shift))), 0, 1);
} # end of load_lut()...
=head2 read_png( $filename )
Reads a (palette) PNG image into a (new) PDL variable.
=cut
sub read_png
{
my $filename = shift;
# Get the image dims...
my $x = _get_png_xs($filename);
my $y = _get_png_ys($filename);
#print "\$x=$x\t\$y=$y\n";
my $temp = zeroes(long, $x, $y);
_read_png($temp, $filename);
return byte($temp);
} # End of read_png()...
=head2 read_png_true( $filename )
Reads a true color PNG image into a (new) PDL variable.
=cut
sub read_true_png
{
my $filename = shift;
# Get the image dims...
my $x = _get_png_xs($filename);
my $y = _get_png_ys($filename);
#print "\$x=$x\t\$y=$y\n";
my $temp = zeroes(long, $x, $y, 3);
_read_true_png($temp, $filename);
return byte($temp);
} # End of read_png()...
*_read_true_png = \&PDL::_read_true_png;
*_read_png = \&PDL::_read_png;
*_gd_image_to_pdl_true = \&PDL::_gd_image_to_pdl_true;
*_gd_image_to_pdl = \&PDL::_gd_image_to_pdl;
*_pdl_to_gd_image_true = \&PDL::_pdl_to_gd_image_true;
*_pdl_to_gd_image_lut = \&PDL::_pdl_to_gd_image_lut;
=head2 my $lut = read_png_lut( $filename )
Reads a color LUT from an already-existing palette PNG file.
=cut
sub read_png_lut
{
my $filename = shift;
my $lut = zeroes(byte, 3, 256);
_read_png_lut($lut, $filename);
return $lut;
} # End of read_png_lut()...
*_read_png_lut = \&PDL::_read_png_lut;
*_gdImageColorAllocates = \&PDL::_gdImageColorAllocates;
*_gdImageColorAllocateAlphas = \&PDL::_gdImageColorAllocateAlphas;
*_gdImageSetPixels = \&PDL::_gdImageSetPixels;
*_gdImageLines = \&PDL::_gdImageLines;
*_gdImageDashedLines = \&PDL::_gdImageDashedLines;
*_gdImageRectangles = \&PDL::_gdImageRectangles;
*_gdImageFilledRectangles = \&PDL::_gdImageFilledRectangles;
*_gdImageFilledArcs = \&PDL::_gdImageFilledArcs;
*_gdImageArcs = \&PDL::_gdImageArcs;
*_gdImageFilledEllipses = \&PDL::_gdImageFilledEllipses;
;
=head1 OO INTERFACE
Object Oriented interface to the GD image library.
=head1 SYNOPSIS
# Open an existing file:
#
my $gd = PDL::IO::GD->new( { filename => "test.png" } );
# Query the x and y sizes:
my $x = $gd->SX();
my $y = $gd->SY();
# Grab the PDL of the data:
my $pdl = $gd->to_pdl();
# Kill this thing:
$gd->DESTROY();
# Create a new object:
#
my $im = PDL::IO::GD->new( { x => 300, y => 300 } );
# Allocate some colors:
#
my $black = $im->ColorAllocate( 0, 0, 0 );
my $red = $im->ColorAllocate( 255, 0, 0 );
my $green = $im->ColorAllocate( 0, 255, 0 );
my $blue = $im->ColorAllocate( 0, 0, 255 );
# Draw a rectangle:
$im->Rectangle( 10, 10, 290, 290, $red );
# Add some text:
$im->String( gdFontGetLarge(), 20, 20, "Test Large Font!", $green );
# Write the output file:
$im->write_Png( "test2.png" );
=head1 DESCRIPTION
This is the Object-Oriented interface from PDL to the GD image library.
See L<http://www.boutell.com/gd/> for more information on the GD library and how it works.
=head2 IMPLEMENTATION NOTES
Surprisingly enough, this interface has nothing to do with the other Perl->GD interface module,
aka 'GD' (as in 'use GD;'). This is done from scratch over the years.
Requires at least version 2.0.22 of the GD library, but it's only been thoroughly tested with
gd-2.0.33, so it would be best to use that. The 2.0.22 requirement has to do with a change in
GD's font handling functions, so if you don't use those, then don't worry about it.
I should also add, the statement about "thoroughly tested" above is mostly a joke. This OO
interface is very young, and it has I<barely> been tested at all, so if something
breaks, email me and I'll get it fixed ASAP (for me).
Functions that manipulate and query the image objects generally have a 'gdImage' prefix on the
function names (ex: gdImageString()). I've created aliases here for all of those member
functions so you don't have to keep typing 'gdImage' in your code, but the long version are in
there as well.
=head1 FUNCTIONS
=cut
use PDL;
use PDL::Slices;
use PDL::IO::Misc;
#
# Some helper functions:
#
sub _pkg_name
{ return "PDL::IO::GD::" . (shift) . "()"; }
# ID a file type from it's filename:
sub _id_image_file
{
my $filename = shift;
return 'png'
if( $filename =~ /\.png$/ );
return 'jpg'
if( $filename =~ /\.jpe?g$/ );
return 'wbmp'
if( $filename =~ /\.w?bmp$/ );
return 'gd'
if( $filename =~ /\.gd$/ );
return 'gd2'
if( $filename =~ /\.gd2$/ );
return 'gif'
if( $filename =~ /\.gif$/ );
return 'xbm'
if( $filename =~ /\.xbm$/ );
return undef;
} # End of _id_image_file()...
# Load a new file up (don't read it yet):
sub _img_ptr_from_file
{
my $filename = shift;
my $type = shift;
return _gdImageCreateFromPng( $filename )
if( $type eq 'png' );
return _gdImageCreateFromJpeg( $filename )
if( $type eq 'jpg' );
return _gdImageCreateFromWBMP( $filename )
if( $type eq 'wbmp' );
return _gdImageCreateFromGd( $filename )
if( $type eq 'gd' );
return _gdImageCreateFromGd2( $filename )
if( $type eq 'gd2' );
return _gdImageCreateFromGif( $filename )
if( $type eq 'gif' );
return _gdImageCreateFromXbm( $filename )
if( $type eq 'xbm' );
return undef;
} # End of _img_ptr_from_file()...
# ID a file type from it's "magic" header in the image data:
sub _id_image_data
{
my $data = shift;
my $magic = substr($data,0,4);
return 'png'
if( $magic eq "\x89PNG" );
return 'jpg'
if( $magic eq "\377\330\377\340" );
return 'jpg'
if( $magic eq "\377\330\377\341" );
return 'jpg'
if( $magic eq "\377\330\377\356" );
return 'gif'
if( $magic eq "GIF8" );
return 'gd2'
if( $magic eq "gd2\000" );
# Still need filters for WBMP and .gd!
return undef;
} # End of _id_image_data()...
# Load a new data scalar up:
sub _img_ptr_from_data
{
my $data = shift;
my $type = shift;
return _gdImageCreateFromPngPtr( $data )
if( $type eq 'png' );
return _gdImageCreateFromJpegPtr( $data )
if( $type eq 'jpg' );
return _gdImageCreateFromWBMPPtr( $data )
if( $type eq 'wbmp' );
return _gdImageCreateFromGdPtr( $data )
if( $type eq 'gd' );
return _gdImageCreateFromGd2Ptr( $data )
if( $type eq 'gd2' );
return _gdImageCreateFromGifPtr( $data )
if( $type eq 'gif' );
return undef;
} # End of _img_ptr_from_data()...
=head2 new
Creates a new PDL::IO::GD object.
Accepts a hash describing how to create the object. Accepts a single hash ( with
curly braces ), an inline hash (the same, but without the braces) or a single
string interpreted as a filename. Thus the following are all equivalent:
PDL::IO::GD->new( {filename => 'image.png'} );
PDL::IO::GD->new( filename => 'image.png' );
PDL::IO::GD->new( 'image.png' );
If the hash has:
pdl => $pdl_var (lut => $lut_piddle)
Then a new GD is created from that PDL variable.
filename => $file
Then a new GD is created from the image file.
x => $num, y => $num
Then a new GD is created as a palette image, with size x, y
x => $num, y => $num, true_color => 1
Then a new GD is created as a true color image, with size x, y
data => $scalar (type => $typename)
Then a new GD is created from the file data stored in $scalar.
If no type is given, then it will try to guess the type of the data, but
this will not work for WBMP and gd image types. For those types, you
_must_ specify the type of the data, or the operation will fail.
Valid types are: 'jpg', 'png', 'gif', 'gd', 'gd2', 'wbmp'.
Example:
my $gd = PDL::IO::GD->new({ pdl => $pdl_var });
my $gd = PDL::IO::GD->new({ pdl => $pdl_var, lut => $lut_piddle });
my $gd = PDL::IO::GD->new({ filename => "image.png" });
my $gd = PDL::IO::GD->new({ x => 100, y => 100 });
my $gd = PDL::IO::GD->new({ x => 100, y => 100, true_color => 1 });
my $gd = PDL::IO::GD->new({ data => $imageData });
my $gd = PDL::IO::GD->new({ data => $imageData, type => 'wbmp' });
=cut
sub new
{
my $proto = shift;
my $class = ref($proto) || $proto;
#my $self = $class->SUPER::new( @_ );
my $self = {};
my $sub = _pkg_name( "new" );
# Figure out our options:
# I want a single hash. I handle several cases here
my $options;
if( @_ == 1 && ref $_[0] eq 'HASH' ) {
# single hash argument. Just take it
$options = shift;
}
elsif( @_ == 1 && ! ref $_[0] ) {
# single scalar argument. Treat it as a filename by default
my $filename = shift;
$options = { filename => $filename };
}
else {
# the only other acceptable option is an inline hash. This is valid if I
# have an even number of arguments, and the even-indexed ones (the keys)
# are scalars
if( @_ % 2 == 0 ) {
my $Npairs = scalar(@_)/2;
use List::MoreUtils 'none';
if( List::MoreUtils::none { ref $_[2*$_] } 0..$Npairs-1 ) {
# treat the arguments as a hash
$options = { @_ }
}
}
}
if( !defined $options ) {
die <<EOF;
PDL::IO::GD::new couldn't parse its arguments.
Expected a hash-ref or an inline hash or just a filename
EOF
}
if( defined( $options->{pdl} ) )
{ # Create it from a PDL variable:
my $pdl = $options->{pdl};
$pdl->make_physical();
my $num_dims = scalar( $pdl->dims() );
if( $num_dims == 2 )
{
if( defined( $options->{lut} ) )
{
my $ptr = zeroes( longlong, 1 );
my $lut = $options->{lut};
_pdl_to_gd_image_lut( $pdl, $lut, $ptr );
# print STDERR "in new (with lut), setting IMG_PTR to " . $ptr->at(0) . "\n";
$self->{IMG_PTR} = $ptr->at(0);
$ptr = null;
die "$sub: _pdl_to_gd_image_lut() failed!\n"
if( $self->{IMG_PTR} == 0 );
}
else
{
my $ptr = zeroes( longlong, 1 );
my $lut = sequence(byte, 255)->slice("*3,:");
_pdl_to_gd_image_lut( $pdl, $lut, $ptr );
# print STDERR "in new (no lut), setting IMG_PTR to " . $ptr->at(0) . "\n";
$self->{IMG_PTR} = $ptr->at(0);
$ptr = null;
die "$sub: _pdl_to_gd_image_lut() failed!\n"
if( $self->{IMG_PTR} == 0 );
}
}
elsif( $num_dims == 3 )
{
my $ptr = zeroes( longlong, 1 );
_pdl_to_gd_image_true( $pdl, $ptr );
# print STDERR "in new (ndims=3), setting IMG_PTR to " . $ptr->at(0) . "\n";
$self->{IMG_PTR} = $ptr->at(0);
$ptr = null;
die "$sub: _pdl_to_gd_image_true() failed!\n"
if( $self->{IMG_PTR} == 0 );
}
else
{
die "Can't create a PDL::IO::GD from a PDL with bad dims!\n";
}
}
elsif( defined( $options->{filename} ) )
{ # Create it from a file:
# Figure out what type of file it is:
$self->{input_type} = _id_image_file( $options->{filename} )
or die "$sub: Can't determine image type of filename => \'$options->{filename}\'!\n";
# Read in the file:
$self->{IMG_PTR} = _img_ptr_from_file( $options->{filename}, $self->{input_type} )
or die "$sub: Can't read in the input file!\n";
}
elsif( defined( $options->{x} ) && defined( $options->{y} ) )
{ # Create an empty image:
my $done = 0;
if( defined( $options->{true_color} ) )
{
if( $options->{true_color} )
{ # Create an empty true color image:
$self->{IMG_PTR} = _gdImageCreateTrueColor( $options->{x}, $options->{y} );
die "$sub: _gdImageCreateTrueColor() failed!\n"
if( $self->{IMG_PTR} == 0 );
$done = 1;
}
}
unless( $done )
{ # Create an empty palette image:
$self->{IMG_PTR} = _gdImageCreatePalette( $options->{x}, $options->{y} );
die "$sub: _gdImageCreatePalette() failed!\n"
if( $self->{IMG_PTR} == 0 );
}
}
elsif( defined( $options->{data} ) )
{ # Create an image from the given image data:
# Figure out what type of file it is:
if( defined( $options->{type} ) &&
( $options->{type} eq 'jpg'
|| $options->{type} eq 'png'
|| $options->{type} eq 'gif'
|| $options->{type} eq 'wbmp'
|| $options->{type} eq 'gd'
|| $options->{type} eq 'gd2' ) )
{
$self->{input_type} = $options->{type};
}
else
{
$self->{input_type} = _id_image_data( $options->{data} )
or die "$sub: Can't determine image type given data!\n";
}
# Load the data:
$self->{IMG_PTR} = _img_ptr_from_data( $options->{data}, $self->{input_type} )
or die "$sub: Can't load the input image data!\n";
}
# Bless and return:
#
bless ($self, $class);
return $self;
} # End of new()...
=head2 to_pdl
When you're done playing with your GDImage and want a piddle back, use this function to return one.
=cut
sub to_pdl
{
my $self = shift;
my $sub = _pkg_name( "to_pdl" );
my $x = $self->gdImageSX();
my $y = $self->gdImageSY();
if( $self->gdImageTrueColor() )
{
my $pdl = zeroes(byte, $x, $y, 3);
_gd_image_to_pdl_true( $pdl, $self->{IMG_PTR} );
return $pdl;
}
my $pdl = zeroes(byte, $x, $y);
_gd_image_to_pdl( $pdl, $self->{IMG_PTR} );
return $pdl;
} # End of to_pdl()...
=head2 apply_lut( $lut(piddle) )
Does a $im->ColorAllocate() for and entire LUT piddle at once.
The LUT piddle format is the same as for the general interface above.
=cut
sub apply_lut
{
my $self = shift;
my $lut = shift;
# Let the PDL threading engine sort this out:
$self->ColorAllocates( $lut->slice("(0),:"), $lut->slice("(1),:"), $lut->slice("(2),:") );
} # End of apply_lut()...
sub DESTROY
{
my $self = shift;
my $sub = _pkg_name( "DESTROY" );
#print STDERR sprintf("$sub: destroying gdImagePtr: 0x%p (%d) (%ld) (%lld)!\n", $self->{IMG_PTR}, $self->{IMG_PTR},$self->{IMG_PTR},$self->{IMG_PTR});
if( defined( $self->{IMG_PTR} ) )
{
_gdImageDestroy( $self->{IMG_PTR} );
delete( $self->{IMG_PTR} );
}
} # End of DESTROY()...
=head2 WARNING:
All of the docs below this point are auto-generated (not to mention the actual code),
so read with a grain of salt, and B<always> check the main GD documentation about how
that function works and what it does.
=cut
=head2 write_Png
$image->write_Png( $filename )
=cut
sub write_Png
{
my $self = shift;
return _gdImagePng ( $self->{IMG_PTR}, @_ );
} # End of write_Png()...
=head2 write_PngEx
$image->write_PngEx( $filename, $level )
=cut
sub write_PngEx
{
my $self = shift;
return _gdImagePngEx ( $self->{IMG_PTR}, @_ );
} # End of write_PngEx()...
=head2 write_WBMP
$image->write_WBMP( $fg, $filename )
=cut
sub write_WBMP
{
my $self = shift;
return _gdImageWBMP ( $self->{IMG_PTR}, @_ );
} # End of write_WBMP()...
=head2 write_Jpeg
$image->write_Jpeg( $filename, $quality )
=cut
sub write_Jpeg
{
my $self = shift;
return _gdImageJpeg ( $self->{IMG_PTR}, @_ );
} # End of write_Jpeg()...
=head2 write_Gd
$image->write_Gd( $filename )
=cut
sub write_Gd
{
my $self = shift;
return _gdImageGd ( $self->{IMG_PTR}, @_ );
} # End of write_Gd()...
=head2 write_Gd2
$image->write_Gd2( $filename, $cs, $fmt )
=cut
sub write_Gd2
{
my $self = shift;
return _gdImageGd2 ( $self->{IMG_PTR}, @_ );
} # End of write_Gd2()...
=head2 write_Gif
$image->write_Gif( $filename )
=cut
sub write_Gif
{
my $self = shift;
return _gdImageGif ( $self->{IMG_PTR}, @_ );
} # End of write_Gif()...
=head2 get_Png_data
$image->get_Png_data( )
=cut
sub get_Png_data
{
my $self = shift;
return _gdImagePngPtr ( $self->{IMG_PTR}, @_ );
} # End of get_Png_data()...
=head2 get_PngEx_data
$image->get_PngEx_data( $level )
=cut
sub get_PngEx_data
{
my $self = shift;
return _gdImagePngPtrEx ( $self->{IMG_PTR}, @_ );
} # End of get_PngEx_data()...
=head2 get_WBMP_data
$image->get_WBMP_data( $fg )
=cut
sub get_WBMP_data
{
my $self = shift;
return _gdImageWBMPPtr ( $self->{IMG_PTR}, @_ );
} # End of get_WBMP_data()...
=head2 get_Jpeg_data
$image->get_Jpeg_data( $quality )
=cut
sub get_Jpeg_data
{
my $self = shift;
return _gdImageJpegPtr ( $self->{IMG_PTR}, @_ );
} # End of get_Jpeg_data()...
=head2 get_Gd_data
$image->get_Gd_data( )
=cut
sub get_Gd_data
{
my $self = shift;
return _gdImageGdPtr ( $self->{IMG_PTR}, @_ );
} # End of get_Gd_data()...
=head2 get_Gd2_data
$image->get_Gd2_data( $cs, $fmt )
=cut
sub get_Gd2_data
{
my $self = shift;
return _gdImageGd2Ptr ( $self->{IMG_PTR}, @_ );
} # End of get_Gd2_data()...
=head2 SetPixel
$image->SetPixel( $x, $y, $color )
Alias for gdImageSetPixel.
=cut
sub SetPixel
{
return gdImageSetPixel ( @_ );
} # End of SetPixel()...
=head2 gdImageSetPixel
$image->gdImageSetPixel( $x, $y, $color )
=cut
sub gdImageSetPixel
{
my $self = shift;
return _gdImageSetPixel ( $self->{IMG_PTR}, @_ );
} # End of gdImageSetPixel()...
=head2 GetPixel
$image->GetPixel( $x, $y )
Alias for gdImageGetPixel.
=cut
sub GetPixel
{
return gdImageGetPixel ( @_ );
} # End of GetPixel()...
=head2 gdImageGetPixel
$image->gdImageGetPixel( $x, $y )
=cut
sub gdImageGetPixel
{
my $self = shift;
return _gdImageGetPixel ( $self->{IMG_PTR}, @_ );
} # End of gdImageGetPixel()...
=head2 AABlend
$image->AABlend( )
Alias for gdImageAABlend.
=cut
sub AABlend
{
return gdImageAABlend ( @_ );
} # End of AABlend()...
=head2 gdImageAABlend
$image->gdImageAABlend( )
=cut
sub gdImageAABlend
{
my $self = shift;
return _gdImageAABlend ( $self->{IMG_PTR}, @_ );
} # End of gdImageAABlend()...
=head2 Line
$image->Line( $x1, $y1, $x2, $y2, $color )
Alias for gdImageLine.
=cut
sub Line
{
return gdImageLine ( @_ );
} # End of Line()...
=head2 gdImageLine
$image->gdImageLine( $x1, $y1, $x2, $y2, $color )
=cut
sub gdImageLine
{
my $self = shift;
return _gdImageLine ( $self->{IMG_PTR}, @_ );
} # End of gdImageLine()...
=head2 DashedLine
$image->DashedLine( $x1, $y1, $x2, $y2, $color )
Alias for gdImageDashedLine.
=cut
sub DashedLine
{
return gdImageDashedLine ( @_ );
} # End of DashedLine()...
=head2 gdImageDashedLine
$image->gdImageDashedLine( $x1, $y1, $x2, $y2, $color )
=cut
sub gdImageDashedLine
{
my $self = shift;
return _gdImageDashedLine ( $self->{IMG_PTR}, @_ );
} # End of gdImageDashedLine()...
=head2 Rectangle
$image->Rectangle( $x1, $y1, $x2, $y2, $color )
Alias for gdImageRectangle.
=cut
sub Rectangle
{
return gdImageRectangle ( @_ );
} # End of Rectangle()...
=head2 gdImageRectangle
$image->gdImageRectangle( $x1, $y1, $x2, $y2, $color )
=cut
sub gdImageRectangle
{
my $self = shift;
return _gdImageRectangle ( $self->{IMG_PTR}, @_ );
} # End of gdImageRectangle()...
=head2 FilledRectangle
$image->FilledRectangle( $x1, $y1, $x2, $y2, $color )
Alias for gdImageFilledRectangle.
=cut
sub FilledRectangle
{
return gdImageFilledRectangle ( @_ );
} # End of FilledRectangle()...
=head2 gdImageFilledRectangle
$image->gdImageFilledRectangle( $x1, $y1, $x2, $y2, $color )
=cut
sub gdImageFilledRectangle
{
my $self = shift;
return _gdImageFilledRectangle ( $self->{IMG_PTR}, @_ );
} # End of gdImageFilledRectangle()...
=head2 SetClip
$image->SetClip( $x1, $y1, $x2, $y2 )
Alias for gdImageSetClip.
=cut
sub SetClip
{
return gdImageSetClip ( @_ );
} # End of SetClip()...
=head2 gdImageSetClip
$image->gdImageSetClip( $x1, $y1, $x2, $y2 )
=cut
sub gdImageSetClip
{
my $self = shift;
return _gdImageSetClip ( $self->{IMG_PTR}, @_ );
} # End of gdImageSetClip()...
=head2 GetClip
$image->GetClip( $x1P, $y1P, $x2P, $y2P )
Alias for gdImageGetClip.
=cut
sub GetClip
{
return gdImageGetClip ( @_ );
} # End of GetClip()...
=head2 gdImageGetClip
$image->gdImageGetClip( $x1P, $y1P, $x2P, $y2P )
=cut
sub gdImageGetClip
{
my $self = shift;
return _gdImageGetClip ( $self->{IMG_PTR}, @_ );
} # End of gdImageGetClip()...
=head2 BoundsSafe
$image->BoundsSafe( $x, $y )
Alias for gdImageBoundsSafe.
=cut
sub BoundsSafe
{
return gdImageBoundsSafe ( @_ );
} # End of BoundsSafe()...
=head2 gdImageBoundsSafe
$image->gdImageBoundsSafe( $x, $y )
=cut
sub gdImageBoundsSafe
{
my $self = shift;
return _gdImageBoundsSafe ( $self->{IMG_PTR}, @_ );
} # End of gdImageBoundsSafe()...
=head2 Char
$image->Char( $f, $x, $y, $c, $color )
Alias for gdImageChar.
=cut
sub Char
{
return gdImageChar ( @_ );
} # End of Char()...
=head2 gdImageChar
$image->gdImageChar( $f, $x, $y, $c, $color )
=cut
sub gdImageChar
{
my $self = shift;
return _gdImageChar ( $self->{IMG_PTR}, @_ );
} # End of gdImageChar()...
=head2 CharUp
$image->CharUp( $f, $x, $y, $c, $color )
Alias for gdImageCharUp.
=cut
sub CharUp
{
return gdImageCharUp ( @_ );
} # End of CharUp()...
=head2 gdImageCharUp
$image->gdImageCharUp( $f, $x, $y, $c, $color )
=cut
sub gdImageCharUp
{
my $self = shift;
return _gdImageCharUp ( $self->{IMG_PTR}, @_ );
} # End of gdImageCharUp()...
=head2 String
$image->String( $f, $x, $y, $s, $color )
Alias for gdImageString.
=cut
sub String
{
return gdImageString ( @_ );
} # End of String()...
=head2 gdImageString
$image->gdImageString( $f, $x, $y, $s, $color )
=cut
sub gdImageString
{
my $self = shift;
return _gdImageString ( $self->{IMG_PTR}, @_ );
} # End of gdImageString()...
=head2 StringUp
$image->StringUp( $f, $x, $y, $s, $color )
Alias for gdImageStringUp.
=cut
sub StringUp
{
return gdImageStringUp ( @_ );
} # End of StringUp()...
=head2 gdImageStringUp
$image->gdImageStringUp( $f, $x, $y, $s, $color )
=cut
sub gdImageStringUp
{
my $self = shift;
return _gdImageStringUp ( $self->{IMG_PTR}, @_ );
} # End of gdImageStringUp()...
=head2 String16
$image->String16( $f, $x, $y, $s, $color )
Alias for gdImageString16.
=cut
sub String16
{
return gdImageString16 ( @_ );
} # End of String16()...
=head2 gdImageString16
$image->gdImageString16( $f, $x, $y, $s, $color )
=cut
sub gdImageString16
{
my $self = shift;
return _gdImageString16 ( $self->{IMG_PTR}, @_ );
} # End of gdImageString16()...
=head2 StringUp16
$image->StringUp16( $f, $x, $y, $s, $color )
Alias for gdImageStringUp16.
=cut
sub StringUp16
{
return gdImageStringUp16 ( @_ );
} # End of StringUp16()...
=head2 gdImageStringUp16
$image->gdImageStringUp16( $f, $x, $y, $s, $color )
=cut
sub gdImageStringUp16
{
my $self = shift;
return _gdImageStringUp16 ( $self->{IMG_PTR}, @_ );
} # End of gdImageStringUp16()...
=head2 Polygon
$image->Polygon( $p, $n, $c )
Alias for gdImagePolygon.
=cut
sub Polygon
{
return gdImagePolygon ( @_ );
} # End of Polygon()...
=head2 gdImagePolygon
$image->gdImagePolygon( $p, $n, $c )
=cut
sub gdImagePolygon
{
my $self = shift;
return _gdImagePolygon ( $self->{IMG_PTR}, @_ );
} # End of gdImagePolygon()...
=head2 FilledPolygon
$image->FilledPolygon( $p, $n, $c )
Alias for gdImageFilledPolygon.
=cut
sub FilledPolygon
{
return gdImageFilledPolygon ( @_ );
} # End of FilledPolygon()...
=head2 gdImageFilledPolygon
$image->gdImageFilledPolygon( $p, $n, $c )
=cut
sub gdImageFilledPolygon
{
my $self = shift;
return _gdImageFilledPolygon ( $self->{IMG_PTR}, @_ );
} # End of gdImageFilledPolygon()...
=head2 ColorAllocate
$image->ColorAllocate( $r, $g, $b )
Alias for gdImageColorAllocate.
=cut
sub ColorAllocate
{
return gdImageColorAllocate ( @_ );
} # End of ColorAllocate()...
=head2 gdImageColorAllocate
$image->gdImageColorAllocate( $r, $g, $b )
=cut
sub gdImageColorAllocate
{
my $self = shift;
return _gdImageColorAllocate ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorAllocate()...
=head2 ColorAllocateAlpha
$image->ColorAllocateAlpha( $r, $g, $b, $a )
Alias for gdImageColorAllocateAlpha.
=cut
sub ColorAllocateAlpha
{
return gdImageColorAllocateAlpha ( @_ );
} # End of ColorAllocateAlpha()...
=head2 gdImageColorAllocateAlpha
$image->gdImageColorAllocateAlpha( $r, $g, $b, $a )
=cut
sub gdImageColorAllocateAlpha
{
my $self = shift;
return _gdImageColorAllocateAlpha ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorAllocateAlpha()...
=head2 ColorClosest
$image->ColorClosest( $r, $g, $b )
Alias for gdImageColorClosest.
=cut
sub ColorClosest
{
return gdImageColorClosest ( @_ );
} # End of ColorClosest()...
=head2 gdImageColorClosest
$image->gdImageColorClosest( $r, $g, $b )
=cut
sub gdImageColorClosest
{
my $self = shift;
return _gdImageColorClosest ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorClosest()...
=head2 ColorClosestAlpha
$image->ColorClosestAlpha( $r, $g, $b, $a )
Alias for gdImageColorClosestAlpha.
=cut
sub ColorClosestAlpha
{
return gdImageColorClosestAlpha ( @_ );
} # End of ColorClosestAlpha()...
=head2 gdImageColorClosestAlpha
$image->gdImageColorClosestAlpha( $r, $g, $b, $a )
=cut
sub gdImageColorClosestAlpha
{
my $self = shift;
return _gdImageColorClosestAlpha ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorClosestAlpha()...
=head2 ColorClosestHWB
$image->ColorClosestHWB( $r, $g, $b )
Alias for gdImageColorClosestHWB.
=cut
sub ColorClosestHWB
{
return gdImageColorClosestHWB ( @_ );
} # End of ColorClosestHWB()...
=head2 gdImageColorClosestHWB
$image->gdImageColorClosestHWB( $r, $g, $b )
=cut
sub gdImageColorClosestHWB
{
my $self = shift;
return _gdImageColorClosestHWB ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorClosestHWB()...
=head2 ColorExact
$image->ColorExact( $r, $g, $b )
Alias for gdImageColorExact.
=cut
sub ColorExact
{
return gdImageColorExact ( @_ );
} # End of ColorExact()...
=head2 gdImageColorExact
$image->gdImageColorExact( $r, $g, $b )
=cut
sub gdImageColorExact
{
my $self = shift;
return _gdImageColorExact ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorExact()...
=head2 ColorExactAlpha
$image->ColorExactAlpha( $r, $g, $b, $a )
Alias for gdImageColorExactAlpha.
=cut
sub ColorExactAlpha
{
return gdImageColorExactAlpha ( @_ );
} # End of ColorExactAlpha()...
=head2 gdImageColorExactAlpha
$image->gdImageColorExactAlpha( $r, $g, $b, $a )
=cut
sub gdImageColorExactAlpha
{
my $self = shift;
return _gdImageColorExactAlpha ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorExactAlpha()...
=head2 ColorResolve
$image->ColorResolve( $r, $g, $b )
Alias for gdImageColorResolve.
=cut
sub ColorResolve
{
return gdImageColorResolve ( @_ );
} # End of ColorResolve()...
=head2 gdImageColorResolve
$image->gdImageColorResolve( $r, $g, $b )
=cut
sub gdImageColorResolve
{
my $self = shift;
return _gdImageColorResolve ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorResolve()...
=head2 ColorResolveAlpha
$image->ColorResolveAlpha( $r, $g, $b, $a )
Alias for gdImageColorResolveAlpha.
=cut
sub ColorResolveAlpha
{
return gdImageColorResolveAlpha ( @_ );
} # End of ColorResolveAlpha()...
=head2 gdImageColorResolveAlpha
$image->gdImageColorResolveAlpha( $r, $g, $b, $a )
=cut
sub gdImageColorResolveAlpha
{
my $self = shift;
return _gdImageColorResolveAlpha ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorResolveAlpha()...
=head2 ColorDeallocate
$image->ColorDeallocate( $color )
Alias for gdImageColorDeallocate.
=cut
sub ColorDeallocate
{
return gdImageColorDeallocate ( @_ );
} # End of ColorDeallocate()...
=head2 gdImageColorDeallocate
$image->gdImageColorDeallocate( $color )
=cut
sub gdImageColorDeallocate
{
my $self = shift;
return _gdImageColorDeallocate ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorDeallocate()...
=head2 TrueColorToPalette
$image->TrueColorToPalette( $ditherFlag, $colorsWanted )
Alias for gdImageTrueColorToPalette.
=cut
sub TrueColorToPalette
{
return gdImageTrueColorToPalette ( @_ );
} # End of TrueColorToPalette()...
=head2 gdImageTrueColorToPalette
$image->gdImageTrueColorToPalette( $ditherFlag, $colorsWanted )
=cut
sub gdImageTrueColorToPalette
{
my $self = shift;
return _gdImageTrueColorToPalette ( $self->{IMG_PTR}, @_ );
} # End of gdImageTrueColorToPalette()...
=head2 ColorTransparent
$image->ColorTransparent( $color )
Alias for gdImageColorTransparent.
=cut
sub ColorTransparent
{
return gdImageColorTransparent ( @_ );
} # End of ColorTransparent()...
=head2 gdImageColorTransparent
$image->gdImageColorTransparent( $color )
=cut
sub gdImageColorTransparent
{
my $self = shift;
return _gdImageColorTransparent ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorTransparent()...
=head2 FilledArc
$image->FilledArc( $cx, $cy, $w, $h, $s, $e, $color, $style )
Alias for gdImageFilledArc.
=cut
sub FilledArc
{
return gdImageFilledArc ( @_ );
} # End of FilledArc()...
=head2 gdImageFilledArc
$image->gdImageFilledArc( $cx, $cy, $w, $h, $s, $e, $color, $style )
=cut
sub gdImageFilledArc
{
my $self = shift;
return _gdImageFilledArc ( $self->{IMG_PTR}, @_ );
} # End of gdImageFilledArc()...
=head2 Arc
$image->Arc( $cx, $cy, $w, $h, $s, $e, $color )
Alias for gdImageArc.
=cut
sub Arc
{
return gdImageArc ( @_ );
} # End of Arc()...
=head2 gdImageArc
$image->gdImageArc( $cx, $cy, $w, $h, $s, $e, $color )
=cut
sub gdImageArc
{
my $self = shift;
return _gdImageArc ( $self->{IMG_PTR}, @_ );
} # End of gdImageArc()...
=head2 FilledEllipse
$image->FilledEllipse( $cx, $cy, $w, $h, $color )
Alias for gdImageFilledEllipse.
=cut
sub FilledEllipse
{
return gdImageFilledEllipse ( @_ );
} # End of FilledEllipse()...
=head2 gdImageFilledEllipse
$image->gdImageFilledEllipse( $cx, $cy, $w, $h, $color )
=cut
sub gdImageFilledEllipse
{
my $self = shift;
return _gdImageFilledEllipse ( $self->{IMG_PTR}, @_ );
} # End of gdImageFilledEllipse()...
=head2 FillToBorder
$image->FillToBorder( $x, $y, $border, $color )
Alias for gdImageFillToBorder.
=cut
sub FillToBorder
{
return gdImageFillToBorder ( @_ );
} # End of FillToBorder()...
=head2 gdImageFillToBorder
$image->gdImageFillToBorder( $x, $y, $border, $color )
=cut
sub gdImageFillToBorder
{
my $self = shift;
return _gdImageFillToBorder ( $self->{IMG_PTR}, @_ );
} # End of gdImageFillToBorder()...
=head2 Fill
$image->Fill( $x, $y, $color )
Alias for gdImageFill.
=cut
sub Fill
{
return gdImageFill ( @_ );
} # End of Fill()...
=head2 gdImageFill
$image->gdImageFill( $x, $y, $color )
=cut
sub gdImageFill
{
my $self = shift;
return _gdImageFill ( $self->{IMG_PTR}, @_ );
} # End of gdImageFill()...
=head2 CopyRotated
$image->CopyRotated( $dstX, $dstY, $srcX, $srcY, $srcWidth, $srcHeight, $angle )
Alias for gdImageCopyRotated.
=cut
sub CopyRotated
{
return gdImageCopyRotated ( @_ );
} # End of CopyRotated()...
=head2 gdImageCopyRotated
$image->gdImageCopyRotated( $dstX, $dstY, $srcX, $srcY, $srcWidth, $srcHeight, $angle )
=cut
sub gdImageCopyRotated
{
my $self = shift;
return _gdImageCopyRotated ( $self->{IMG_PTR}, @_ );
} # End of gdImageCopyRotated()...
=head2 SetBrush
$image->SetBrush( )
Alias for gdImageSetBrush.
=cut
sub SetBrush
{
return gdImageSetBrush ( @_ );
} # End of SetBrush()...
=head2 gdImageSetBrush
$image->gdImageSetBrush( )
=cut
sub gdImageSetBrush
{
my $self = shift;
return _gdImageSetBrush ( $self->{IMG_PTR}, @_ );
} # End of gdImageSetBrush()...
=head2 SetTile
$image->SetTile( )
Alias for gdImageSetTile.
=cut
sub SetTile
{
return gdImageSetTile ( @_ );
} # End of SetTile()...
=head2 gdImageSetTile
$image->gdImageSetTile( )
=cut
sub gdImageSetTile
{
my $self = shift;
return _gdImageSetTile ( $self->{IMG_PTR}, @_ );
} # End of gdImageSetTile()...
=head2 SetAntiAliased
$image->SetAntiAliased( $c )
Alias for gdImageSetAntiAliased.
=cut
sub SetAntiAliased
{
return gdImageSetAntiAliased ( @_ );
} # End of SetAntiAliased()...
=head2 gdImageSetAntiAliased
$image->gdImageSetAntiAliased( $c )
=cut
sub gdImageSetAntiAliased
{
my $self = shift;
return _gdImageSetAntiAliased ( $self->{IMG_PTR}, @_ );
} # End of gdImageSetAntiAliased()...
=head2 SetAntiAliasedDontBlend
$image->SetAntiAliasedDontBlend( $c, $dont_blend )
Alias for gdImageSetAntiAliasedDontBlend.
=cut
sub SetAntiAliasedDontBlend
{
return gdImageSetAntiAliasedDontBlend ( @_ );
} # End of SetAntiAliasedDontBlend()...
=head2 gdImageSetAntiAliasedDontBlend
$image->gdImageSetAntiAliasedDontBlend( $c, $dont_blend )
=cut
sub gdImageSetAntiAliasedDontBlend
{
my $self = shift;
return _gdImageSetAntiAliasedDontBlend ( $self->{IMG_PTR}, @_ );
} # End of gdImageSetAntiAliasedDontBlend()...
=head2 SetStyle
$image->SetStyle( $style, $noOfPixels )
Alias for gdImageSetStyle.
=cut
sub SetStyle
{
return gdImageSetStyle ( @_ );
} # End of SetStyle()...
=head2 gdImageSetStyle
$image->gdImageSetStyle( $style, $noOfPixels )
=cut
sub gdImageSetStyle
{
my $self = shift;
return _gdImageSetStyle ( $self->{IMG_PTR}, @_ );
} # End of gdImageSetStyle()...
=head2 SetThickness
$image->SetThickness( $thickness )
Alias for gdImageSetThickness.
=cut
sub SetThickness
{
return gdImageSetThickness ( @_ );
} # End of SetThickness()...
=head2 gdImageSetThickness
$image->gdImageSetThickness( $thickness )
=cut
sub gdImageSetThickness
{
my $self = shift;
return _gdImageSetThickness ( $self->{IMG_PTR}, @_ );
} # End of gdImageSetThickness()...
=head2 Interlace
$image->Interlace( $interlaceArg )
Alias for gdImageInterlace.
=cut
sub Interlace
{
return gdImageInterlace ( @_ );
} # End of Interlace()...
=head2 gdImageInterlace
$image->gdImageInterlace( $interlaceArg )
=cut
sub gdImageInterlace
{
my $self = shift;
return _gdImageInterlace ( $self->{IMG_PTR}, @_ );
} # End of gdImageInterlace()...
=head2 AlphaBlending
$image->AlphaBlending( $alphaBlendingArg )
Alias for gdImageAlphaBlending.
=cut
sub AlphaBlending
{
return gdImageAlphaBlending ( @_ );
} # End of AlphaBlending()...
=head2 gdImageAlphaBlending
$image->gdImageAlphaBlending( $alphaBlendingArg )
=cut
sub gdImageAlphaBlending
{
my $self = shift;
return _gdImageAlphaBlending ( $self->{IMG_PTR}, @_ );
} # End of gdImageAlphaBlending()...
=head2 SaveAlpha
$image->SaveAlpha( $saveAlphaArg )
Alias for gdImageSaveAlpha.
=cut
sub SaveAlpha
{
return gdImageSaveAlpha ( @_ );
} # End of SaveAlpha()...
=head2 gdImageSaveAlpha
$image->gdImageSaveAlpha( $saveAlphaArg )
=cut
sub gdImageSaveAlpha
{
my $self = shift;
return _gdImageSaveAlpha ( $self->{IMG_PTR}, @_ );
} # End of gdImageSaveAlpha()...
=head2 TrueColor
$image->TrueColor( )
Alias for gdImageTrueColor.
=cut
sub TrueColor
{
return gdImageTrueColor ( @_ );
} # End of TrueColor()...
=head2 gdImageTrueColor
$image->gdImageTrueColor( )
=cut
sub gdImageTrueColor
{
my $self = shift;
return _gdImageTrueColor ( $self->{IMG_PTR}, @_ );
} # End of gdImageTrueColor()...
=head2 ColorsTotal
$image->ColorsTotal( )
Alias for gdImageColorsTotal.
=cut
sub ColorsTotal
{
return gdImageColorsTotal ( @_ );
} # End of ColorsTotal()...
=head2 gdImageColorsTotal
$image->gdImageColorsTotal( )
=cut
sub gdImageColorsTotal
{
my $self = shift;
return _gdImageColorsTotal ( $self->{IMG_PTR}, @_ );
} # End of gdImageColorsTotal()...
=head2 Red
$image->Red( $c )
Alias for gdImageRed.
=cut
sub Red
{
return gdImageRed ( @_ );
} # End of Red()...
=head2 gdImageRed
$image->gdImageRed( $c )
=cut
sub gdImageRed
{
my $self = shift;
return _gdImageRed ( $self->{IMG_PTR}, @_ );
} # End of gdImageRed()...
=head2 Green
$image->Green( $c )
Alias for gdImageGreen.
=cut
sub Green
{
return gdImageGreen ( @_ );
} # End of Green()...
=head2 gdImageGreen
$image->gdImageGreen( $c )
=cut
sub gdImageGreen
{
my $self = shift;
return _gdImageGreen ( $self->{IMG_PTR}, @_ );
} # End of gdImageGreen()...
=head2 Blue
$image->Blue( $c )
Alias for gdImageBlue.
=cut
sub Blue
{
return gdImageBlue ( @_ );
} # End of Blue()...
=head2 gdImageBlue
$image->gdImageBlue( $c )
=cut
sub gdImageBlue
{
my $self = shift;
return _gdImageBlue ( $self->{IMG_PTR}, @_ );
} # End of gdImageBlue()...
=head2 Alpha
$image->Alpha( $c )
Alias for gdImageAlpha.
=cut
sub Alpha
{
return gdImageAlpha ( @_ );
} # End of Alpha()...
=head2 gdImageAlpha
$image->gdImageAlpha( $c )
=cut
sub gdImageAlpha
{
my $self = shift;
return _gdImageAlpha ( $self->{IMG_PTR}, @_ );
} # End of gdImageAlpha()...
=head2 GetTransparent
$image->GetTransparent( )
Alias for gdImageGetTransparent.
=cut
sub GetTransparent
{
return gdImageGetTransparent ( @_ );
} # End of GetTransparent()...
=head2 gdImageGetTransparent
$image->gdImageGetTransparent( )
=cut
sub gdImageGetTransparent
{
my $self = shift;
return _gdImageGetTransparent ( $self->{IMG_PTR}, @_ );
} # End of gdImageGetTransparent()...
=head2 GetInterlaced
$image->GetInterlaced( )
Alias for gdImageGetInterlaced.
=cut
sub GetInterlaced
{
return gdImageGetInterlaced ( @_ );
} # End of GetInterlaced()...
=head2 gdImageGetInterlaced
$image->gdImageGetInterlaced( )
=cut
sub gdImageGetInterlaced
{
my $self = shift;
return _gdImageGetInterlaced ( $self->{IMG_PTR}, @_ );
} # End of gdImageGetInterlaced()...
=head2 SX
$image->SX( )
Alias for gdImageSX.
=cut
sub SX
{
return gdImageSX ( @_ );
} # End of SX()...
=head2 gdImageSX
$image->gdImageSX( )
=cut
sub gdImageSX
{
my $self = shift;
return _gdImageSX ( $self->{IMG_PTR}, @_ );
} # End of gdImageSX()...
=head2 SY
$image->SY( )
Alias for gdImageSY.
=cut
sub SY
{
return gdImageSY ( @_ );
} # End of SY()...
=head2 gdImageSY
$image->gdImageSY( )
=cut
sub gdImageSY
{
my $self = shift;
return _gdImageSY ( $self->{IMG_PTR}, @_ );
} # End of gdImageSY()...
=head2 ColorAllocates
$image->ColorAllocates( $r(pdl), $g(pdl), $b(pdl) )
Alias for gdImageColorAllocates.
=cut
sub ColorAllocates
{
return gdImageColorAllocates ( @_ );
} # End of ColorAllocates()...
=head2 gdImageColorAllocates
$image->gdImageColorAllocates( $r(pdl), $g(pdl), $b(pdl) )
=cut
sub gdImageColorAllocates
{
my $self = shift;
return _gdImageColorAllocates ( @_, $self->{IMG_PTR} );
} # End of gdImageColorAllocates()...
=head2 ColorAllocateAlphas
$image->ColorAllocateAlphas( $r(pdl), $g(pdl), $b(pdl), $a(pdl) )
Alias for gdImageColorAllocateAlphas.
=cut
sub ColorAllocateAlphas
{
return gdImageColorAllocateAlphas ( @_ );
} # End of ColorAllocateAlphas()...
=head2 gdImageColorAllocateAlphas
$image->gdImageColorAllocateAlphas( $r(pdl), $g(pdl), $b(pdl), $a(pdl) )
=cut
sub gdImageColorAllocateAlphas
{
my $self = shift;
return _gdImageColorAllocateAlphas ( @_, $self->{IMG_PTR} );
} # End of gdImageColorAllocateAlphas()...
=head2 SetPixels
$image->SetPixels( $x(pdl), $y(pdl), $color(pdl) )
Alias for gdImageSetPixels.
=cut
sub SetPixels
{
return gdImageSetPixels ( @_ );
} # End of SetPixels()...
=head2 gdImageSetPixels
$image->gdImageSetPixels( $x(pdl), $y(pdl), $color(pdl) )
=cut
sub gdImageSetPixels
{
my $self = shift;
return _gdImageSetPixels ( @_, $self->{IMG_PTR} );
} # End of gdImageSetPixels()...
=head2 Lines
$image->Lines( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
Alias for gdImageLines.
=cut
sub Lines
{
return gdImageLines ( @_ );
} # End of Lines()...
=head2 gdImageLines
$image->gdImageLines( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
=cut
sub gdImageLines
{
my $self = shift;
return _gdImageLines ( @_, $self->{IMG_PTR} );
} # End of gdImageLines()...
=head2 DashedLines
$image->DashedLines( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
Alias for gdImageDashedLines.
=cut
sub DashedLines
{
return gdImageDashedLines ( @_ );
} # End of DashedLines()...
=head2 gdImageDashedLines
$image->gdImageDashedLines( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
=cut
sub gdImageDashedLines
{
my $self = shift;
return _gdImageDashedLines ( @_, $self->{IMG_PTR} );
} # End of gdImageDashedLines()...
=head2 Rectangles
$image->Rectangles( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
Alias for gdImageRectangles.
=cut
sub Rectangles
{
return gdImageRectangles ( @_ );
} # End of Rectangles()...
=head2 gdImageRectangles
$image->gdImageRectangles( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
=cut
sub gdImageRectangles
{
my $self = shift;
return _gdImageRectangles ( @_, $self->{IMG_PTR} );
} # End of gdImageRectangles()...
=head2 FilledRectangles
$image->FilledRectangles( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
Alias for gdImageFilledRectangles.
=cut
sub FilledRectangles
{
return gdImageFilledRectangles ( @_ );
} # End of FilledRectangles()...
=head2 gdImageFilledRectangles
$image->gdImageFilledRectangles( $x1(pdl), $y1(pdl), $x2(pdl), $y2(pdl), $color(pdl) )
=cut
sub gdImageFilledRectangles
{
my $self = shift;
return _gdImageFilledRectangles ( @_, $self->{IMG_PTR} );
} # End of gdImageFilledRectangles()...
=head2 FilledArcs
$image->FilledArcs( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $s(pdl), $e(pdl), $color(pdl), $style(pdl) )
Alias for gdImageFilledArcs.
=cut
sub FilledArcs
{
return gdImageFilledArcs ( @_ );
} # End of FilledArcs()...
=head2 gdImageFilledArcs
$image->gdImageFilledArcs( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $s(pdl), $e(pdl), $color(pdl), $style(pdl) )
=cut
sub gdImageFilledArcs
{
my $self = shift;
return _gdImageFilledArcs ( @_, $self->{IMG_PTR} );
} # End of gdImageFilledArcs()...
=head2 Arcs
$image->Arcs( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $s(pdl), $e(pdl), $color(pdl) )
Alias for gdImageArcs.
=cut
sub Arcs
{
return gdImageArcs ( @_ );
} # End of Arcs()...
=head2 gdImageArcs
$image->gdImageArcs( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $s(pdl), $e(pdl), $color(pdl) )
=cut
sub gdImageArcs
{
my $self = shift;
return _gdImageArcs ( @_, $self->{IMG_PTR} );
} # End of gdImageArcs()...
=head2 FilledEllipses
$image->FilledEllipses( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $color(pdl) )
Alias for gdImageFilledEllipses.
=cut
sub FilledEllipses
{
return gdImageFilledEllipses ( @_ );
} # End of FilledEllipses()...
=head2 gdImageFilledEllipses
$image->gdImageFilledEllipses( $cx(pdl), $cy(pdl), $w(pdl), $h(pdl), $color(pdl) )
=cut
sub gdImageFilledEllipses
{
my $self = shift;
return _gdImageFilledEllipses ( @_, $self->{IMG_PTR} );
} # End of gdImageFilledEllipses()...
=head1 CLASS FUNCTIONS
=cut
=head2 gdImageCopy
gdImageCopy ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY, $srcX, $srcY, $w, $h )
=cut
sub gdImageCopy
{
my $dst = shift;
my $src = shift;
my $dstX = shift;
my $dstY = shift;
my $srcX = shift;
my $srcY = shift;
my $w = shift;
my $h = shift;
return _gdImageCopy ( $dst->{IMG_PTR}, $src->{IMG_PTR}, $dstX, $dstY, $srcX, $srcY, $w, $h );
} # End of gdImageCopy()...
=head2 gdImageCopyMerge
gdImageCopyMerge ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY, $srcX, $srcY, $w, $h, $pct )
=cut
sub gdImageCopyMerge
{
my $dst = shift;
my $src = shift;
my $dstX = shift;
my $dstY = shift;
my $srcX = shift;
my $srcY = shift;
my $w = shift;
my $h = shift;
my $pct = shift;
return _gdImageCopyMerge ( $dst->{IMG_PTR}, $src->{IMG_PTR}, $dstX, $dstY, $srcX, $srcY, $w, $h, $pct );
} # End of gdImageCopyMerge()...
=head2 gdImageCopyMergeGray
gdImageCopyMergeGray ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY, $srcX, $srcY, $w, $h, $pct )
=cut
sub gdImageCopyMergeGray
{
my $dst = shift;
my $src = shift;
my $dstX = shift;
my $dstY = shift;
my $srcX = shift;
my $srcY = shift;
my $w = shift;
my $h = shift;
my $pct = shift;
return _gdImageCopyMergeGray ( $dst->{IMG_PTR}, $src->{IMG_PTR}, $dstX, $dstY, $srcX, $srcY, $w, $h, $pct );
} # End of gdImageCopyMergeGray()...
=head2 gdImageCopyResized
gdImageCopyResized ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH )
=cut
sub gdImageCopyResized
{
my $dst = shift;
my $src = shift;
my $dstX = shift;
my $dstY = shift;
my $srcX = shift;
my $srcY = shift;
my $dstW = shift;
my $dstH = shift;
my $srcW = shift;
my $srcH = shift;
return _gdImageCopyResized ( $dst->{IMG_PTR}, $src->{IMG_PTR}, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH );
} # End of gdImageCopyResized()...
=head2 gdImageCopyResampled
gdImageCopyResampled ( $dst(PDL::IO::GD), $src(PDL::IO::GD), $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH )
=cut
sub gdImageCopyResampled
{
my $dst = shift;
my $src = shift;
my $dstX = shift;
my $dstY = shift;
my $srcX = shift;
my $srcY = shift;
my $dstW = shift;
my $dstH = shift;
my $srcW = shift;
my $srcH = shift;
return _gdImageCopyResampled ( $dst->{IMG_PTR}, $src->{IMG_PTR}, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH );
} # End of gdImageCopyResampled()...
=head2 gdImageCompare
gdImageCompare ( $im1(PDL::IO::GD), $im2(PDL::IO::GD) )
=cut
sub gdImageCompare
{
my $im1 = shift;
my $im2 = shift;
return _gdImageCompare ( $im1->{IMG_PTR}, $im2->{IMG_PTR} );
} # End of gdImageCompare()...
=head2 gdImagePaletteCopy
gdImagePaletteCopy ( $dst(PDL::IO::GD), $src(PDL::IO::GD) )
=cut
sub gdImagePaletteCopy
{
my $dst = shift;
my $src = shift;
return _gdImagePaletteCopy ( $dst->{IMG_PTR}, $src->{IMG_PTR} );
} # End of gdImagePaletteCopy()...
=head2 StringTTF
$image->StringTTF( $brect, $fg, $fontlist, $ptsize, $angle, $x, $y, $string )
Alias for gdImageStringTTF.
=cut
sub StringTTF
{
return gdImageStringTTF ( @_ );
} # End of StringTTF()...
=head2 gdImageStringTTF
$image->gdImageStringTTF( $brect, $fg, $fontlist, $ptsize, $angle, $x, $y, $string )
=cut
sub gdImageStringTTF
{
my $self = shift;
return _gdImageStringTTF ( $self->{IMG_PTR}, @_ );
} # End of gdImageStringTTF()...
=head2 StringFT
$image->StringFT( $brect, $fg, $fontlist, $ptsize, $angle, $x, $y, $string )
Alias for gdImageStringFT.
=cut
sub StringFT
{
return gdImageStringFT ( @_ );
} # End of StringFT()...
=head2 gdImageStringFT
$image->gdImageStringFT( $brect, $fg, $fontlist, $ptsize, $angle, $x, $y, $string )
=cut
sub gdImageStringFT
{
my $self = shift;
return _gdImageStringFT ( $self->{IMG_PTR}, @_ );
} # End of gdImageStringFT()...
=head1 AUTHOR
Judd Taylor, Orbital Systems, Ltd.
judd dot t at orbitalsystems dot com
=cut
# Exit with OK status
1;
|