/usr/share/gtk-doc/html/libvips/VipsImage.html is in libvips-doc 7.26.3-1build1.
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 | <!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.75.2">
<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.17 (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>
<a name="VipsDemandStyle"></a><a name="VipsImageType"></a><a name="VipsInterpretation"></a><a name="VipsBandFormat"></a><a name="VipsCoding"></a><pre class="synopsis">
#include <vips/vips.h>
#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">VipsDemandStyle</a>;
enum <a class="link" href="VipsImage.html#VipsImageType">VipsImageType</a>;
enum <a class="link" href="VipsImage.html#VipsInterpretation">VipsInterpretation</a>;
enum <a class="link" href="VipsImage.html#VipsBandFormat">VipsBandFormat</a>;
enum <a class="link" href="VipsImage.html#VipsCoding">VipsCoding</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-SIZEOF-IMAGE:CAPS" title="VIPS_IMAGE_SIZEOF_IMAGE()">VIPS_IMAGE_SIZEOF_IMAGE</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-ADDR:CAPS" title="VIPS_IMAGE_ADDR()">VIPS_IMAGE_ADDR</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-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">int</span> w</code></em>,
<em class="parameter"><code><span class="type">int</span> h</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-get-kill" title="vips_image_get_kill ()">vips_image_get_kill</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>);
<span class="returnvalue">int</span> <a class="link" href="VipsImage.html#vips-image-new-array" title="vips_image_new_array ()">vips_image_new_array</a> (<em class="parameter"><code><a class="link" href="libvips-VipsArgument.html#VipsObject"><span class="type">VipsObject</span></a> *parent</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **images</code></em>,
<em class="parameter"><code><span class="type">int</span> n</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-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">int</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"><span class="type">VipsBandFormat</span></a> bandfmt</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-disc-temp" title="vips_image_new_disc_temp ()">vips_image_new_disc_temp</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>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-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">PEL</span> *linebuffer</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-wio-output" title="vips_image_wio_output ()">vips_image_wio_output</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-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-pio-output" title="vips_image_pio_output ()">vips_image_pio_output</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-band-format-isint" title="vips_band_format_isint ()">vips_band_format_isint</a> (<em class="parameter"><code><a class="link" href="VipsImage.html#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"><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"><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"><span class="type">VipsBandFormat</span></a> format</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="VipsImage.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GEnum
+----VipsDemandStyle
</pre>
<pre class="synopsis">
GEnum
+----VipsImageType
</pre>
<pre class="synopsis">
GEnum
+----VipsInterpretation
</pre>
<pre class="synopsis">
GEnum
+----VipsBandFormat
</pre>
<pre class="synopsis">
GEnum
+----VipsCoding
</pre>
<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--demand" title='The "demand" property'>demand</a>" <a class="link" href="VipsImage.html#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"><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--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">gint</span> : Read / Write
"<a class="link" href="VipsImage.html#VipsImage--width" title='The "width" property'>width</a>" <span class="type">gint</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-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_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-demand-hint" title="vips_demand_hint ()"><code class="function">vips_demand_hint()</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>
VIPS_DEMAND_STYLE_THINSTRIP --- 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>
VIPS_DEMAND_STYLE_FATSTRIP --- 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 class="link" href="libvips-convolution.html#im-conv" title="im_conv ()"><code class="function">im_conv()</code></a>.
</p>
<p>
VIPS_DEMAND_STYLE_SMALLTILE --- 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>
VIPS_DEMAND_STYLE_ANY --- 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
<a class="link" href="libvips-conversion.html#im-black" title="im_black ()"><code class="function">im_black()</code></a> where the pixels are calculated.
</p>
<p>
See also: <a class="link" href="libvips-generate.html#vips-demand-hint" title="vips_demand_hint ()"><code class="function">vips_demand_hint()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<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_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>
</div>
<hr>
<div class="refsect2">
<a name="VipsInterpretation"></a><h3>enum VipsInterpretation</h3>
<pre class="programlisting">typedef enum {
VIPS_INTERPRETATION_MULTIBAND = 0,
VIPS_INTERPRETATION_B_W = 1,
VIPS_INTERPRETATION_HISTOGRAM = 10,
VIPS_INTERPRETATION_FOURIER = 24,
VIPS_INTERPRETATION_XYZ = 12,
VIPS_INTERPRETATION_LAB = 13,
VIPS_INTERPRETATION_CMYK = 15,
VIPS_INTERPRETATION_LABQ = 16,
VIPS_INTERPRETATION_RGB = 17,
VIPS_INTERPRETATION_UCS = 18,
VIPS_INTERPRETATION_LCH = 19,
VIPS_INTERPRETATION_LABS = 21,
VIPS_INTERPRETATION_sRGB = 22,
VIPS_INTERPRETATION_YXY = 23,
VIPS_INTERPRETATION_RGB16 = 25,
VIPS_INTERPRETATION_GREY16 = 26
} VipsInterpretation;
</pre>
<p>
How the values in an image should be interpreted. For example, a
three-band float image of type <span class="type">VIPS_TYPE_LAB</span> 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">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="VIPS-INTERPRETATION-MULTIBAND:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_MULTIBAND</code></span></p></td>
<td></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></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></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></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></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></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></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></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></td>
</tr>
<tr>
<td><p><a name="VIPS-INTERPRETATION-UCS:CAPS"></a><span class="term"><code class="literal">VIPS_INTERPRETATION_UCS</code></span></p></td>
<td></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></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></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></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></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></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></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">
<col align="left" valign="top">
<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_NONE = 0,
VIPS_CODING_LABQ = 2,
VIPS_CODING_RAD = 6
} 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">
<col align="left" valign="top">
<tbody>
<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>
</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">
<col align="left" valign="top">
<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 );
} VipsImageClass;
</pre>
</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">
<col align="left" valign="top">
<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">
<col align="left" valign="top">
<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">
<col align="left" valign="top">
<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-SIZEOF-IMAGE:CAPS"></a><h3>VIPS_IMAGE_SIZEOF_IMAGE()</h3>
<pre class="programlisting">#define VIPS_IMAGE_SIZEOF_IMAGE( I )</pre>
</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">
<col align="left" valign="top">
<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-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. 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">
<col align="left" valign="top">
<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>
</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 derived images. The
"invalidate" callback is triggered for all invalidated images.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<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-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>
</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">int</span> w</code></em>,
<em class="parameter"><code><span class="type">int</span> h</code></em>);</pre>
</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>
</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">
<col align="left" valign="top">
<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-get-kill"></a><h3>vips_image_get_kill ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> vips_image_get_kill (<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> *image</code></em>);</pre>
</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>
</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">
<col align="left" valign="top">
<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-array"></a><h3>vips_image_new_array ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> vips_image_new_array (<em class="parameter"><code><a class="link" href="libvips-VipsArgument.html#VipsObject"><span class="type">VipsObject</span></a> *parent</code></em>,
<em class="parameter"><code><a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> **images</code></em>,
<em class="parameter"><code><span class="type">int</span> n</code></em>);</pre>
<p>
Just like <a class="link" href="VipsImage.html#vips-image-new" title="vips_image_new ()"><code class="function">vips_image_new()</code></a>, but opens an array of "p" images.
Handy for creating a
set of temporary images for a function.
</p>
<p>
Example:
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
VipsImage *t[5];
if( vips_image_new_array( out, t, 5 ) ||
vips_add( a, b, t[0] ) ||
vips_invert( t[0], t[1] ) ||
vips_add( t[1], t[0], t[2] ) ||
vips_costra( t[2], out ) )
return( -1 );
</pre></div>
<p>
</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>, <a class="link" href="libvips-VipsArgument.html#vips-object-local" title="vips_object_local()"><code class="function">vips_object_local()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td>images unref when this object unrefs</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>OUT</code></em> :</span></p></td>
<td>array to fill with <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>N</code></em> :</span></p></td>
<td>array size</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>0 on sucess, or -1 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" 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 in memory.
</p>
<p>
For some large files (eg. TIFF) this may
not be what you want, it can fill memory very quickly. Instead, you
can either use "rd" mode (see below), or you can use the lower-level
API and control the loading process yourself. See
<a class="link" href="VipsImage.html#VipsBandFormat"><span class="type">VipsBandFormat</span></a>.
</p>
<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> can read files in most formats.
</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>"rd"</em></span>
opens the named file for reading. If the uncompressed image is larger
than a threshold and the file format does not support random access,
rather than uncompressing to memory, <a class="link" href="VipsImage.html#vips-image-new-mode" title="vips_image_new_mode ()"><code class="function">vips_image_new_mode()</code></a> will
uncompress to a temporary disc file. This file will be automatically
deleted when the IMAGE is closed.
</p>
<p>
See <a class="link" href="libvips-conversion.html#im-system-image" title="im_system_image ()"><code class="function">im_system_image()</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" im_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 100MB.
</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">
<col align="left" valign="top">
<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-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. 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">
<col align="left" valign="top">
<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">int</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
<a class="link" href="libvips-conversion.html#im-copy-set" title="im_copy_set ()"><code class="function">im_copy_set()</code></a> to transform the descriptor after loading it.
</p>
<p>
See also: <a class="link" href="libvips-conversion.html#im-copy-set" title="im_copy_set ()"><code class="function">im_copy_set()</code></a>, <a class="link" href="VipsFormat.html#im-raw2vips" title="im_raw2vips ()"><code class="function">im_raw2vips()</code></a>, <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">
<col align="left" valign="top">
<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"><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>, <a class="link" href="VipsFormat.html#im-raw2vips" title="im_raw2vips ()"><code class="function">im_raw2vips()</code></a>, <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">
<col align="left" valign="top">
<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-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->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-disc-temp" title="vips_image_new_disc_temp ()"><code class="function">vips_image_new_disc_temp()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<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-disc-temp"></a><h3>vips_image_new_disc_temp ()</h3>
<pre class="programlisting"><a class="link" href="VipsImage.html" title="VipsImage"><span class="returnvalue">VipsImage</span></a> * vips_image_new_disc_temp (<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">
<col align="left" valign="top">
<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>const <span class="type">char</span> *filename</code></em>);</pre>
<p>
A convenience function to write a <a class="link" href="VipsImage.html" title="VipsImage"><span class="type">VipsImage</span></a> to a file.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<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">
<col align="left" valign="top">
<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">
<col align="left" valign="top">
<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">
<col align="left" valign="top">
<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-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">PEL</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">
<col align="left" valign="top">
<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-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: <a class="link" href="VipsImage.html#vips-image-wio-output" title="vips_image_wio_output ()"><code class="function">vips_image_wio_output()</code></a>, <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">
<col align="left" valign="top">
<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-wio-output"></a><h3>vips_image_wio_output ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> vips_image_wio_output (<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 writeable by <a class="link" href="VipsImage.html#vips-image-write-line" title="vips_image_write_line ()"><code class="function">vips_image_write_line()</code></a>. If it isn't,
try to transform it so that <a class="link" href="VipsImage.html#vips-image-write-line" title="vips_image_write_line ()"><code class="function">vips_image_write_line()</code></a> can work.
</p>
<p>
See also: <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">
<col align="left" valign="top">
<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>.
Operations like this both read and write 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">
<col align="left" valign="top">
<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-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: <a class="link" href="VipsImage.html#vips-image-pio-output" title="vips_image_pio_output ()"><code class="function">vips_image_pio_output()</code></a>, <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">
<col align="left" valign="top">
<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-pio-output"></a><h3>vips_image_pio_output ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> vips_image_pio_output (<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 writeable with <a class="link" href="libvips-generate.html#vips-image-generate" title="vips_image_generate ()"><code class="function">vips_image_generate()</code></a>. If it isn't,
try to transform the image so that <a class="link" href="libvips-generate.html#vips-image-generate" title="vips_image_generate ()"><code class="function">vips_image_generate()</code></a> can work.
</p>
<p>
See also: <a class="link" href="VipsImage.html#vips-image-pio-input" title="vips_image_pio_input ()"><code class="function">vips_image_pio_input()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<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-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"><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">
<col align="left" valign="top">
<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"><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">
<col align="left" valign="top">
<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"><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">
<col align="left" valign="top">
<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"><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">
<col align="left" valign="top">
<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>
</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: [0,1000000]</p>
<p>Default value: 0</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"><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"><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: [0,1000000]</p>
<p>Default value: 0</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">gint</span> : Read / Write</pre>
<p>Offset in bytes from start of file.</p>
<p>Allowed values: [0,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: [0,1000000]</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>
</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>
</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>
</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>
</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>
</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.17</div>
</body>
</html>
|