This file is indexed.

/usr/share/gtk-doc/html/libvips/VipsImage.html is in libvips-doc 7.38.5-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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>VipsImage</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="ch01.html" title="Core VIPS API">
<link rel="prev" href="ch01.html" title="Core VIPS API">
<link rel="next" href="VipsRegion.html" title="VipsRegion">
<meta name="generator" content="GTK-Doc V1.19 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">VIPS Reference Manual</th>
<td><a accesskey="n" href="VipsRegion.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#VipsImage.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#VipsImage.description" class="shortcut">Description</a>
                   | 
                  <a href="#VipsImage.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#VipsImage.properties" class="shortcut">Properties</a>
                   | 
                  <a href="#VipsImage.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="VipsImage"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="VipsImage.top_of_page"></a>VipsImage</span></h2>
<p>VipsImage — the VIPS image class</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="VipsImage.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="VipsImage.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;vips/vips.h&gt;

#define             <a class="link" href="VipsImage.html#VIPS-MAGIC-INTEL:CAPS" title="VIPS_MAGIC_INTEL">VIPS_MAGIC_INTEL</a>
#define             <a class="link" href="VipsImage.html#VIPS-MAGIC-SPARC:CAPS" title="VIPS_MAGIC_SPARC">VIPS_MAGIC_SPARC</a>
enum                <a class="link" href="VipsImage.html#VipsDemandStyle" title="enum VipsDemandStyle">VipsDemandStyle</a>;
enum                <a class="link" href="VipsImage.html#VipsImageType" title="enum VipsImageType">VipsImageType</a>;
enum                <a class="link" href="VipsImage.html#VipsInterpretation" title="enum VipsInterpretation">VipsInterpretation</a>;
enum                <a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat">VipsBandFormat</a>;
enum                <a class="link" href="VipsImage.html#VipsCoding" title="enum VipsCoding">VipsCoding</a>;
enum                <a class="link" href="VipsImage.html#VipsAccess" title="enum VipsAccess">VipsAccess</a>;
                    <a class="link" href="VipsImage.html#VipsProgress" title="VipsProgress">VipsProgress</a>;
                    <a class="link" href="VipsImage.html#VipsImage-struct" title="VipsImage">VipsImage</a>;
                    <a class="link" href="VipsImage.html#VipsImageClass" title="VipsImageClass">VipsImageClass</a>;
#define             <a class="link" href="VipsImage.html#VIPS-IMAGE-SIZEOF-ELEMENT:CAPS" title="VIPS_IMAGE_SIZEOF_ELEMENT()">VIPS_IMAGE_SIZEOF_ELEMENT</a>           (I)
#define             <a class="link" href="VipsImage.html#VIPS-IMAGE-SIZEOF-PEL:CAPS" title="VIPS_IMAGE_SIZEOF_PEL()">VIPS_IMAGE_SIZEOF_PEL</a>               (I)
#define             <a class="link" href="VipsImage.html#VIPS-IMAGE-SIZEOF-LINE:CAPS" title="VIPS_IMAGE_SIZEOF_LINE()">VIPS_IMAGE_SIZEOF_LINE</a>              (I)
#define             <a class="link" href="VipsImage.html#VIPS-IMAGE-N-ELEMENTS:CAPS" title="VIPS_IMAGE_N_ELEMENTS()">VIPS_IMAGE_N_ELEMENTS</a>               (I)
#define             <a class="link" href="VipsImage.html#VIPS-IMAGE-N-PELS:CAPS" title="VIPS_IMAGE_N_PELS()">VIPS_IMAGE_N_PELS</a>                   (I)
#define             <a class="link" href="VipsImage.html#VIPS-IMAGE-ADDR:CAPS" title="VIPS_IMAGE_ADDR()">VIPS_IMAGE_ADDR</a>                     (I,
                                                         X,
                                                         Y)
