/usr/share/gtk-doc/html/libvips/libvips-conversion.html is in libvips-doc 7.40.6-2.
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 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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>VIPS Reference Manual: conversion</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="VIPS Reference Manual">
<link rel="up" href="ch03.html" title="VIPS operation API by section">
<link rel="prev" href="libvips-colour.html" title="colour">
<link rel="next" href="libvips-convolution.html" title="convolution">
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#libvips-conversion.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#libvips-conversion.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libvips-colour.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libvips-convolution.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libvips-conversion"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libvips-conversion.top_of_page"></a>conversion</span></h2>
<p>conversion — convert images in some way: change band format, change header, insert, extract, join</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libvips-conversion.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsect1">
<a name="libvips-conversion.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-copy" title="vips_copy ()">vips_copy</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-tilecache" title="vips_tilecache ()">vips_tilecache</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-linecache" title="vips_linecache ()">vips_linecache</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-sequential" title="vips_sequential ()">vips_sequential</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cache" title="vips_cache ()">vips_cache</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-copy-file" title="vips_copy_file ()">vips_copy_file</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-embed" title="vips_embed ()">vips_embed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-flip" title="vips_flip ()">vips_flip</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-insert" title="vips_insert ()">vips_insert</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-join" title="vips_join ()">vips_join</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-extract-area" title="vips_extract_area ()">vips_extract_area</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-crop" title="vips_crop ()">vips_crop</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-extract-band" title="vips_extract_band ()">vips_extract_band</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-replicate" title="vips_replicate ()">vips_replicate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-grid" title="vips_grid ()">vips_grid</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-wrap" title="vips_wrap ()">vips_wrap</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-rot" title="vips_rot ()">vips_rot</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-rot45" title="vips_rot45 ()">vips_rot45</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-zoom" title="vips_zoom ()">vips_zoom</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-subsample" title="vips_subsample ()">vips_subsample</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()">vips_cast</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-uchar" title="vips_cast_uchar ()">vips_cast_uchar</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-char" title="vips_cast_char ()">vips_cast_char</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-ushort" title="vips_cast_ushort ()">vips_cast_ushort</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-short" title="vips_cast_short ()">vips_cast_short</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-uint" title="vips_cast_uint ()">vips_cast_uint</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-int" title="vips_cast_int ()">vips_cast_int</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-float" title="vips_cast_float ()">vips_cast_float</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-double" title="vips_cast_double ()">vips_cast_double</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-complex" title="vips_cast_complex ()">vips_cast_complex</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-cast-dpcomplex" title="vips_cast_dpcomplex ()">vips_cast_dpcomplex</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-scale" title="vips_scale ()">vips_scale</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-msb" title="vips_msb ()">vips_msb</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-bandjoin" title="vips_bandjoin ()">vips_bandjoin</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-bandjoin2" title="vips_bandjoin2 ()">vips_bandjoin2</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-bandrank" title="vips_bandrank ()">vips_bandrank</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-bandbool" title="vips_bandbool ()">vips_bandbool</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-bandand" title="vips_bandand ()">vips_bandand</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-bandor" title="vips_bandor ()">vips_bandor</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-bandeor" title="vips_bandeor ()">vips_bandeor</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-bandmean" title="vips_bandmean ()">vips_bandmean</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-recomb" title="vips_recomb ()">vips_recomb</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-ifthenelse" title="vips_ifthenelse ()">vips_ifthenelse</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-flatten" title="vips_flatten ()">vips_flatten</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-falsecolour" title="vips_falsecolour ()">vips_falsecolour</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#vips-gamma" title="vips_gamma ()">vips_gamma</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="libvips-conversion.html#im-insertset" title="im_insertset ()">im_insertset</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libvips-conversion.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="libvips-conversion.html#VipsExtend" title="enum VipsExtend">VipsExtend</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="libvips-conversion.html#VipsDirection" title="enum VipsDirection">VipsDirection</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="libvips-conversion.html#VipsAlign" title="enum VipsAlign">VipsAlign</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="libvips-conversion.html#VipsAngle" title="enum VipsAngle">VipsAngle</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="libvips-conversion.html#VipsAngle45" title="enum VipsAngle45">VipsAngle45</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libvips-conversion.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">
</pre>
</div>
<div class="refsect1">
<a name="libvips-conversion.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <vips/vips.h>
</pre>
</div>
<div class="refsect1">
<a name="libvips-conversion.description"></a><h2>Description</h2>
<p>These operations convert an image in some way. They can be split into a two
main groups.</p>
<p>The first set of operations change an image's format in some way. You
can change the band format (for example, cast to 32-bit unsigned
int), form complex images from real images, convert images to
matrices and back, change header fields, and a few others.</p>
<p>The second group move pixels about in some way. You can flip, rotate,
extract, insert and join pairs of images in various ways.</p>
</div>
<div class="refsect1">
<a name="libvips-conversion.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="vips-copy"></a><h3>vips_copy ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_copy (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>width</code></em>
: set image width
<em class="parameter"><code>height</code></em>
: set image height
<em class="parameter"><code>bands</code></em>
: set image bands
<em class="parameter"><code>format</code></em>
: set image format
<em class="parameter"><code>coding</code></em>
: set image coding
<em class="parameter"><code>interpretation</code></em>
: set image interpretation
<em class="parameter"><code>xres</code></em>
: set image xres
<em class="parameter"><code>yres</code></em>
: set image yres
<em class="parameter"><code>xoffset</code></em>
: set image xoffset
<em class="parameter"><code>yoffset</code></em>
: set image yoffset
<em class="parameter"><code>swap</code></em>
: swap byte order</p>
<p>Copy an image, optionally modifying the header. VIPS copies images by
copying pointers, so this operation is instant, even for very large images.</p>
<p>You can optionally set any or all header fields during the copy. Some
header fields, such as "xres", the horizontal resolution, are safe to
change in any way, others, such as "width" will cause immediate crashes if
they are not set carefully. </p>
<p>Setting <em class="parameter"><code>swap</code></em>
to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> will make <a class="link" href="libvips-conversion.html#vips-copy" title="vips_copy ()"><code class="function">vips_copy()</code></a> swap the byte ordering of
pixels according to the image's format.</p>
<div class="refsect3">
<a name="id-1.4.4.9.2.9"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.2.10"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-tilecache"></a><h3>vips_tilecache ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_tilecache (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>tile_width</code></em>
: width of tiles in cache
<em class="parameter"><code>tile_height</code></em>
: height of tiles in cache
<em class="parameter"><code>max_tiles</code></em>
: maximum number of tiles to cache
<em class="parameter"><code>access</code></em>
: hint expected access pattern <a class="link" href="VipsImage.html#VipsAccess" title="enum VipsAccess"><span class="type">VipsAccess</span></a>
<em class="parameter"><code>threaded</code></em>
: allow many threads
<em class="parameter"><code>persistent</code></em>
: don't drop cache at end of computation</p>
<p>This operation behaves rather like <a class="link" href="libvips-conversion.html#vips-copy" title="vips_copy ()"><code class="function">vips_copy()</code></a> between images
<em class="parameter"><code>in</code></em>
and <em class="parameter"><code>out</code></em>
, except that it keeps a cache of computed pixels.
This cache is made of up to <em class="parameter"><code>max_tiles</code></em>
tiles (a value of -1
means any number of tiles), and each tile is of size <em class="parameter"><code>tile_width</code></em>
by <em class="parameter"><code>tile_height</code></em>
pixels. </p>
<p>Each cache tile is made with a single call to
<code class="function">vips_image_prepare()</code>. </p>
<p>When the cache fills, a tile is chosen for reuse. If <em class="parameter"><code>access</code></em>
is
<a class="link" href="VipsImage.html#VIPS-ACCESS-RANDOM:CAPS"><span class="type">VIPS_ACCESS_RANDOM</span></a>, then the least-recently-used tile is reused. If
<em class="parameter"><code>access</code></em>
is <a class="link" href="VipsImage.html#VIPS-ACCESS-SEQUENTIAL:CAPS"><span class="type">VIPS_ACCESS_SEQUENTIAL</span></a> or <a class="link" href="VipsImage.html#VIPS-ACCESS-SEQUENTIAL-UNBUFFERED:CAPS"><span class="type">VIPS_ACCESS_SEQUENTIAL_UNBUFFERED</span></a>,
the top-most tile is reused.</p>
<p>By default, <em class="parameter"><code>tile_width</code></em>
and <em class="parameter"><code>tile_height</code></em>
are 128 pixels, and the operation
will cache up to 1,000 tiles. <em class="parameter"><code>access</code></em>
defaults to <a class="link" href="VipsImage.html#VIPS-ACCESS-RANDOM:CAPS"><span class="type">VIPS_ACCESS_RANDOM</span></a>.</p>
<p>Normally, only a single thread at once is allowed to calculate tiles. If
you set <em class="parameter"><code>threaded</code></em>
to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, <a class="link" href="libvips-conversion.html#vips-tilecache" title="vips_tilecache ()"><code class="function">vips_tilecache()</code></a> will allow many threads to
calculate tiles at once, and share the cache between them.</p>
<p>Normally the cache is dropped when computation finishes. Set <em class="parameter"><code>persistent</code></em>
to
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to keep the cache between computations.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-cache" title="vips_cache ()"><code class="function">vips_cache()</code></a>, <a class="link" href="libvips-conversion.html#vips-linecache" title="vips_linecache ()"><code class="function">vips_linecache()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.3.13"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.3.14"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-linecache"></a><h3>vips_linecache ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_linecache (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>access</code></em>
: hint expected access pattern <a class="link" href="VipsImage.html#VipsAccess" title="enum VipsAccess"><span class="type">VipsAccess</span></a>
<em class="parameter"><code>tile_height</code></em>
: height of tiles in cache
<em class="parameter"><code>threaded</code></em>
: allow many threads</p>
<p>This operation behaves rather like <a class="link" href="libvips-conversion.html#vips-copy" title="vips_copy ()"><code class="function">vips_copy()</code></a> between images
<em class="parameter"><code>in</code></em>
and <em class="parameter"><code>out</code></em>
, except that it keeps a cache of computed scanlines. </p>
<p>The number of lines cached is enough for a small amount of non-local
access. If you know you will not be making any non-local access, you can
save some memory and set <em class="parameter"><code>access</code></em>
to <a class="link" href="VipsImage.html#VIPS-ACCESS-SEQUENTIAL-UNBUFFERED:CAPS"><span class="type">VIPS_ACCESS_SEQUENTIAL_UNBUFFERED</span></a>. </p>
<p>Each cache tile is made with a single call to
<code class="function">vips_image_prepare()</code>. </p>
<p>When the cache fills, a tile is chosen for reuse. If <em class="parameter"><code>access</code></em>
is
<a class="link" href="VipsImage.html#VIPS-ACCESS-RANDOM:CAPS"><span class="type">VIPS_ACCESS_RANDOM</span></a>, then the least-recently-used tile is reused. If
<em class="parameter"><code>access</code></em>
is <a class="link" href="VipsImage.html#VIPS-ACCESS-SEQUENTIAL:CAPS"><span class="type">VIPS_ACCESS_SEQUENTIAL</span></a> or <a class="link" href="VipsImage.html#VIPS-ACCESS-SEQUENTIAL-UNBUFFERED:CAPS"><span class="type">VIPS_ACCESS_SEQUENTIAL_UNBUFFERED</span></a>,
the top-most tile is reused. <em class="parameter"><code>access</code></em>
defaults to <a class="link" href="VipsImage.html#VIPS-ACCESS-RANDOM:CAPS"><span class="type">VIPS_ACCESS_RANDOM</span></a>.</p>
<p><em class="parameter"><code>tile_height</code></em>
can be used to set the size of the strips that
<a class="link" href="libvips-conversion.html#vips-linecache" title="vips_linecache ()"><code class="function">vips_linecache()</code></a> uses. The default is 1 (a single scanline).</p>
<p>Normally, only a single thread at once is allowed to calculate tiles. If
you set <em class="parameter"><code>threaded</code></em>
to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, <a class="link" href="libvips-conversion.html#vips-linecache" title="vips_linecache ()"><code class="function">vips_linecache()</code></a> will allow many threads to
calculate tiles at once and share the cache between them.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-cache" title="vips_cache ()"><code class="function">vips_cache()</code></a>, <a class="link" href="libvips-conversion.html#vips-tilecache" title="vips_tilecache ()"><code class="function">vips_tilecache()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.4.13"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.4.14"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-sequential"></a><h3>vips_sequential ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_sequential (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>trace</code></em>
: trace requests
<em class="parameter"><code>strip_height</code></em>
: height of cache strips
<em class="parameter"><code>access</code></em>
: access pattern</p>
<p>This operation behaves rather like <a class="link" href="libvips-conversion.html#vips-copy" title="vips_copy ()"><code class="function">vips_copy()</code></a> between images
<em class="parameter"><code>in</code></em>
and <em class="parameter"><code>out</code></em>
, except that it checks that pixels are only requested
top-to-bottom. If a thread makes an out of order request, it is stalled
until the pack catches up.</p>
<p>This operation is useful for loading file formats which are
strictly top-to-bottom, like PNG. </p>
<p>If <em class="parameter"><code>trace</code></em>
is true, the operation will print diagnostic messages for each
block of pixels which are processed. This can help find the cause of
non-sequential accesses. </p>
<p><em class="parameter"><code>strip_height</code></em>
can be used to set the size of the tiles that
<a class="link" href="libvips-conversion.html#vips-sequential" title="vips_sequential ()"><code class="function">vips_sequential()</code></a> uses. The default value is 1.</p>
<p><em class="parameter"><code>access</code></em>
can be set to <a class="link" href="VipsImage.html#VIPS-ACCESS-SEQUENTIAL-UNBUFFERED:CAPS"><span class="type">VIPS_ACCESS_SEQUENTIAL_UNBUFFERED</span></a>, meaning don't
keep a large cache behind the read point. This can save some memory. </p>
<p>See also: <code class="function">vips_image_cache()</code>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.5.12"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.5.13"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cache"></a><h3>vips_cache ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cache (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>tile_width</code></em>
: width of tiles in cache
<em class="parameter"><code>tile_height</code></em>
: height of tiles in cache
<em class="parameter"><code>max_tiles</code></em>
: maximum number of tiles to cache</p>
<p>This operation behaves rather like <a class="link" href="libvips-conversion.html#vips-copy" title="vips_copy ()"><code class="function">vips_copy()</code></a> between images
<em class="parameter"><code>in</code></em>
and <em class="parameter"><code>out</code></em>
, except that it keeps a cache of computed pixels.
This cache is made of up to <em class="parameter"><code>max_tiles</code></em>
tiles (a value of -1
means any number of tiles), and each tile is of size <em class="parameter"><code>tile_width</code></em>
by <em class="parameter"><code>tile_height</code></em>
pixels. By default it will cache 250 128 x 128 pixel tiles,
enough for two 1920 x 1080 images. </p>
<p>This operation is a thin wrapper over <a class="link" href="libvips-generate.html#vips-sink-screen" title="vips_sink_screen ()"><code class="function">vips_sink_screen()</code></a>, see the
documentation for that operation for details. </p>
<p>It uses a set of background threads to calculate pixels and the various
active cache operations coordinate so as not to overwhelm your system.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-tilecache" title="vips_tilecache ()"><code class="function">vips_tilecache()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.6.10"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.6.11"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-copy-file"></a><h3>vips_copy_file ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_copy_file (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>A simple convenience function to copy an image to a file, then copy
again to output. If the image is already a file, just copy straight
through.</p>
<p>The file is allocated with <a class="link" href="VipsImage.html#vips-image-new-temp-file" title="vips_image_new_temp_file ()"><code class="function">vips_image_new_temp_file()</code></a>.
The file is automatically deleted when <em class="parameter"><code>out</code></em>
is closed.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-copy" title="vips_copy ()"><code class="function">vips_copy()</code></a>, <a class="link" href="VipsImage.html#vips-image-new-temp-file" title="vips_image_new_temp_file ()"><code class="function">vips_image_new_temp_file()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.7.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.7.8"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-embed"></a><h3>vips_embed ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_embed (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><span class="type">int</span> x</code></em>,
<em class="parameter"><code><span class="type">int</span> y</code></em>,
<em class="parameter"><code><span class="type">int</span> width</code></em>,
<em class="parameter"><code><span class="type">int</span> height</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>extend</code></em>
: how to generate the edge pixels (default: black)
<em class="parameter"><code>background</code></em>
: colour for edge pixels</p>
<p>The opposite of <a class="link" href="libvips-conversion.html#vips-extract-area" title="vips_extract_area ()"><code class="function">vips_extract_area()</code></a>: embed <em class="parameter"><code>in</code></em>
within an image of size
<em class="parameter"><code>width</code></em>
by <em class="parameter"><code>height</code></em>
at position <em class="parameter"><code>x</code></em>
, <em class="parameter"><code>y</code></em>
. <em class="parameter"><code>extend</code></em>
controls what appears in the new pels, see <a class="link" href="libvips-conversion.html#VipsExtend" title="enum VipsExtend"><span class="type">VipsExtend</span></a>. </p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-extract-area" title="vips_extract_area ()"><code class="function">vips_extract_area()</code></a>, <a class="link" href="libvips-conversion.html#vips-insert" title="vips_insert ()"><code class="function">vips_insert()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.8.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>place <em class="parameter"><code>in</code></em>
at this x position in <em class="parameter"><code>out</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>place <em class="parameter"><code>in</code></em>
at this y position in <em class="parameter"><code>out</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p><em class="parameter"><code>out</code></em>
should be this many pixels across</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p><em class="parameter"><code>out</code></em>
should be this many pixels down</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.8.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-flip"></a><h3>vips_flip ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_flip (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><a class="link" href="libvips-conversion.html#VipsDirection" title="enum VipsDirection"><span class="type">VipsDirection</span></a> direction</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Flips an image left-right or up-down.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-rot" title="vips_rot ()"><code class="function">vips_rot()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.9.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>direction</p></td>
<td class="parameter_description"><p>flip horizontally or vertically</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.9.7"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-insert"></a><h3>vips_insert ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_insert (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *main</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *sub</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><span class="type">int</span> x</code></em>,
<em class="parameter"><code><span class="type">int</span> y</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>expand</code></em>
: expand output to hold whole of both images
<em class="parameter"><code>background</code></em>
: colour for new pixels</p>
<p>Insert one image into another. <em class="parameter"><code>sub</code></em>
is inserted into image <em class="parameter"><code>main</code></em>
at
position <em class="parameter"><code>x</code></em>
, <em class="parameter"><code>y</code></em>
relative to the top LH corner of <em class="parameter"><code>main</code></em>
. </p>
<p>Normally <em class="parameter"><code>out</code></em>
shows the whole of <em class="parameter"><code>main</code></em>
. If <em class="parameter"><code>expand</code></em>
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> then <em class="parameter"><code>out</code></em>
is
made large enough to hold all of <em class="parameter"><code>main</code></em>
and <em class="parameter"><code>sub</code></em>
.
Any areas of <em class="parameter"><code>out</code></em>
not coming from
either <em class="parameter"><code>main</code></em>
or <em class="parameter"><code>sub</code></em>
are set to <em class="parameter"><code>background</code></em>
(default 0).</p>
<p>If <em class="parameter"><code>sub</code></em>
overlaps <em class="parameter"><code>main</code></em>
,
<em class="parameter"><code>sub</code></em>
will appear on top of <em class="parameter"><code>main</code></em>
. </p>
<p>If the number of bands differs, one of the images
must have one band. In this case, an n-band image is formed from the
one-band image by joining n copies of the one-band image together, and then
the two n-band images are operated upon.</p>
<p>The two input images are cast up to the smallest common type (see table
Smallest common format in </p>
arithmetic).
<p>See also: <a class="link" href="libvips-conversion.html#vips-join" title="vips_join ()"><code class="function">vips_join()</code></a>, <a class="link" href="libvips-conversion.html#vips-embed" title="vips_embed ()"><code class="function">vips_embed()</code></a>, <a class="link" href="libvips-conversion.html#vips-extract-area" title="vips_extract_area ()"><code class="function">vips_extract_area()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.10.13"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>main</p></td>
<td class="parameter_description"><p>big image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sub</p></td>
<td class="parameter_description"><p>small image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>left position of <em class="parameter"><code>sub</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>top position of <em class="parameter"><code>sub</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.10.14"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-join"></a><h3>vips_join ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_join (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *main</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *sub</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><a class="link" href="libvips-conversion.html#VipsDirection" title="enum VipsDirection"><span class="type">VipsDirection</span></a> direction</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>expand</code></em>
: <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to expand the output image to hold all of the input pixels
<em class="parameter"><code>shim</code></em>
: space between images, in pixels
<em class="parameter"><code>background</code></em>
: background ink colour
<em class="parameter"><code>align</code></em>
: low, centre or high alignment</p>
<p>Join <em class="parameter"><code>in1</code></em>
and <em class="parameter"><code>in2</code></em>
together, left-right or up-down depending on the value
of <em class="parameter"><code>direction</code></em>
.</p>
<p>If one is taller or wider than the
other, <em class="parameter"><code>out</code></em>
will be has high as the smaller. If <em class="parameter"><code>expand</code></em>
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then
the output will be expanded to contain all of the input pixels.</p>
<p>Use <em class="parameter"><code>align</code></em>
to set the edge that the images align on. By default, they align
on the edge with the lower value coordinate.</p>
<p>Use <em class="parameter"><code>background</code></em>
to set the colour of any pixels in <em class="parameter"><code>out</code></em>
which are not
present in either <em class="parameter"><code>in1</code></em>
or <em class="parameter"><code>in2</code></em>
.</p>
<p>Use <em class="parameter"><code>shim</code></em>
to set the spacing between the images. By default this is 0.</p>
<p>If the number of bands differs, one of the images
must have one band. In this case, an n-band image is formed from the
one-band image by joining n copies of the one-band image together, and then
the two n-band images are operated upon.</p>
<p>The two input images are cast up to the smallest common type (see table
Smallest common format in </p>
arithmetic).
<p>See also: <a class="link" href="libvips-conversion.html#vips-insert" title="vips_insert ()"><code class="function">vips_insert()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.11.15"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in1</p></td>
<td class="parameter_description"><p>first input image </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>in2</p></td>
<td class="parameter_description"><p>second input image </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>direction</p></td>
<td class="parameter_description"><p>join horizontally or vertically</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.11.16"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-extract-area"></a><h3>vips_extract_area ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_extract_area (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *input</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **output</code></em>,
<em class="parameter"><code><span class="type">int</span> left</code></em>,
<em class="parameter"><code><span class="type">int</span> top</code></em>,
<em class="parameter"><code><span class="type">int</span> width</code></em>,
<em class="parameter"><code><span class="type">int</span> height</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Extract an area from an image. The area must fit within <em class="parameter"><code>in</code></em>
.</p>
<p>See also: <a href="libvips-conversion.html#vips-extract-band"><code class="function">vips_extract_bands()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.12.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>left</p></td>
<td class="parameter_description"><p>left edge of area to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>top</p></td>
<td class="parameter_description"><p>top edge of area to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>width of area to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>height of area to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.12.7"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-crop"></a><h3>vips_crop ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_crop (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *input</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **output</code></em>,
<em class="parameter"><code><span class="type">int</span> left</code></em>,
<em class="parameter"><code><span class="type">int</span> top</code></em>,
<em class="parameter"><code><span class="type">int</span> width</code></em>,
<em class="parameter"><code><span class="type">int</span> height</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>A synonym for <a class="link" href="libvips-conversion.html#vips-extract-area" title="vips_extract_area ()"><code class="function">vips_extract_area()</code></a>. </p>
<p>See also: <a href="libvips-conversion.html#vips-extract-band"><code class="function">vips_extract_bands()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.13.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>left</p></td>
<td class="parameter_description"><p>left edge of area to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>top</p></td>
<td class="parameter_description"><p>top edge of area to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>width of area to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>height of area to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.13.7"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-extract-band"></a><h3>vips_extract_band ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_extract_band (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *input</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **output</code></em>,
<em class="parameter"><code><span class="type">int</span> band</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>n</code></em>
: number of bands to extract</p>
<p>Extract a band or bands from an image. Extracting out of range is an error.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-extract-area" title="vips_extract_area ()"><code class="function">vips_extract_area()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.14.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>band</p></td>
<td class="parameter_description"><p>band to extract</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.14.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-replicate"></a><h3>vips_replicate ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_replicate (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><span class="type">int</span> across</code></em>,
<em class="parameter"><code><span class="type">int</span> down</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Repeats an image many times.</p>
<p>See also: <code class="function">vips_extract()</code>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.15.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>across</p></td>
<td class="parameter_description"><p>repeat input this many times across</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>down</p></td>
<td class="parameter_description"><p>repeat input this many times down</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.15.7"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-grid"></a><h3>vips_grid ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_grid (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><span class="type">int</span> tile_height</code></em>,
<em class="parameter"><code><span class="type">int</span> across</code></em>,
<em class="parameter"><code><span class="type">int</span> down</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Chop a tall thin image up into a set of tiles, lay the tiles out in a grid. </p>
<p>The input image should be a very tall, thin image containing a list of
smaller images. Volumetric or time-sequence images are often laid out like
this. This image is chopped into a series of tiles, each <em class="parameter"><code>tile_height</code></em>
pixels high and the width of <em class="parameter"><code>in</code></em>
. The tiles are then rearranged into a grid
<em class="parameter"><code>across</code></em>
tiles across and <em class="parameter"><code>down</code></em>
tiles down in row-major order.</p>
<p>Supplying <em class="parameter"><code>tile_height</code></em>
, <em class="parameter"><code>across</code></em>
and <em class="parameter"><code>down</code></em>
is not strictly necessary, we
only really need two of these. Requiring three is a double-check that the
image has the expected geometry. </p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-embed" title="vips_embed ()"><code class="function">vips_embed()</code></a>, <a class="link" href="libvips-conversion.html#vips-insert" title="vips_insert ()"><code class="function">vips_insert()</code></a>, <a class="link" href="libvips-conversion.html#vips-join" title="vips_join ()"><code class="function">vips_join()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.16.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>tile_height</p></td>
<td class="parameter_description"><p>chop into tiles this high</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>across</p></td>
<td class="parameter_description"><p>tiles across</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>down</p></td>
<td class="parameter_description"><p>tiles down</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.16.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-wrap"></a><h3>vips_wrap ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_wrap (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>x</code></em>
: horizontal displacement
<em class="parameter"><code>y</code></em>
: vertical displacement</p>
<p>Slice an image up and move the segments about so that the pixel that was
at 0, 0 is now at <em class="parameter"><code>x</code></em>
, <em class="parameter"><code>y</code></em>
. If <em class="parameter"><code>x</code></em>
and <em class="parameter"><code>y</code></em>
are not set, they default to the
centre of the image. </p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-embed" title="vips_embed ()"><code class="function">vips_embed()</code></a>, <a class="link" href="libvips-conversion.html#vips-replicate" title="vips_replicate ()"><code class="function">vips_replicate()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.17.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.17.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-rot"></a><h3>vips_rot ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_rot (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><a class="link" href="libvips-conversion.html#VipsAngle" title="enum VipsAngle"><span class="type">VipsAngle</span></a> angle</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Rotate <em class="parameter"><code>in</code></em>
by a multiple of 90 degrees.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-flip" title="vips_flip ()"><code class="function">vips_flip()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.18.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>angle</p></td>
<td class="parameter_description"><p>rotation angle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.18.7"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-rot45"></a><h3>vips_rot45 ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_rot45 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>angle</code></em>
: rotation angle</p>
<p>Rotate <em class="parameter"><code>in</code></em>
by a multiple of 45 degrees. Odd-length sides and square images
only. </p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-rot" title="vips_rot ()"><code class="function">vips_rot()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.19.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.19.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-zoom"></a><h3>vips_zoom ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_zoom (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><span class="type">int</span> xfac</code></em>,
<em class="parameter"><code><span class="type">int</span> yfac</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Zoom an image by repeating pixels. This is fast nearest-neighbour
zoom.</p>
<p>See also: <a class="link" href="libvips-resample.html#vips-affine" title="vips_affine ()"><code class="function">vips_affine()</code></a>, <a class="link" href="libvips-conversion.html#vips-subsample" title="vips_subsample ()"><code class="function">vips_subsample()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.20.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xfac</p></td>
<td class="parameter_description"><p>horizontal scale factor</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yfac</p></td>
<td class="parameter_description"><p>vertical scale factor</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.20.7"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-subsample"></a><h3>vips_subsample ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_subsample (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><span class="type">int</span> xfac</code></em>,
<em class="parameter"><code><span class="type">int</span> yfac</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>point</code></em>
: turn on point sample mode</p>
<p>Subsample an image by an integer fraction. This is fast, nearest-neighbour
shrink.</p>
<p>For small horizontal shrinks, this operation will fetch lines of pixels
from <em class="parameter"><code>in</code></em>
and then subsample that line. For large shrinks it will fetch
single pixels.</p>
<p>If <em class="parameter"><code>point</code></em>
is set, <em class="parameter"><code>in</code></em>
will always be sampled in points. This can be faster
if the previous operations in the pipeline are very slow.</p>
<p>See also: <a class="link" href="libvips-resample.html#vips-affine" title="vips_affine ()"><code class="function">vips_affine()</code></a>, <a class="link" href="libvips-resample.html#vips-shrink" title="vips_shrink ()"><code class="function">vips_shrink()</code></a>, <a class="link" href="libvips-conversion.html#vips-zoom" title="vips_zoom ()"><code class="function">vips_zoom()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.21.10"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xfac</p></td>
<td class="parameter_description"><p>horizontal shrink factor</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yfac</p></td>
<td class="parameter_description"><p>vertical shrink factor</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.21.11"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast"></a><h3>vips_cast ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <em class="parameter"><code>format</code></em>
. You can convert between any pair of formats.
Floats are truncated (not rounded). Out of range values are clipped.</p>
<p>Casting from complex to real returns the real part. </p>
<p>See also: <code class="function">im_scale()</code>, <code class="function">im_ri2c()</code>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.22.7"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>format</p></td>
<td class="parameter_description"><p>format to convert to</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.22.8"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-uchar"></a><h3>vips_cast_uchar ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_uchar (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-UCHAR:CAPS"><span class="type">VIPS_FORMAT_UCHAR</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.23.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.23.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-char"></a><h3>vips_cast_char ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_char (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-CHAR:CAPS"><span class="type">VIPS_FORMAT_CHAR</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.24.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.24.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-ushort"></a><h3>vips_cast_ushort ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_ushort (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-USHORT:CAPS"><span class="type">VIPS_FORMAT_USHORT</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.25.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.25.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-short"></a><h3>vips_cast_short ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_short (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-SHORT:CAPS"><span class="type">VIPS_FORMAT_SHORT</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.26.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.26.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-uint"></a><h3>vips_cast_uint ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_uint (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-UINT:CAPS"><span class="type">VIPS_FORMAT_UINT</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.27.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.27.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-int"></a><h3>vips_cast_int ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_int (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-INT:CAPS"><span class="type">VIPS_FORMAT_INT</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.28.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.28.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-float"></a><h3>vips_cast_float ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_float (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-FLOAT:CAPS"><span class="type">VIPS_FORMAT_FLOAT</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.29.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.29.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-double"></a><h3>vips_cast_double ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_double (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-DOUBLE:CAPS"><span class="type">VIPS_FORMAT_DOUBLE</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.30.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.30.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-complex"></a><h3>vips_cast_complex ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_complex (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-COMPLEX:CAPS"><span class="type">VIPS_FORMAT_COMPLEX</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.31.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.31.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-cast-dpcomplex"></a><h3>vips_cast_dpcomplex ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_cast_dpcomplex (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Convert <em class="parameter"><code>in</code></em>
to <a class="link" href="VipsImage.html#VIPS-FORMAT-DPCOMPLEX:CAPS"><span class="type">VIPS_FORMAT_DPCOMPLEX</span></a>. See <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.32.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.32.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-scale"></a><h3>vips_scale ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_scale (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>log</code></em>
: log scale pixels
<em class="parameter"><code>exp</code></em>
: exponent for log scale</p>
<p>Search the image for the maximum and minimum value, then return the image
as unsigned 8-bit, scaled so that the maximum value is 255 and the
minimum is zero.</p>
<p>If <em class="parameter"><code>log</code></em>
is set, transform with log10(1.0 + pow(x, <em class="parameter"><code>exp</code></em>
)) + .5,
then scale so max == 255. By default, <em class="parameter"><code>exp</code></em>
is 0.25.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.33.9"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.33.10"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-msb"></a><h3>vips_msb ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_msb (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>band</code></em>
: msb just this band</p>
<p>Turn any integer image to 8-bit unsigned char by discarding all but the most
significant byte. Signed values are converted to unsigned by adding 128.</p>
<p>Use <em class="parameter"><code>band</code></em>
to make a one-band 8-bit image. </p>
<p>This operator also works for LABQ coding.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-scale" title="vips_scale ()"><code class="function">vips_scale()</code></a>, <a class="link" href="libvips-conversion.html#vips-cast" title="vips_cast ()"><code class="function">vips_cast()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.34.10"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.34.11"></a><h4>Returns</h4>
<p> 0 on success, -1 on error.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-bandjoin"></a><h3>vips_bandjoin ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_bandjoin (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><span class="type">int</span> n</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Join a set of images together, bandwise. </p>
<p>If the images
have n and m bands, then the output image will have n + m
bands, with the first n coming from the first image and the last m
from the second. </p>
<p>If the images differ in size, the smaller images are enlarged to match the
larger by adding zero pixels along the bottom and right.</p>
<p>The input images are cast up to the smallest common type (see table
Smallest common format in </p>
arithmetic).
<p>See also: <a class="link" href="libvips-conversion.html#vips-insert" title="vips_insert ()"><code class="function">vips_insert()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.35.10"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>array of input images</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n</p></td>
<td class="parameter_description"><p>number of input images</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.35.11"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-bandjoin2"></a><h3>vips_bandjoin2 ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_bandjoin2 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in1</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in2</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Join a pair of images together, bandwise. See <a class="link" href="libvips-conversion.html#vips-bandjoin" title="vips_bandjoin ()"><code class="function">vips_bandjoin()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.36.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in1</p></td>
<td class="parameter_description"><p>first input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>in2</p></td>
<td class="parameter_description"><p>second input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.36.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-bandrank"></a><h3>vips_bandrank ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_bandrank (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><span class="type">int</span> n</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>index</code></em>
: pick this index from list of sorted values</p>
<p>Sorts the images <em class="parameter"><code>in</code></em>
band-element-wise, then outputs an
image in which each band element is selected from the sorted list by the
<em class="parameter"><code>index</code></em>
parameter. For example, if <em class="parameter"><code>index</code></em>
is zero, then each output band element will be the minimum of all the
corresponding input band element. </p>
<p>By default, <em class="parameter"><code>index</code></em>
is -1, meaning pick the median value. </p>
<p>It works for any uncoded, non-complex image type. Images are cast up to the
smallest common-format.</p>
<p>Any image can have either 1 band or n bands, where n is the same for all
the non-1-band images. Single band images are then effectively copied to
make n-band images.</p>
<p>Smaller input images are expanded by adding black pixels.</p>
<p>See also: <a class="link" href="libvips-morphology.html#vips-rank" title="vips_rank ()"><code class="function">vips_rank()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.37.12"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>array of input images</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n</p></td>
<td class="parameter_description"><p>number of input images</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.37.13"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-bandbool"></a><h3>vips_bandbool ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_bandbool (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><a class="link" href="libvips-arithmetic.html#VipsOperationBoolean" title="enum VipsOperationBoolean"><span class="type">VipsOperationBoolean</span></a> operation</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Perform various boolean operations across the bands of an image. For
example, a three-band uchar image operated on with
<a class="link" href="libvips-arithmetic.html#VIPS-OPERATION-BOOLEAN-AND:CAPS"><span class="type">VIPS_OPERATION_BOOLEAN_AND</span></a> will produce a one-band uchar image where each
pixel is the bitwise and of the band elements of the corresponding pixel in
the input image. </p>
<p>The output image is the same format as the input image for integer
types. Float types are cast to int before processing. Complex types are not
supported.</p>
<p>The output image always has one band. </p>
<p>This operation is useful in conjuction with <a class="link" href="libvips-arithmetic.html#vips-relational" title="vips_relational ()"><code class="function">vips_relational()</code></a>. You can use
it to see if all image bands match exactly. </p>
<p>See also: <a class="link" href="libvips-arithmetic.html#vips-boolean-const" title="vips_boolean_const ()"><code class="function">vips_boolean_const()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.38.9"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>im</p></td>
<td class="parameter_description"><p>left-hand input <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>operation</p></td>
<td class="parameter_description"><p>boolean operation to perform</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.38.10"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-bandand"></a><h3>vips_bandand ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_bandand (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Perform <a class="link" href="libvips-arithmetic.html#VIPS-OPERATION-BOOLEAN-AND:CAPS"><span class="type">VIPS_OPERATION_BOOLEAN_AND</span></a> on an image. See
<a class="link" href="libvips-conversion.html#vips-bandbool" title="vips_bandbool ()"><code class="function">vips_bandbool()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.39.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>left-hand input <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.39.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-bandor"></a><h3>vips_bandor ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_bandor (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Perform <a class="link" href="libvips-arithmetic.html#VIPS-OPERATION-BOOLEAN-OR:CAPS"><span class="type">VIPS_OPERATION_BOOLEAN_OR</span></a> on an image. See
<a class="link" href="libvips-conversion.html#vips-bandbool" title="vips_bandbool ()"><code class="function">vips_bandbool()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.40.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>left-hand input <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.40.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-bandeor"></a><h3>vips_bandeor ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_bandeor (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Perform <a class="link" href="libvips-arithmetic.html#VIPS-OPERATION-BOOLEAN-EOR:CAPS"><span class="type">VIPS_OPERATION_BOOLEAN_EOR</span></a> on an image. See
<a class="link" href="libvips-conversion.html#vips-bandbool" title="vips_bandbool ()"><code class="function">vips_bandbool()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.41.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>left-hand input <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.41.6"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-bandmean"></a><h3>vips_bandmean ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_bandmean (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>This operation writes a one-band image where each pixel is the average of
the bands for that pixel in the input image. The output band format is
the same as the input band format. Integer types use round-to-nearest
averaging.</p>
<p>See also: <a class="link" href="libvips-arithmetic.html#vips-add" title="vips_add ()"><code class="function">vips_add()</code></a>, <a class="link" href="libvips-arithmetic.html#vips-avg" title="vips_avg ()"><code class="function">vips_avg()</code></a>, <a class="link" href="libvips-conversion.html#vips-recomb" title="vips_recomb ()"><code class="function">vips_recomb()</code></a></p>
<div class="refsect3">
<a name="id-1.4.4.9.42.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input <span class="type">IMAGE</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output <span class="type">IMAGE</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.42.7"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-recomb"></a><h3>vips_recomb ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_recomb (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *m</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>This operation recombines an image's bands. Each pixel in <em class="parameter"><code>in</code></em>
is treated as
an n-element vector, where n is the number of bands in <em class="parameter"><code>in</code></em>
, and multipled by
the n x m matrix <em class="parameter"><code>m</code></em>
to produce the m-band image <em class="parameter"><code>out</code></em>
.</p>
<p><em class="parameter"><code>out</code></em>
is always float, unless <em class="parameter"><code>in</code></em>
is double, in which case <em class="parameter"><code>out</code></em>
is double
too. No complex images allowed.</p>
<p>It's useful for various sorts of colour space conversions.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-bandmean" title="vips_bandmean ()"><code class="function">vips_bandmean()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.43.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>m</p></td>
<td class="parameter_description"><p>recombination matrix</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.43.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-ifthenelse"></a><h3>vips_ifthenelse ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_ifthenelse (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *cond</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in1</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in2</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>blend</code></em>
: blend smoothly between <em class="parameter"><code>in1</code></em>
and <em class="parameter"><code>in2</code></em>
</p>
<p>This operation scans the condition image <em class="parameter"><code>cond</code></em>
and uses it to select pixels from either the then image <em class="parameter"><code>in1</code></em>
or the else
image <em class="parameter"><code>in2</code></em>
. Non-zero means <em class="parameter"><code>in1</code></em>
, 0 means <em class="parameter"><code>in2</code></em>
.</p>
<p>Any image can have either 1 band or n bands, where n is the same for all
the non-1-band images. Single band images are then effectively copied to
make n-band images.</p>
<p>Images <em class="parameter"><code>in1</code></em>
and <em class="parameter"><code>in2</code></em>
are cast up to the smallest common format. <em class="parameter"><code>cond</code></em>
is
cast to uchar.</p>
<p>If the images differ in size, the smaller images are enlarged to match the
largest by adding zero pixels along the bottom and right.</p>
<p>If <em class="parameter"><code>blend</code></em>
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then values in <em class="parameter"><code>out</code></em>
are smoothly blended between <em class="parameter"><code>in1</code></em>
and <em class="parameter"><code>in2</code></em>
using the formula:</p>
<p> <em class="parameter"><code>out</code></em>
= (<em class="parameter"><code>cond</code></em>
/ 255) * <em class="parameter"><code>in1</code></em>
+ (1 - <em class="parameter"><code>cond</code></em>
/ 255) * <em class="parameter"><code>in2</code></em>
</p>
<p>See also: <a class="link" href="libvips-arithmetic.html#vips-equal" title="vips_equal ()"><code class="function">vips_equal()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.44.13"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cond</p></td>
<td class="parameter_description"><p>condition <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>in1</p></td>
<td class="parameter_description"><p>then <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>in2</p></td>
<td class="parameter_description"><p>else <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.44.14"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-flatten"></a><h3>vips_flatten ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_flatten (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>background</code></em>
: colour for new pixels</p>
<p>Take the last band of <em class="parameter"><code>in</code></em>
as an alpha and use it to blend the
remaining channels with <em class="parameter"><code>background</code></em>
. </p>
<p>The alpha channel is 0 - 255 for
integer images and 0 - 1 for float images, where 255 means 100% image and 0
means 100% background. Non-complex images only.
<em class="parameter"><code>background</code></em>
defaults to zero (black).</p>
<p>Useful for flattening PNG images to RGB.</p>
<p>See also: <code class="function">pngload()</code>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.45.10"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.45.11"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-falsecolour"></a><h3>vips_falsecolour ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_falsecolour (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Force <em class="parameter"><code>in</code></em>
to 1 band, 8-bit, then transform to
a 3-band 8-bit image with a false colour
map. The map is supposed to make small differences in brightness more
obvious.</p>
<p>See also: <a class="link" href="libvips-histogram.html#vips-maplut" title="vips_maplut ()"><code class="function">vips_maplut()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.46.6"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.46.7"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="vips-gamma"></a><h3>vips_gamma ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
vips_gamma (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *in</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **out</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>Optional arguments:</p>
<p><em class="parameter"><code>exponent</code></em>
: gamma, default 1.0 / 2.4</p>
<p>Calculate <em class="parameter"><code>in</code></em>
** (1 / <em class="parameter"><code>exponent</code></em>
), normalising to the maximum range of the
input type. For float types use 1.0 as the maximum. </p>
<p>See also: <a class="link" href="libvips-create.html#vips-identity" title="vips_identity ()"><code class="function">vips_identity()</code></a>, <a class="link" href="libvips-arithmetic.html#vips-pow-const1" title="vips_pow_const1 ()"><code class="function">vips_pow_const1()</code></a>, <a class="link" href="libvips-histogram.html#vips-maplut" title="vips_maplut ()"><code class="function">vips_maplut()</code></a></p>
<div class="refsect3">
<a name="id-1.4.4.9.47.8"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>in</p></td>
<td class="parameter_description"><p>input image </p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p><a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated list of optional named arguments</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.47.9"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="im-insertset"></a><h3>im_insertset ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
im_insertset (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *main</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *sub</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>,
<em class="parameter"><code><span class="type">int</span> n</code></em>,
<em class="parameter"><code><span class="type">int</span> *x</code></em>,
<em class="parameter"><code><span class="type">int</span> *y</code></em>);</pre>
<p>Insert <em class="parameter"><code>sub</code></em>
repeatedly into <em class="parameter"><code>main</code></em>
at the positions listed in the arrays <em class="parameter"><code>x</code></em>
,
<em class="parameter"><code>y</code></em>
of length <em class="parameter"><code>n</code></em>
. <em class="parameter"><code>out</code></em>
is the same
size as <em class="parameter"><code>main</code></em>
. <em class="parameter"><code>sub</code></em>
is clipped against the edges of <em class="parameter"><code>main</code></em>
. </p>
<p>This operation is fast for large <em class="parameter"><code>n</code></em>
, but will use a memory buffer the size
of <em class="parameter"><code>out</code></em>
. It's useful for things like making scatter plots.</p>
<p>If the number of bands differs, one of the images
must have one band. In this case, an n-band image is formed from the
one-band image by joining n copies of the one-band image together, and then
the two n-band images are operated upon.</p>
<p>The two input images are cast up to the smallest common type (see table
Smallest common format in </p>
arithmetic).
<p>See also: <code class="function">im_insert()</code>, <code class="function">im_lrjoin()</code>.</p>
<div class="refsect3">
<a name="id-1.4.4.9.48.10"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>main</p></td>
<td class="parameter_description"><p>big image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>sub</p></td>
<td class="parameter_description"><p>small image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>out</p></td>
<td class="parameter_description"><p>output image</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>n</p></td>
<td class="parameter_description"><p>number of positions</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x</p></td>
<td class="parameter_description"><p>left positions of <em class="parameter"><code>sub</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y</p></td>
<td class="parameter_description"><p>top positions of <em class="parameter"><code>sub</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.4.4.9.48.11"></a><h4>Returns</h4>
<p> 0 on success, -1 on error</p>
<p></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="libvips-conversion.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="VipsExtend"></a><h3>enum VipsExtend</h3>
<p>See <a class="link" href="libvips-conversion.html#vips-embed" title="vips_embed ()"><code class="function">vips_embed()</code></a>, <a class="link" href="libvips-convolution.html#vips-conv" title="vips_conv ()"><code class="function">vips_conv()</code></a>, <a class="link" href="libvips-resample.html#vips-affine" title="vips_affine ()"><code class="function">vips_affine()</code></a> and so on.</p>
<p>When the edges of an image are extended, you can specify
how you want the extension done. </p>
<p><a class="link" href="libvips-conversion.html#VIPS-EXTEND-BLACK:CAPS"><span class="type">VIPS_EXTEND_BLACK</span></a> --- new pixels are black, ie. all bits are zero. </p>
<p><a class="link" href="libvips-conversion.html#VIPS-EXTEND-COPY:CAPS"><span class="type">VIPS_EXTEND_COPY</span></a> --- each new pixel takes the value of the nearest edge
pixel</p>
<p><a class="link" href="libvips-conversion.html#VIPS-EXTEND-REPEAT:CAPS"><span class="type">VIPS_EXTEND_REPEAT</span></a> --- the image is tiled to fill the new area</p>
<p><a class="link" href="libvips-conversion.html#VIPS-EXTEND-MIRROR:CAPS"><span class="type">VIPS_EXTEND_MIRROR</span></a> --- the image is reflected and tiled to reduce hash
edges</p>
<p><a class="link" href="libvips-conversion.html#VIPS-EXTEND-WHITE:CAPS"><span class="type">VIPS_EXTEND_WHITE</span></a> --- new pixels are white, ie. all bits are set</p>
<p><a class="link" href="libvips-conversion.html#VIPS-EXTEND-BACKGROUND:CAPS"><span class="type">VIPS_EXTEND_BACKGROUND</span></a> --- colour set from the <em class="parameter"><code>background</code></em>
property</p>
<p>We have to specify the exact value of each enum member since we have to
keep these frozen for back compat with vips7.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-embed" title="vips_embed ()"><code class="function">vips_embed()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.10.2.13"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="VIPS-EXTEND-BLACK:CAPS"></a>VIPS_EXTEND_BLACK</p></td>
<td class="enum_member_description">
<p>extend with black (all 0) pixels</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-EXTEND-COPY:CAPS"></a>VIPS_EXTEND_COPY</p></td>
<td class="enum_member_description">
<p>copy the image edges</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-EXTEND-REPEAT:CAPS"></a>VIPS_EXTEND_REPEAT</p></td>
<td class="enum_member_description">
<p>repeat the whole image</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-EXTEND-MIRROR:CAPS"></a>VIPS_EXTEND_MIRROR</p></td>
<td class="enum_member_description">
<p>mirror the whole image</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-EXTEND-WHITE:CAPS"></a>VIPS_EXTEND_WHITE</p></td>
<td class="enum_member_description">
<p>extend with white (all bits set) pixels</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-EXTEND-BACKGROUND:CAPS"></a>VIPS_EXTEND_BACKGROUND</p></td>
<td class="enum_member_description">
<p>extend with colour from the <em class="parameter"><code>background</code></em>
property</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-EXTEND-LAST:CAPS"></a>VIPS_EXTEND_LAST</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="VipsDirection"></a><h3>enum VipsDirection</h3>
<p>See <a class="link" href="libvips-conversion.html#vips-flip" title="vips_flip ()"><code class="function">vips_flip()</code></a>, <a class="link" href="libvips-conversion.html#vips-join" title="vips_join ()"><code class="function">vips_join()</code></a> and so on.</p>
<p>Operations like <a class="link" href="libvips-conversion.html#vips-flip" title="vips_flip ()"><code class="function">vips_flip()</code></a> need to be told whether to flip left-right or
top-bottom. </p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-flip" title="vips_flip ()"><code class="function">vips_flip()</code></a>, <a class="link" href="libvips-conversion.html#vips-join" title="vips_join ()"><code class="function">vips_join()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.10.3.6"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="VIPS-DIRECTION-HORIZONTAL:CAPS"></a>VIPS_DIRECTION_HORIZONTAL</p></td>
<td class="enum_member_description">
<p>left-right </p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-DIRECTION-VERTICAL:CAPS"></a>VIPS_DIRECTION_VERTICAL</p></td>
<td class="enum_member_description">
<p>top-bottom</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-DIRECTION-LAST:CAPS"></a>VIPS_DIRECTION_LAST</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="VipsAlign"></a><h3>enum VipsAlign</h3>
<p>See <a class="link" href="libvips-conversion.html#vips-join" title="vips_join ()"><code class="function">vips_join()</code></a> and so on.</p>
<p>Operations like <a class="link" href="libvips-conversion.html#vips-join" title="vips_join ()"><code class="function">vips_join()</code></a> need to be told whether to align images on the
low or high coordinate edge, or centre.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-join" title="vips_join ()"><code class="function">vips_join()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.10.4.6"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ALIGN-LOW:CAPS"></a>VIPS_ALIGN_LOW</p></td>
<td class="enum_member_description">
<p>align low coordinate edge</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ALIGN-CENTRE:CAPS"></a>VIPS_ALIGN_CENTRE</p></td>
<td class="enum_member_description">
<p>align centre</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ALIGN-HIGH:CAPS"></a>VIPS_ALIGN_HIGH</p></td>
<td class="enum_member_description">
<p>align high coordinate edge</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ALIGN-LAST:CAPS"></a>VIPS_ALIGN_LAST</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="VipsAngle"></a><h3>enum VipsAngle</h3>
<p>See <a class="link" href="libvips-conversion.html#vips-rot" title="vips_rot ()"><code class="function">vips_rot()</code></a> and so on.</p>
<p>Fixed rotate angles.</p>
<p>See also: <a class="link" href="libvips-conversion.html#vips-rot" title="vips_rot ()"><code class="function">vips_rot()</code></a>.</p>
<div class="refsect3">
<a name="id-1.4.4.10.5.6"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE-0:CAPS"></a>VIPS_ANGLE_0</p></td>
<td class="enum_member_description">
<p>no rotate</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE-90:CAPS"></a>VIPS_ANGLE_90</p></td>
<td class="enum_member_description">
<p>90 degrees anti-clockwise</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE-180:CAPS"></a>VIPS_ANGLE_180</p></td>
<td class="enum_member_description">
<p>180 degree rotate</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE-270:CAPS"></a>VIPS_ANGLE_270</p></td>
<td class="enum_member_description">
<p>90 degrees clockwise</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE-LAST:CAPS"></a>VIPS_ANGLE_LAST</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="VipsAngle45"></a><h3>enum VipsAngle45</h3>
<div class="refsect3">
<a name="id-1.4.4.10.6.3"></a><h4>Members</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-0:CAPS"></a>VIPS_ANGLE45_0</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-45:CAPS"></a>VIPS_ANGLE45_45</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-90:CAPS"></a>VIPS_ANGLE45_90</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-135:CAPS"></a>VIPS_ANGLE45_135</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-180:CAPS"></a>VIPS_ANGLE45_180</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-225:CAPS"></a>VIPS_ANGLE45_225</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-270:CAPS"></a>VIPS_ANGLE45_270</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-315:CAPS"></a>VIPS_ANGLE45_315</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="VIPS-ANGLE45-LAST:CAPS"></a>VIPS_ANGLE45_LAST</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="libvips-conversion.see-also"></a><h2>See Also</h2>
<a class="link" href="libvips-resample.html" title="resample">resample</a>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.20</div>
</body>
</html>
|