#define             <a class="link" href="VipsImage.html#VIPS-MATRIX:CAPS" title="VIPS_MATRIX()">VIPS_MATRIX</a>                         (I,
                                                         X,
                                                         Y)
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-image-written" title="vips_image_written ()">vips_image_written</a>                  (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="VipsImage.html#vips-image-invalidate-all" title="vips_image_invalidate_all ()">vips_image_invalidate_all</a>           (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="VipsImage.html#vips-image-minimise-all" title="vips_image_minimise_all ()">vips_image_minimise_all</a>             (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="VipsImage.html#vips-image-preeval" title="vips_image_preeval ()">vips_image_preeval</a>                  (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="VipsImage.html#vips-image-eval" title="vips_image_eval ()">vips_image_eval</a>                     (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">guint64</span> processed</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="VipsImage.html#vips-image-posteval" title="vips_image_posteval ()">vips_image_posteval</a>                 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="VipsImage.html#vips-image-set-progress" title="vips_image_set_progress ()">vips_image_set_progress</a>             (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> progress</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-image-iskilled" title="vips_image_iskilled ()">vips_image_iskilled</a>                 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="VipsImage.html#vips-image-set-kill" title="vips_image_set_kill ()">vips_image_set_kill</a>                 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> kill</code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new" title="vips_image_new ()">vips_image_new</a>                      (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new-mode" title="vips_image_new_mode ()">vips_image_new_mode</a>                 (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *mode</code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new-buffer" title="vips_image_new_buffer ()">vips_image_new_buffer</a>               (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new-from-file" title="vips_image_new_from_file ()">vips_image_new_from_file</a>            (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new-from-file-raw" title="vips_image_new_from_file_raw ()">vips_image_new_from_file_raw</a>        (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> xsize</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> ysize</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> bands</code></em>,
                                                         <em class="parameter"><code><span class="type">guint64</span> offset</code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new-from-memory" title="vips_image_new_from_memory ()">vips_image_new_from_memory</a>          (<em class="parameter"><code><span class="type">void</span> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> xsize</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> ysize</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> bands</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> bandfmt</code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new-matrix" title="vips_image_new_matrix ()">vips_image_new_matrix</a>               (<em class="parameter"><code><span class="type">int</span> width</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> height</code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new-matrixv" title="vips_image_new_matrixv ()">vips_image_new_matrixv</a>              (<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>);
<span class="returnvalue">void</span>                <a class="link" href="VipsImage.html#vips-image-set-delete-on-close" title="vips_image_set_delete_on_close ()">vips_image_set_delete_on_close</a>      (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> delete_on_close</code></em>);
<a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         <a class="link" href="VipsImage.html#vips-image-new-temp-file" title="vips_image_new_temp_file ()">vips_image_new_temp_file</a>            (<em class="parameter"><code>const <span class="type">char</span> *format</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-image-write" title="vips_image_write ()">vips_image_write</a>                    (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-image-write-to-file" title="vips_image_write_to_file ()">vips_image_write_to_file</a>            (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-image-isMSBfirst" title="vips_image_isMSBfirst ()">vips_image_isMSBfirst</a>               (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-image-isfile" title="vips_image_isfile ()">vips_image_isfile</a>                   (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-image-ispartial" title="vips_image_ispartial ()">vips_image_ispartial</a>                (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-image-wio-input" title="vips_image_wio_input ()">vips_image_wio_input</a>                (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-image-pio-input" title="vips_image_pio_input ()">vips_image_pio_input</a>                (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-image-inplace" title="vips_image_inplace ()">vips_image_inplace</a>                  (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-image-write-prepare" title="vips_image_write_prepare ()">vips_image_write_prepare</a>            (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-image-write-line" title="vips_image_write_line ()">vips_image_write_line</a>               (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> ypos</code></em>,
                                                         <em class="parameter"><code><span class="type">VipsPel</span> *linebuffer</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-band-format-isint" title="vips_band_format_isint ()">vips_band_format_isint</a>              (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-band-format-isuint" title="vips_band_format_isuint ()">vips_band_format_isuint</a>             (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-band-format-is8bit" title="vips_band_format_is8bit ()">vips_band_format_is8bit</a>             (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-band-format-isfloat" title="vips_band_format_isfloat ()">vips_band_format_isfloat</a>            (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="VipsImage.html#vips-band-format-iscomplex" title="vips_band_format_iscomplex ()">vips_band_format_iscomplex</a>          (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="VipsImage.html#vips-system" title="vips_system ()">vips_system</a>                         (<em class="parameter"><code>const <span class="type">char</span> *cmd_format</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="VipsImage.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----<a class="link" href="libvips-VipsArgument.html#VipsObject">VipsObject</a>
         +----VipsImage
</pre>
</div>
<div class="refsect1">
<a name="VipsImage.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="VipsImage.html#VipsImage--bands" title='The "bands" property'>bands</a>"                    <span class="type">gint</span>                  : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--coding" title='The "coding" property'>coding</a>"                   <a class="link" href="VipsImage.html#VipsCoding" title="enum VipsCoding"><span class="type">VipsCoding</span></a>            : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--demand" title='The "demand" property'>demand</a>"                   <a class="link" href="VipsImage.html#VipsDemandStyle" title="enum VipsDemandStyle"><span class="type">VipsDemandStyle</span></a>       : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--filename" title='The "filename" property'>filename</a>"                 <span class="type">gchar</span>*                : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--foreign-buffer" title='The "foreign-buffer" property'>foreign-buffer</a>"           <span class="type">gpointer</span>              : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--format" title='The "format" property'>format</a>"                   <a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a>        : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--height" title='The "height" property'>height</a>"                   <span class="type">gint</span>                  : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--interpretation" title='The "interpretation" property'>interpretation</a>"           <a class="link" href="VipsImage.html#VipsInterpretation" title="enum VipsInterpretation"><span class="type">VipsInterpretation</span></a>    : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--kill" title='The "kill" property'>kill</a>"                     <span class="type">gboolean</span>              : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--mode" title='The "mode" property'>mode</a>"                     <span class="type">gchar</span>*                : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--sizeof-header" title='The "sizeof-header" property'>sizeof-header</a>"            <span class="type">guint64</span>               : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--width" title='The "width" property'>width</a>"                    <span class="type">gint</span>                  : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--xoffset" title='The "xoffset" property'>xoffset</a>"                  <span class="type">gint</span>                  : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--xres" title='The "xres" property'>xres</a>"                     <span class="type">gdouble</span>               : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--yoffset" title='The "yoffset" property'>yoffset</a>"                  <span class="type">gint</span>                  : Read / Write
  "<a class="link" href="VipsImage.html#VipsImage--yres" title='The "yres" property'>yres</a>"                     <span class="type">gdouble</span>               : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="VipsImage.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="VipsImage.html#VipsImage-eval" title='The "eval" signal'>eval</a>"                                           : <code class="literal">Run Last</code>
  "<a class="link" href="VipsImage.html#VipsImage-invalidate" title='The "invalidate" signal'>invalidate</a>"                                     : <code class="literal">Action</code>
  "<a class="link" href="VipsImage.html#VipsImage-minimise" title='The "minimise" signal'>minimise</a>"                                       : <code class="literal">Action</code>
  "<a class="link" href="VipsImage.html#VipsImage-posteval" title='The "posteval" signal'>posteval</a>"                                       : <code class="literal">Run Last</code>
  "<a class="link" href="VipsImage.html#VipsImage-preeval" title='The "preeval" signal'>preeval</a>"                                        : <code class="literal">Run Last</code>
  "<a class="link" href="VipsImage.html#VipsImage-written" title='The "written" signal'>written</a>"                                        : <code class="literal">Action</code>
</pre>
</div>
<div class="refsect1">
<a name="VipsImage.description"></a><h2>Description</h2>
<p>
The image class and associated types and macros.
</p>
<p>
<a class="link" href="VipsImage.html#vips-image-wio-input" title="vips_image_wio_input ()"><code class="function">vips_image_wio_input()</code></a> and friends indicate the image IO style you
intend to use, transforming the underlying <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> structure if
necessary.
</p>
</div>
<div class="refsect1">
<a name="VipsImage.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="VIPS-MAGIC-INTEL:CAPS"></a><h3>VIPS_MAGIC_INTEL</h3>
<pre class="programlisting">#define VIPS_MAGIC_INTEL (0xb6a6f208U)
</pre>
<p>
The first four bytes of a VIPS file in Intel byte ordering.
</p>
</div>
<hr>
<div class="refsect2">
<a name="VIPS-MAGIC-SPARC:CAPS"></a><h3>VIPS_MAGIC_SPARC</h3>
<pre class="programlisting">#define VIPS_MAGIC_SPARC (0x08f2a6b6U)
</pre>
<p>
The first four bytes of a VIPS file in SPARC byte ordering.
</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsDemandStyle"></a><h3>enum VipsDemandStyle</h3>
<pre class="programlisting">typedef enum {
	VIPS_DEMAND_STYLE_ERROR = -1,	
	VIPS_DEMAND_STYLE_SMALLTILE,	
	VIPS_DEMAND_STYLE_FATSTRIP,
	VIPS_DEMAND_STYLE_THINSTRIP,
	VIPS_DEMAND_STYLE_ANY			
} VipsDemandStyle;
</pre>
<p>
See <a class="link" href="libvips-generate.html#vips-image-pipelinev" title="vips_image_pipelinev ()"><code class="function">vips_image_pipelinev()</code></a>. Operations can hint to the VIPS image IO system about
the kind of demand geometry they prefer. 
</p>
<p>
These demand styles are given below in order of increasing
restrictiveness.  When demanding output from a pipeline, 
<a class="link" href="libvips-generate.html#vips-image-generate" title="vips_image_generate ()"><code class="function">vips_image_generate()</code></a>
will use the most restrictive of the styles requested by the operations 
in the pipeline.
</p>
<p>
<a class="link" href="VipsImage.html#VIPS-DEMAND-STYLE-THINSTRIP:CAPS"><span class="type">VIPS_DEMAND_STYLE_THINSTRIP</span></a> --- This operation would like to output strips 
the width of the image and a few pels high. This is option suitable for 
point-to-point operations, such as those in the arithmetic package.
</p>
<p>
This option is only efficient for cases where each output pel depends 
upon the pel in the corresponding position in the input image.
</p>
<p>
<a class="link" href="VipsImage.html#VIPS-DEMAND-STYLE-FATSTRIP:CAPS"><span class="type">VIPS_DEMAND_STYLE_FATSTRIP</span></a> --- This operation would like to output strips 
the width of the image and as high as possible. This option is suitable 
for area operations which do not violently transform coordinates, such 
as <a href="http://http://www.vips.ecs.soton.ac.uk/libvips-convolution.html#im-conv"><code class="function">im_conv()</code></a>. 
</p>
<p>
<a class="link" href="VipsImage.html#VIPS-DEMAND-STYLE-SMALLTILE:CAPS"><span class="type">VIPS_DEMAND_STYLE_SMALLTILE</span></a> --- This is the most general demand format.
Output is demanded in small (around 100x100 pel) sections. This style works 
reasonably efficiently, even for bizzare operations like 45 degree rotate.
</p>
<p>
<a class="link" href="VipsImage.html#VIPS-DEMAND-STYLE-ANY:CAPS"><span class="type">VIPS_DEMAND_STYLE_ANY</span></a> --- This image is not being demand-read from a disc 
file (even indirectly) so any demand style is OK. It's used for things like
<code class="function">im_black()</code> where the pixels are calculated.
</p>
<p>
See also: <a class="link" href="libvips-generate.html#vips-image-pipelinev" title="vips_image_pipelinev ()"><code class="function">vips_image_pipelinev()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="VIPS-DEMAND-STYLE-ERROR:CAPS"></a><span class="term"><code class="literal">VIPS_DEMAND_STYLE_ERROR</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-DEMAND-STYLE-SMALLTILE:CAPS"></a><span class="term"><code class="literal">VIPS_DEMAND_STYLE_SMALLTILE</code></span></p></td>
<td>demand in small (typically 64x64 pixel) tiles
</td>
</tr>
<tr>
<td><p><a name="VIPS-DEMAND-STYLE-FATSTRIP:CAPS"></a><span class="term"><code class="literal">VIPS_DEMAND_STYLE_FATSTRIP</code></span></p></td>
<td>demand in fat (typically 10 pixel high) strips
</td>
</tr>
<tr>
<td><p><a name="VIPS-DEMAND-STYLE-THINSTRIP:CAPS"></a><span class="term"><code class="literal">VIPS_DEMAND_STYLE_THINSTRIP</code></span></p></td>
<td>demand in thin (typically 1 pixel high) strips
</td>
</tr>
<tr>
<td><p><a name="VIPS-DEMAND-STYLE-ANY:CAPS"></a><span class="term"><code class="literal">VIPS_DEMAND_STYLE_ANY</code></span></p></td>
<td>demand geometry does not matter
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsImageType"></a><h3>enum VipsImageType</h3>
<pre class="programlisting">typedef enum {
	VIPS_IMAGE_ERROR = -1,	
	VIPS_IMAGE_NONE,		/* no type set */
	VIPS_IMAGE_SETBUF,		/* malloced memory array */
	VIPS_IMAGE_SETBUF_FOREIGN, /* memory array, don't free on close */
	VIPS_IMAGE_OPENIN,		/* input from fd with a window */
	VIPS_IMAGE_MMAPIN,		/* memory mapped input file */
	VIPS_IMAGE_MMAPINRW,		/* memory mapped read/write file */
	VIPS_IMAGE_OPENOUT,		/* output to fd */
	VIPS_IMAGE_PARTIAL		/* partial image */
} VipsImageType;
</pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="VIPS-IMAGE-ERROR:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_ERROR</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-IMAGE-NONE:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_NONE</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-IMAGE-SETBUF:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_SETBUF</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-IMAGE-SETBUF-FOREIGN:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_SETBUF_FOREIGN</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-IMAGE-OPENIN:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_OPENIN</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-IMAGE-MMAPIN:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_MMAPIN</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-IMAGE-MMAPINRW:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_MMAPINRW</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-IMAGE-OPENOUT:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_OPENOUT</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-IMAGE-PARTIAL:CAPS"></a><span class="term"><code class="literal">VIPS_IMAGE_PARTIAL</code></span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsInterpretation"></a><h3>enum VipsInterpretation</h3>
<pre class="programlisting">typedef enum {
	VIPS_INTERPRETATION_ERROR = -1,
	VIPS_INTERPRETATION_MULTIBAND = 0,
	VIPS_INTERPRETATION_B_W = 1,
	VIPS_INTERPRETATION_HISTOGRAM = 10,
	VIPS_INTERPRETATION_XYZ = 12,
	VIPS_INTERPRETATION_LAB = 13,
	VIPS_INTERPRETATION_CMYK = 15,
	VIPS_INTERPRETATION_LABQ = 16,
	VIPS_INTERPRETATION_RGB = 17,
	VIPS_INTERPRETATION_CMC = 18,
	VIPS_INTERPRETATION_LCH = 19,
	VIPS_INTERPRETATION_LABS = 21,
	VIPS_INTERPRETATION_sRGB = 22,
	VIPS_INTERPRETATION_YXY = 23,
	VIPS_INTERPRETATION_FOURIER = 24,
	VIPS_INTERPRETATION_RGB16 = 25,
	VIPS_INTERPRETATION_GREY16 = 26,
	VIPS_INTERPRETATION_MATRIX = 27,
	VIPS_INTERPRETATION_scRGB = 28
} VipsInterpretation;
</pre>
<p>
How the values in an image should be interpreted. For example, a
three-band float image of type <a class="link" href="VipsImage.html#VIPS-INTERPRETATION-LAB:CAPS"><span class="type">VIPS_INTERPRETATION_LAB</span></a> should have its 
pixels interpreted as coordinates in CIE Lab space.
</p>
<p>
These values are set by operations as hints to user-interfaces built on top 
of VIPS to help them show images to the user in a meaningful way. 
Operations do not use these values to decide their action.
</p>
<p>
The gaps in the numbering are historical and must be maintained. Allocate 
new numbers from the end.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="VIPS-INTERPRETATION-ERROR:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_ERROR</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-MULTIBAND:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_MULTIBAND</code></span></p></td>
<td>generic many-band image
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-B-W:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_B_W</code></span></p></td>
<td>some kind of single-band image
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-HISTOGRAM:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_HISTOGRAM</code></span></p></td>
<td>a 1D image, eg. histogram or lookup table
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-XYZ:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_XYZ</code></span></p></td>
<td>the first three bands are CIE XYZ 
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-LAB:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_LAB</code></span></p></td>
<td>pixels are in CIE Lab space
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-CMYK:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_CMYK</code></span></p></td>
<td>the first four bands are in CMYK space
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-LABQ:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_LABQ</code></span></p></td>
<td>implies <a class="link" href="VipsImage.html#VIPS-CODING-LABQ:CAPS"><span class="type">VIPS_CODING_LABQ</span></a>
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-RGB:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_RGB</code></span></p></td>
<td>generic RGB space
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-CMC:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_CMC</code></span></p></td>
<td>a uniform colourspace based on CMC(1:1)
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-LCH:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_LCH</code></span></p></td>
<td>pixels are in CIE LCh space
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-LABS:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_LABS</code></span></p></td>
<td>CIE LAB coded as three signed 16-bit values
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-sRGB"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_sRGB</code></span></p></td>
<td>pixels are sRGB
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-YXY:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_YXY</code></span></p></td>
<td>pixels are CIE Yxy
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-FOURIER:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_FOURIER</code></span></p></td>
<td>image is in fourier space
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-RGB16:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_RGB16</code></span></p></td>
<td>generic 16-bit RGB
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-GREY16:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_GREY16</code></span></p></td>
<td>generic 16-bit mono
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-MATRIX:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_MATRIX</code></span></p></td>
<td>a matrix
</td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-scRGB"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_scRGB</code></span></p></td>
<td>pixels are scRGB
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsBandFormat"></a><h3>enum VipsBandFormat</h3>
<pre class="programlisting">typedef enum {
	VIPS_FORMAT_NOTSET = -1,
	VIPS_FORMAT_UCHAR = 0,
	VIPS_FORMAT_CHAR = 1,
	VIPS_FORMAT_USHORT = 2,
	VIPS_FORMAT_SHORT = 3,
	VIPS_FORMAT_UINT = 4,
	VIPS_FORMAT_INT = 5,
	VIPS_FORMAT_FLOAT = 6,
	VIPS_FORMAT_COMPLEX = 7,
	VIPS_FORMAT_DOUBLE = 8,
	VIPS_FORMAT_DPCOMPLEX = 9,
	VIPS_FORMAT_LAST = 10
} VipsBandFormat;
</pre>
<p>
The format used for each band element. 
</p>
<p>
Each corresponnds to a native C type for the current machine. For example,
<a class="link" href="VipsImage.html#VIPS-FORMAT-USHORT:CAPS"><span class="type">VIPS_FORMAT_USHORT</span></a> is <span class="type">unsigned short</span>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="VIPS-FORMAT-NOTSET:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_NOTSET</code></span></p></td>
<td>invalid setting
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-UCHAR:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_UCHAR</code></span></p></td>
<td>unsigned char format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-CHAR:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_CHAR</code></span></p></td>
<td>char format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-USHORT:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_USHORT</code></span></p></td>
<td>unsigned short format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-SHORT:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_SHORT</code></span></p></td>
<td>short format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-UINT:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_UINT</code></span></p></td>
<td>unsigned int format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-INT:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_INT</code></span></p></td>
<td>int format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-FLOAT:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_FLOAT</code></span></p></td>
<td>float format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-COMPLEX:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_COMPLEX</code></span></p></td>
<td>complex (two floats) format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-DOUBLE:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_DOUBLE</code></span></p></td>
<td>double float format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-DPCOMPLEX:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_DPCOMPLEX</code></span></p></td>
<td>double complex (two double) format
</td>
</tr>
<tr>
<td><p><a name="VIPS-FORMAT-LAST:CAPS"></a><span class="term"><code class="literal">VIPS_FORMAT_LAST</code></span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsCoding"></a><h3>enum VipsCoding</h3>
<pre class="programlisting">typedef enum {
	VIPS_CODING_ERROR = -1,
	VIPS_CODING_NONE = 0,
	VIPS_CODING_LABQ = 2,
	VIPS_CODING_RAD = 6,
	VIPS_CODING_LAST = 7
} VipsCoding;
</pre>
<p>
How pixels are coded. 
</p>
<p>
Normally, pixels are uncoded and can be manipulated as you would expect.
However some file formats code pixels for compression, and sometimes it's
useful to be able to manipulate images in the coded format.
</p>
<p>
The gaps in the numbering are historical and must be maintained. Allocate 
new numbers from the end.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="VIPS-CODING-ERROR:CAPS"></a><span class="term"><code class="literal">VIPS_CODING_ERROR</code></span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><a name="VIPS-CODING-NONE:CAPS"></a><span class="term"><code class="literal">VIPS_CODING_NONE</code></span></p></td>
<td>pixels are not coded
</td>
</tr>
<tr>
<td><p><a name="VIPS-CODING-LABQ:CAPS"></a><span class="term"><code class="literal">VIPS_CODING_LABQ</code></span></p></td>
<td>pixels encode 3 float CIELAB values as 4 uchar
</td>
</tr>
<tr>
<td><p><a name="VIPS-CODING-RAD:CAPS"></a><span class="term"><code class="literal">VIPS_CODING_RAD</code></span></p></td>
<td>pixels encode 3 float RGB as 4 uchar (Radiance coding)
</td>
</tr>
<tr>
<td><p><a name="VIPS-CODING-LAST:CAPS"></a><span class="term"><code class="literal">VIPS_CODING_LAST</code></span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsAccess"></a><h3>enum VipsAccess</h3>
<pre class="programlisting">typedef enum {
	VIPS_ACCESS_RANDOM,
	VIPS_ACCESS_SEQUENTIAL,
	VIPS_ACCESS_SEQUENTIAL_UNBUFFERED,
	VIPS_ACCESS_LAST
} VipsAccess;
</pre>
<p>
The type of access an operation has to supply. See <a class="link" href="libvips-conversion.html#vips-tilecache" title="vips_tilecache ()"><code class="function">vips_tilecache()</code></a>
and <a class="link" href="VipsForeign.html" title="VipsForeign"><span class="type">VipsForeign</span></a>. 
</p>
<p>
<em class="parameter"><code>VIPS_ACCESS_RANDOM</code></em> means requests can come in any order. 
</p>
<p>
<em class="parameter"><code>VIPS_ACCESS_SEQUENTIAL</code></em> means requests will be top-to-bottom, but with some
amount of buffering behind the read point for small non-local accesses. 
</p>
<p>
<em class="parameter"><code>VIPS_ACCESS_SEQUENTIAL_UNBUFFERED</code></em> means requests will be strictly
top-to-bottom with no read-behind. This can save some memory.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="VIPS-ACCESS-RANDOM:CAPS"></a><span class="term"><code class="literal">VIPS_ACCESS_RANDOM</code></span></p></td>
<td>can read anywhere
</td>
</tr>
<tr>
<td><p><a name="VIPS-ACCESS-SEQUENTIAL:CAPS"></a><span class="term"><code class="literal">VIPS_ACCESS_SEQUENTIAL</code></span></p></td>
<td>top-to-bottom reading only, but with a small buffer
</td>
</tr>
<tr>
<td><p><a name="VIPS-ACCESS-SEQUENTIAL-UNBUFFERED:CAPS"></a><span class="term"><code class="literal">VIPS_ACCESS_SEQUENTIAL_UNBUFFERED</code></span></p></td>
<td>top-to-bottom reading only
</td>
</tr>
<tr>
<td><p><a name="VIPS-ACCESS-LAST:CAPS"></a><span class="term"><code class="literal">VIPS_ACCESS_LAST</code></span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsProgress"></a><h3>VipsProgress</h3>
<pre class="programlisting">typedef struct {
	int run;		/* Time we have been running */
	int eta;		/* Estimated seconds of computation left */
	gint64 tpels;		/* Number of pels we expect to calculate */
	gint64 npels;		/* Number of pels calculated so far */
	int percent;		/* Percent complete */
	GTimer *start;		/* Start time */
} VipsProgress;
</pre>
<p>
A structure available to eval callbacks giving information on evaluation
progress. See <a class="link" href="VipsImage.html#VipsImage-eval" title='The "eval" signal'><span class="type">"eval"</span></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="VipsProgress.run"></a>run</code></em>;</span></p></td>
<td>Time we have been running</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="VipsProgress.eta"></a>eta</code></em>;</span></p></td>
<td>Estimated seconds of computation left</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gint64</span> <em class="structfield"><code><a name="VipsProgress.tpels"></a>tpels</code></em>;</span></p></td>
<td>Number of pels we expect to calculate</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">gint64</span> <em class="structfield"><code><a name="VipsProgress.npels"></a>npels</code></em>;</span></p></td>
<td>Number of pels calculated so far</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="VipsProgress.percent"></a>percent</code></em>;</span></p></td>
<td>Percent complete</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">GTimer</span> *<em class="structfield"><code><a name="VipsProgress.start"></a>start</code></em>;</span></p></td>
<td>Start time</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage-struct"></a><h3>VipsImage</h3>
<pre class="programlisting">typedef struct _VipsImage VipsImage;</pre>
<p>
An image. These can represent an image on disc, a memory buffer, an image
in the process of being written to disc or a partially evaluated image
in memory.
</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImageClass"></a><h3>VipsImageClass</h3>
<pre class="programlisting">typedef struct {
	VipsObjectClass parent_class;

	/* Signals we emit.
	 */

	/* Evaluation is starting.
	 */
	void (*preeval)( VipsImage *image, VipsProgress *progress );

	/* Evaluation progress.
	 */
	void (*eval)( VipsImage *image, VipsProgress *progress );

	/* Evaluation is ending.
	 */
	void (*posteval)( VipsImage *image, VipsProgress *progress );

	/* An image has been written to. 
	 * Used by eg. vips_image_new_mode("x.jpg", "w") to do the 
	 * final write to jpeg.
	 * Set *result to non-zero to indicate an error on write.
	 */
	void (*written)( VipsImage *image, int *result );

	/* An image has been modified in some way and all caches 
	 * need dropping. 
	 */
	void (*invalidate)( VipsImage *image );

	/* Minimise this pipeline. 
	 *
	 * This is triggered (sometimes) at the end of eval to signal that
	 * we're probably done and that operations involved should try to
	 * minimise memory use by, for example, dropping caches. 
	 *
	 * See vips_tilecache().
	 */
	void (*minimise)( VipsImage *image );
} VipsImageClass;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="VIPS-IMAGE-SIZEOF-ELEMENT:CAPS"></a><h3>VIPS_IMAGE_SIZEOF_ELEMENT()</h3>
<pre class="programlisting">#define             VIPS_IMAGE_SIZEOF_ELEMENT( I )</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>I</code></em> :</span></p></td>
<td>a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="function">sizeof()</code> a band element.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VIPS-IMAGE-SIZEOF-PEL:CAPS"></a><h3>VIPS_IMAGE_SIZEOF_PEL()</h3>
<pre class="programlisting">#define             VIPS_IMAGE_SIZEOF_PEL( I )</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>I</code></em> :</span></p></td>
<td>a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="function">sizeof()</code> a pixel.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VIPS-IMAGE-SIZEOF-LINE:CAPS"></a><h3>VIPS_IMAGE_SIZEOF_LINE()</h3>
<pre class="programlisting">#define             VIPS_IMAGE_SIZEOF_LINE( I )</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>I</code></em> :</span></p></td>
<td>a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="function">sizeof()</code> a scanline of pixels.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VIPS-IMAGE-N-ELEMENTS:CAPS"></a><h3>VIPS_IMAGE_N_ELEMENTS()</h3>
<pre class="programlisting">#define             VIPS_IMAGE_N_ELEMENTS( I )</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>I</code></em> :</span></p></td>
<td>a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The number of band elements in a scanline.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VIPS-IMAGE-N-PELS:CAPS"></a><h3>VIPS_IMAGE_N_PELS()</h3>
<pre class="programlisting">#define             VIPS_IMAGE_N_PELS( I )</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>I</code></em> :</span></p></td>
<td>a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The number of pels in an image. A 64-bit unsigned int.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VIPS-IMAGE-ADDR:CAPS"></a><h3>VIPS_IMAGE_ADDR()</h3>
<pre class="programlisting">#define             VIPS_IMAGE_ADDR( I, X, Y )</pre>
<p>
This macro returns a pointer to a pixel in an image, cast to a <span class="type">VipsPel</span> *. 
It only works for
images which are fully available in memory, so memory buffers and small
mapped images only.
</p>
<p>
If VIPS_DEBUG is defined, you get a version that checks bounds for you.
</p>
<p>
See also: <a class="link" href="VipsRegion.html#VIPS-REGION-ADDR:CAPS" title="VIPS_REGION_ADDR()"><code class="function">VIPS_REGION_ADDR()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>I</code></em> :</span></p></td>
<td>a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>X</code></em> :</span></p></td>
<td>x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>Y</code></em> :</span></p></td>
<td>y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The address of pixel (x,y) in the image.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VIPS-MATRIX:CAPS"></a><h3>VIPS_MATRIX()</h3>
<pre class="programlisting">#define             VIPS_MATRIX( I, X, Y )</pre>
<p>
This macro returns a pointer to a pixel in an image, cast to a double*. The
image must have a single band, be <a class="link" href="VipsImage.html#VIPS-FORMAT-DOUBLE:CAPS"><span class="type">VIPS_FORMAT_DOUBLE</span></a> and be 
fully available in memory, so memory buffers and small
mapped images only.
</p>
<p>
If VIPS_DEBUG is defined, you get a version that checks bounds and image
type for you.
</p>
<p>
See also: <a class="link" href="VipsImage.html#VIPS-IMAGE-ADDR:CAPS" title="VIPS_IMAGE_ADDR()"><code class="function">VIPS_IMAGE_ADDR()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>I</code></em> :</span></p></td>
<td>a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>X</code></em> :</span></p></td>
<td>x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>Y</code></em> :</span></p></td>
<td>y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The address of pixel (x,y) in the image.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-written"></a><h3>vips_image_written ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_image_written                  (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-invalidate-all"></a><h3>vips_image_invalidate_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                vips_image_invalidate_all           (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Invalidate all pixel caches on an <em class="parameter"><code>image</code></em> and any downstream images, that
is, images which depend on this image. 
</p>
<p>
The "invalidate" callback is triggered for all invalidated images.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>
<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> to invalidate</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-minimise-all"></a><h3>vips_image_minimise_all ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                vips_image_minimise_all             (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Minimise memory use on this image and any upstream images, that is, images
which this image depends upon. 
</p>
<p>
The "minimise" callback is triggered for all minimised images.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>
<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> to minimise</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-preeval"></a><h3>vips_image_preeval ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                vips_image_preeval                  (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-eval"></a><h3>vips_image_eval ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                vips_image_eval                     (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">guint64</span> processed</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-posteval"></a><h3>vips_image_posteval ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                vips_image_posteval                 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-set-progress"></a><h3>vips_image_set_progress ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                vips_image_set_progress             (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> progress</code></em>);</pre>
<p>
vips signals evaluation progress via the "preeval", "eval" and "posteval"
signals. Progress is signalled on the most-downstream image for which
<a class="link" href="VipsImage.html#vips-image-set-progress" title="vips_image_set_progress ()"><code class="function">vips_image_set_progress()</code></a> was called.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to signal progress on</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>progress</code></em> :</span></p></td>
<td>turn progress reporting on or off</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-iskilled"></a><h3>vips_image_iskilled ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_image_iskilled                 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-set-kill"></a><h3>vips_image_set_kill ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                vips_image_set_kill                 (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> kill</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new"></a><h3>vips_image_new ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new                      (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
<a class="link" href="VipsImage.html#vips-image-new" title="vips_image_new ()"><code class="function">vips_image_new()</code></a> creates a "glue" descriptor you can use to join two image 
processing operations together. 
</p>
<p>
It is the equivalent of vips_image_new_mode("xxx", "p").
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new-mode"></a><h3>vips_image_new_mode ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new_mode                 (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *mode</code></em>);</pre>
<p>
<a class="link" href="VipsImage.html#vips-image-new-mode" title="vips_image_new_mode ()"><code class="function">vips_image_new_mode()</code></a> examines the mode string and creates an 
appropriate <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>.
</p>
<p>
</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>
      <span class="emphasis"><em>"t"</em></span>
      creates a temporary memory buffer image.
    </p></li>
<li class="listitem"><p>
      <span class="emphasis"><em>"p"</em></span>
      creates a "glue" descriptor you can use to join operations, see also
      <a class="link" href="VipsImage.html#vips-image-new" title="vips_image_new ()"><code class="function">vips_image_new()</code></a>.
    </p></li>
<li class="listitem">
<p>
      <span class="emphasis"><em>"r"</em></span>
      opens the named file for reading. If the file is not in the native 
      VIPS format for your machine, <a class="link" href="VipsImage.html#vips-image-new-mode" title="vips_image_new_mode ()"><code class="function">vips_image_new_mode()</code></a> 
      automatically converts the file for you. 
</p>
<p>
      Some formats (eg. tiled tiff) are read directly. 
</p>
<p>
      Some formats (eg. strip tiff) do not support random access and can't
      be processed directly. Small images are decompressed to memory and
      loaded from there, large images are decompressed to a disc file and
      processed from that.
</p>
<p>
      If the operations you intend to perform are sequential, that is, they
      operate in a strict top-to-bottom manner, you can use sequential mode
      instead, see "rs" below,
      or you can use the lower-level 
      API and control the loading process yourself. See 
      <a class="link" href="VipsForeign.html" title="VipsForeign"><span class="type">VipsForeign</span></a>. 
</p>
<p>
 See <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> for an explanation of how VIPS selects a
 location for the temporary file.
</p>
<p>
 The disc threshold can be set with the "--vips-disc-threshold"
 command-line argument, or the IM_DISC_THRESHOLD environment variable.
 The value is a simple integer, but can take a unit postfix of "k", 
 "m" or "g" to indicate kilobytes, megabytes or gigabytes.
</p>
<p>
 For example:
</p>
<p>
      </p>
<div class="informalexample"><pre class="programlisting">
        vips --vips-disc-threshold 500m copy fred.tif fred.v
      </pre></div>
<p>
</p>
<p>
      will copy via disc if "fred.tif" is more than 500 Mbytes
      uncompressed. The default threshold is 100 MB.
</p>
<p>
      Note that <span class="emphasis"><em>"r"</em></span> mode works in at least two stages. 
      It should return quickly and let you check header fields. It will
      only actually read in pixels when you first access them. 
    </p>
</li>
<li class="listitem"><p>
      <span class="emphasis"><em>"rs"</em></span>
 opens the named file for reading sequentially. It reads the source
 image top-to-bottom and serves up pixels to the pipeline as required.
 Provided the operations that connect to the image all demand pixels
 only top-to-bottom as well, everything is fine and you avoid the
 separate decompress stage.
    </p></li>
<li class="listitem">
<p>
      <span class="emphasis"><em>"w"</em></span>
      opens the named file for writing. It looks at the file name 
      suffix to determine the type to write -- for example:
</p>
<p>
      </p>
<div class="informalexample"><pre class="programlisting">
        vips_image_new_mode( "fred.tif", "w" )
      </pre></div>
<p>
</p>
<p>
      will write in TIFF format.
    </p>
</li>
<li class="listitem"><p>
      <span class="emphasis"><em>"rw"</em></span>
      opens the named file for reading and writing. This will only work for 
      VIPS files in a format native to your machine. It is only for 
      paintbox-type applications.
    </p></li>
</ul></div>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>file to open</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
<td>mode to open with</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new-buffer"></a><h3>vips_image_new_buffer ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new_buffer               (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
<a class="link" href="VipsImage.html#vips-image-new-buffer" title="vips_image_new_buffer ()"><code class="function">vips_image_new_buffer()</code></a> creates a new VipsImage which when written to will
create a memory buffer. It is a convenience function for
vips_image_new_mode(<code class="function">vips_image_temp_name()</code>, "t").
</p>
<p>
See also: <a class="link" href="VipsImage.html#vips-image-new" title="vips_image_new ()"><code class="function">vips_image_new()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new-from-file"></a><h3>vips_image_new_from_file ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new_from_file            (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
<a class="link" href="VipsImage.html#vips-image-new-from-file" title="vips_image_new_from_file ()"><code class="function">vips_image_new_from_file()</code></a> opens <em class="parameter"><code>filename</code></em> for reading in mode "r". See
<a class="link" href="VipsImage.html#vips-image-new-mode" title="vips_image_new_mode ()"><code class="function">vips_image_new_mode()</code></a> for details.
</p>
<p>
See also: <a class="link" href="VipsImage.html#vips-image-new-mode" title="vips_image_new_mode ()"><code class="function">vips_image_new_mode()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>file to open</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new-from-file-raw"></a><h3>vips_image_new_from_file_raw ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new_from_file_raw        (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> xsize</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> ysize</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> bands</code></em>,
                                                         <em class="parameter"><code><span class="type">guint64</span> offset</code></em>);</pre>
<p>
This function maps the named file and returns a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> you can use to
read it.
</p>
<p>
It returns an 8-bit image with <em class="parameter"><code>bands</code></em> bands. If the image is not 8-bit, use 
<code class="function">im_copy_set()</code> to transform the descriptor after loading it.
</p>
<p>
See also: <code class="function">im_copy_set()</code>, <code class="function">im_raw2vips()</code>, <a class="link" href="VipsImage.html#vips-image-new-from-file" title="vips_image_new_from_file ()"><code class="function">vips_image_new_from_file()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>filename to open</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xsize</code></em> :</span></p></td>
<td>image width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ysize</code></em> :</span></p></td>
<td>image height</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bands</code></em> :</span></p></td>
<td>image bands (or bytes per pixel)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td>bytes to skip at start of file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new-from-memory"></a><h3>vips_image_new_from_memory ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new_from_memory          (<em class="parameter"><code><span class="type">void</span> *buffer</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> xsize</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> ysize</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> bands</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> bandfmt</code></em>);</pre>
<p>
This function wraps an <span class="type">IMAGE</span> around a memory buffer. VIPS does not take
responsibility for the area of memory, it's up to you to make sure it's
freed when the image is closed. See for example <a class="link" href="libvips-VipsArgument.html#VipsObject-close" title='The "close" signal'><span class="type">"close"</span></a>.
</p>
<p>
See also: <code class="function">im_binfile()</code>, <code class="function">im_raw2vips()</code>, <a class="link" href="VipsImage.html#vips-image-new" title="vips_image_new ()"><code class="function">vips_image_new()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>start of memory area</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xsize</code></em> :</span></p></td>
<td>image width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ysize</code></em> :</span></p></td>
<td>image height</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bands</code></em> :</span></p></td>
<td>image bands (or bytes per pixel)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bandfmt</code></em> :</span></p></td>
<td>image format</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new-matrix"></a><h3>vips_image_new_matrix ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new_matrix               (<em class="parameter"><code><span class="type">int</span> width</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
<p>
This convenience function makes an image which is a matrix: a one-band
VIPS_FORMAT_DOUBLE image held in memory.
</p>
<p>
Use <a class="link" href="VipsImage.html#VIPS-IMAGE-ADDR:CAPS" title="VIPS_IMAGE_ADDR()"><code class="function">VIPS_IMAGE_ADDR()</code></a>, or <a class="link" href="VipsImage.html#VIPS-MATRIX:CAPS" title="VIPS_MATRIX()"><code class="function">VIPS_MATRIX()</code></a> to address pixels in the image.
</p>
<p>
Use <a class="link" href="libvips-header.html#vips-image-set-double" title="vips_image_set_double ()"><code class="function">vips_image_set_double()</code></a> to set "scale" and "offset", if required. 
</p>
<p>
See also: <a class="link" href="VipsImage.html#vips-image-new-matrixv" title="vips_image_new_matrixv ()"><code class="function">vips_image_new_matrixv()</code></a>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>image width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>image height</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new-matrixv"></a><h3>vips_image_new_matrixv ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new_matrixv              (<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>
As <a class="link" href="VipsImage.html#vips-image-new-matrix" title="vips_image_new_matrix ()"><code class="function">vips_image_new_matrix()</code></a>, but initialise the matrix from the argument
list. After <em class="parameter"><code>height</code></em> should be <em class="parameter"><code>width</code></em> * <em class="parameter"><code>height</code></em> double constants which are
used to set the matrix elements. 
</p>
<p>
See also: <a class="link" href="VipsImage.html#vips-image-new-matrix" title="vips_image_new_matrix ()"><code class="function">vips_image_new_matrix()</code></a>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>image width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>image height</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>matrix coefficients</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-set-delete-on-close"></a><h3>vips_image_set_delete_on_close ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                vips_image_set_delete_on_close      (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">gboolean</span> delete_on_close</code></em>);</pre>
<p>
Sets the delete_on_close flag for the image. If this flag is set, when
<em class="parameter"><code>image</code></em> is finalized, the filename held in <em class="parameter"><code>image-&gt;filename</code></em> at the time of
this call is unlinked.
</p>
<p>
This function is clearly extremely dangerous, use with great caution.
</p>
<p>
See also: <a class="link" href="libvips-util.html#vips--temp-name" title="vips__temp_name ()"><code class="function">vips__temp_name()</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="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to set</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>delete_on_close</code></em> :</span></p></td>
<td>format of file</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-new-temp-file"></a><h3>vips_image_new_temp_file ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> *         vips_image_new_temp_file            (<em class="parameter"><code>const <span class="type">char</span> *format</code></em>);</pre>
<p>
Make a "w" disc <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> which will be automatically unlinked when it is
destroyed. <em class="parameter"><code>format</code></em> is something like "<code class="literal">s</code>.v" for a vips file.
</p>
<p>
The file is created in the temporary directory, see <a class="link" href="libvips-util.html#vips--temp-name" title="vips__temp_name ()"><code class="function">vips__temp_name()</code></a>.
</p>
<p>
See also: <a class="link" href="libvips-util.html#vips--temp-name" title="vips__temp_name ()"><code class="function">vips__temp_name()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>format of file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a>, or <code class="literal">NULL</code> on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-write"></a><h3>vips_image_write ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_image_write                    (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *out</code></em>);</pre>
<p>
Write <em class="parameter"><code>image</code></em> to <em class="parameter"><code>out</code></em>. Use <a class="link" href="VipsImage.html#vips-image-new-mode" title="vips_image_new_mode ()"><code class="function">vips_image_new_mode()</code></a> and friends to create the
<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> you want to write to.
</p>
<p>
See also: <a class="link" href="VipsImage.html#vips-image-new-mode" title="vips_image_new_mode ()"><code class="function">vips_image_new_mode()</code></a>, <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-write-to-file" title="vips_image_write_to_file ()"><code class="function">vips_image_write_to_file()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to write</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
<td>write to this image</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-write-to-file"></a><h3>vips_image_write_to_file ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_image_write_to_file            (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
A convenience function to write <em class="parameter"><code>image</code></em> to a file.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to write</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>write to this file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-isMSBfirst"></a><h3>vips_image_isMSBfirst ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_image_isMSBfirst               (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Return <code class="literal">TRUE</code> if <em class="parameter"><code>image</code></em> is in most-significant-
byte first form. This is the byte order used on the SPARC
architecture and others.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to test</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-isfile"></a><h3>vips_image_isfile ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_image_isfile                   (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Return <code class="literal">TRUE</code> if <em class="parameter"><code>image</code></em> represents a file on disc in some way.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to test</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-ispartial"></a><h3>vips_image_ispartial ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_image_ispartial                (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Return <code class="literal">TRUE</code> if <em class="parameter"><code>im</code></em> represents a partial image (a delayed calculation).
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to test</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-wio-input"></a><h3>vips_image_wio_input ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_image_wio_input                (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Check that an image is readable via the <a class="link" href="VipsImage.html#VIPS-IMAGE-ADDR:CAPS" title="VIPS_IMAGE_ADDR()"><code class="function">VIPS_IMAGE_ADDR()</code></a> macro, that is,
that the entire image is in memory and all pixels can be read with 
<a class="link" href="VipsImage.html#VIPS-IMAGE-ADDR:CAPS" title="VIPS_IMAGE_ADDR()"><code class="function">VIPS_IMAGE_ADDR()</code></a>.
</p>
<p>
If it 
isn't, try to transform it so that <a class="link" href="VipsImage.html#VIPS-IMAGE-ADDR:CAPS" title="VIPS_IMAGE_ADDR()"><code class="function">VIPS_IMAGE_ADDR()</code></a> can work. 
</p>
<p>
See also: <code class="function">vips_image_wio_output()</code>, <a class="link" href="VipsImage.html#vips-image-pio-input" title="vips_image_pio_input ()"><code class="function">vips_image_pio_input()</code></a>, 
<a class="link" href="VipsImage.html#vips-image-inplace" title="vips_image_inplace ()"><code class="function">vips_image_inplace()</code></a>, <a class="link" href="VipsImage.html#VIPS-IMAGE-ADDR:CAPS" title="VIPS_IMAGE_ADDR()"><code class="function">VIPS_IMAGE_ADDR()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to transform</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on succeess, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-pio-input"></a><h3>vips_image_pio_input ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_image_pio_input                (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Check that an image is readable with <a class="link" href="VipsRegion.html#vips-region-prepare" title="vips_region_prepare ()"><code class="function">vips_region_prepare()</code></a> and friends. 
If it isn't, try to transform the image so that <a class="link" href="VipsRegion.html#vips-region-prepare" title="vips_region_prepare ()"><code class="function">vips_region_prepare()</code></a> can 
work.
</p>
<p>
See also: <code class="function">vips_image_pio_output()</code>, <a class="link" href="VipsRegion.html#vips-region-prepare" title="vips_region_prepare ()"><code class="function">vips_region_prepare()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to check</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on succeess, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-inplace"></a><h3>vips_image_inplace ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_image_inplace                  (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Gets <em class="parameter"><code>image</code></em> ready for an in-place operation, such as <code class="function">im_insertplace()</code>.
After calling this function you can both read and write the image with 
<a class="link" href="VipsImage.html#VIPS-IMAGE-ADDR:CAPS" title="VIPS_IMAGE_ADDR()"><code class="function">VIPS_IMAGE_ADDR()</code></a>.
</p>
<p>
See also: <code class="function">im_insertplace()</code>, <a class="link" href="VipsImage.html#vips-image-wio-input" title="vips_image_wio_input ()"><code class="function">vips_image_wio_input()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to make read-write</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on succeess, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-write-prepare"></a><h3>vips_image_write_prepare ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_image_write_prepare            (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
<p>
Call this after setting header fields (width, height, and so on) to
allocate resources ready for writing. 
</p>
<p>
Normally this function is called for you by <a class="link" href="libvips-generate.html#vips-image-generate" title="vips_image_generate ()"><code class="function">vips_image_generate()</code></a> or
<a class="link" href="VipsImage.html#vips-image-write-line" title="vips_image_write_line ()"><code class="function">vips_image_write_line()</code></a>. You will need to call it yourself if you plan to
write directly to the -&gt;data member of a "t" image.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to prepare</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-image-write-line"></a><h3>vips_image_write_line ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_image_write_line               (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> ypos</code></em>,
                                                         <em class="parameter"><code><span class="type">VipsPel</span> *linebuffer</code></em>);</pre>
<p>
Write a line of pixels to an image. This function must be called repeatedly
with <em class="parameter"><code>ypos</code></em> increasing from 0 to <em class="parameter"><code>YSize</code></em> -
<em class="parameter"><code>linebuffer</code></em> must be <a class="link" href="VipsImage.html#VIPS-IMAGE-SIZEOF-LINE:CAPS" title="VIPS_IMAGE_SIZEOF_LINE()"><code class="function">VIPS_IMAGE_SIZEOF_LINE()</code></a> bytes long.
</p>
<p>
See also: <a class="link" href="libvips-generate.html#vips-image-generate" title="vips_image_generate ()"><code class="function">vips_image_generate()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
<td>image to write to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ypos</code></em> :</span></p></td>
<td>vertical position of scan-line to write</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>linebuffer</code></em> :</span></p></td>
<td>scanline of pixels</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, or -1 on error.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-band-format-isint"></a><h3>vips_band_format_isint ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_band_format_isint              (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);</pre>
<p>
Return <code class="literal">TRUE</code> if <em class="parameter"><code>format</code></em> is one of the integer types.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>format to test</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-band-format-isuint"></a><h3>vips_band_format_isuint ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_band_format_isuint             (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);</pre>
<p>
Return <code class="literal">TRUE</code> if <em class="parameter"><code>format</code></em> is one of the unsigned integer types.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>format to test</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-band-format-is8bit"></a><h3>vips_band_format_is8bit ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_band_format_is8bit             (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);</pre>
<p>
Return <code class="literal">TRUE</code> if <em class="parameter"><code>format</code></em> is uchar or schar.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>format to test</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-band-format-isfloat"></a><h3>vips_band_format_isfloat ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_band_format_isfloat            (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);</pre>
<p>
Return <code class="literal">TRUE</code> if <em class="parameter"><code>format</code></em> is one of the float types.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>format to test</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-band-format-iscomplex"></a><h3>vips_band_format_iscomplex ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            vips_band_format_iscomplex          (<em class="parameter"><code><a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a> format</code></em>);</pre>
<p>
Return <code class="literal">TRUE</code> if <em class="parameter"><code>fmt</code></em> is one of the complex types.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>format to test</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="vips-system"></a><h3>vips_system ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 vips_system                         (<em class="parameter"><code>const <span class="type">char</span> *cmd_format</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Optional arguments:
</p>
<p>
<em class="parameter"><code>in</code></em>: input image 
<em class="parameter"><code>out</code></em>: output image
<em class="parameter"><code>in_format</code></em>: write input file like this
<em class="parameter"><code>out_format</code></em>: write output filename like this
<em class="parameter"><code>log</code></em>: stdout of command is returned here
</p>
<p>
<a class="link" href="VipsImage.html#vips-system" title="vips_system ()"><code class="function">vips_system()</code></a> runs a command, optionally passing an image in and 
optionally getting an image
back. The command's stdout is returned in <em class="parameter"><code>log</code></em>. 
</p>
<p>
First, if <em class="parameter"><code>in</code></em> is set, it is written to a file. The filename is formed by 
substituting something like "vips-49857-1" for the first %<code class="literal">s</code> in <em class="parameter"><code>in_format</code></em>, 
then
prepending "/tmp". If the environment variable TMPDIR is defined, it
can be used to set a different temporary directory. 
</p>
<p>
On Windows, if the environment variable TMPDIR is not defined, VIPS calls 
<code class="function">GetTempPath()</code> to get the user's preferred temporary area. If that fails, it
defaults to C:\temp.
</p>
<p>
If <em class="parameter"><code>in_format</code></em> is
something like "%<code class="literal">s</code>.png", the file will be written in PNG format. By
default, <em class="parameter"><code>in_format</code></em> is "%<code class="literal">s</code>.tif". 
</p>
<p>
If <em class="parameter"><code>out_format</code></em> is set, an output filename is formed in the same way.
</p>
<p>
The
command string to run is made by substituting the first %<code class="literal">s</code> in <em class="parameter"><code>cmd_format</code></em>
for the name of the input file, if <em class="parameter"><code>in</code></em> is set, and the second %<code class="literal">s</code> for the 
output filename, if set.
</p>
<p>
The command is executed with <code class="function">popen()</code> and the output captured in <em class="parameter"><code>log</code></em>. 
</p>
<p>
After the command finishes, if <em class="parameter"><code>out_format</code></em> is set, the output image is
opened and returned in <em class="parameter"><code>out</code></em>. 
Closing the output image will automatically delete the output file.
</p>
<p>
Finally the input images are deleted. 
</p>
<p>
For example, this call will run the ImageMagick convert program on an
image, using JPEG files to pass images into and out of the convert command.
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
VipsImage *in;
VipsImage *out;
char *log;

if (vips_system ("convert %s -swirl 45 %s",
	"in", in, 
	"out", &amp;out, 
  	"in_format", "%s.jpg", 
  	"out_format", "%s.jpg", 
  	"log", &amp;log,
  	NULL))
  	error ...
</pre></div>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>cmd_format</code></em> :</span></p></td>
<td>command to run</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>
<code class="literal">NULL</code>-terminated list of optional named arguments</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on success, -1 on failure.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="VipsImage.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="VipsImage--bands"></a><h3>The <code class="literal">"bands"</code> property</h3>
<pre class="programlisting">  "bands"                    <span class="type">gint</span>                  : Read / Write</pre>
<p>Number of bands in image.</p>
<p>Allowed values: [1,1000000000]</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--coding"></a><h3>The <code class="literal">"coding"</code> property</h3>
<pre class="programlisting">  "coding"                   <a class="link" href="VipsImage.html#VipsCoding" title="enum VipsCoding"><span class="type">VipsCoding</span></a>            : Read / Write</pre>
<p>Pixel coding.</p>
<p>Default value: VIPS_CODING_NONE</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--demand"></a><h3>The <code class="literal">"demand"</code> property</h3>
<pre class="programlisting">  "demand"                   <a class="link" href="VipsImage.html#VipsDemandStyle" title="enum VipsDemandStyle"><span class="type">VipsDemandStyle</span></a>       : Read / Write</pre>
<p>Preferred demand style for this image.</p>
<p>Default value: VIPS_DEMAND_STYLE_SMALLTILE</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--filename"></a><h3>The <code class="literal">"filename"</code> property</h3>
<pre class="programlisting">  "filename"                 <span class="type">gchar</span>*                : Read / Write</pre>
<p>Image filename.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--foreign-buffer"></a><h3>The <code class="literal">"foreign-buffer"</code> property</h3>
<pre class="programlisting">  "foreign-buffer"           <span class="type">gpointer</span>              : Read / Write</pre>
<p>Pointer to foreign pixels.</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--format"></a><h3>The <code class="literal">"format"</code> property</h3>
<pre class="programlisting">  "format"                   <a class="link" href="VipsImage.html#VipsBandFormat" title="enum VipsBandFormat"><span class="type">VipsBandFormat</span></a>        : Read / Write</pre>
<p>Pixel format in image.</p>
<p>Default value: VIPS_FORMAT_UCHAR</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--height"></a><h3>The <code class="literal">"height"</code> property</h3>
<pre class="programlisting">  "height"                   <span class="type">gint</span>                  : Read / Write</pre>
<p>Image height in pixels.</p>
<p>Allowed values: [1,1000000000]</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--interpretation"></a><h3>The <code class="literal">"interpretation"</code> property</h3>
<pre class="programlisting">  "interpretation"           <a class="link" href="VipsImage.html#VipsInterpretation" title="enum VipsInterpretation"><span class="type">VipsInterpretation</span></a>    : Read / Write</pre>
<p>Pixel interpretation.</p>
<p>Default value: VIPS_INTERPRETATION_MULTIBAND</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--kill"></a><h3>The <code class="literal">"kill"</code> property</h3>
<pre class="programlisting">  "kill"                     <span class="type">gboolean</span>              : Read / Write</pre>
<p>Block evaluation on this image.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--mode"></a><h3>The <code class="literal">"mode"</code> property</h3>
<pre class="programlisting">  "mode"                     <span class="type">gchar</span>*                : Read / Write</pre>
<p>Open mode.</p>
<p>Default value: "p"</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--sizeof-header"></a><h3>The <code class="literal">"sizeof-header"</code> property</h3>
<pre class="programlisting">  "sizeof-header"            <span class="type">guint64</span>               : Read / Write</pre>
<p>Offset in bytes from start of file.</p>
<p>Allowed values: &lt;= 1000000</p>
<p>Default value: 64</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--width"></a><h3>The <code class="literal">"width"</code> property</h3>
<pre class="programlisting">  "width"                    <span class="type">gint</span>                  : Read / Write</pre>
<p>Image width in pixels.</p>
<p>Allowed values: [1,1000000000]</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--xoffset"></a><h3>The <code class="literal">"xoffset"</code> property</h3>
<pre class="programlisting">  "xoffset"                  <span class="type">gint</span>                  : Read / Write</pre>
<p>Horizontal offset of origin.</p>
<p>Allowed values: [-1000000,1000000]</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--xres"></a><h3>The <code class="literal">"xres"</code> property</h3>
<pre class="programlisting">  "xres"                     <span class="type">gdouble</span>               : Read / Write</pre>
<p>Horizontal resolution in pixels/mm.</p>
<p>Allowed values: [-0,1e+06]</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--yoffset"></a><h3>The <code class="literal">"yoffset"</code> property</h3>
<pre class="programlisting">  "yoffset"                  <span class="type">gint</span>                  : Read / Write</pre>
<p>Vertical offset of origin.</p>
<p>Allowed values: [-1000000,1000000]</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage--yres"></a><h3>The <code class="literal">"yres"</code> property</h3>
<pre class="programlisting">  "yres"                     <span class="type">gdouble</span>               : Read / Write</pre>
<p>Vertical resolution in pixels/mm.</p>
<p>Allowed values: [-0,1e+06]</p>
<p>Default value: 0</p>
</div>
</div>
<div class="refsect1">
<a name="VipsImage.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="VipsImage-eval"></a><h3>The <code class="literal">"eval"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *vipsimage,
                                                        <span class="type">gpointer</span>   arg1,
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Run Last</code></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vipsimage</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage-invalidate"></a><h3>The <code class="literal">"invalidate"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *vipsimage,
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Action</code></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vipsimage</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage-minimise"></a><h3>The <code class="literal">"minimise"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *vipsimage,
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Action</code></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vipsimage</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage-posteval"></a><h3>The <code class="literal">"posteval"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *vipsimage,
                                                        <span class="type">gpointer</span>   arg1,
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Run Last</code></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vipsimage</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage-preeval"></a><h3>The <code class="literal">"preeval"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *vipsimage,
                                                        <span class="type">gpointer</span>   arg1,
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Run Last</code></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vipsimage</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="VipsImage-written"></a><h3>The <code class="literal">"written"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *vipsimage,
                                                        <span class="type">gpointer</span>   arg1,
                                                        <span class="type">gpointer</span>   user_data)      : <code class="literal">Action</code></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vipsimage</code></em> :</span></p></td>
<td>the object which received the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="VipsImage.see-also"></a><h2>See Also</h2>
region
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.19</div>
</body>
</html>