1 <!-- Creator : groff version 1.20.1 -->
2 <!-- CreationDate: Thu May 6 13:48:46 2010 -->
3 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
4 "http://www.w3.org/TR/html4/loose.dtd">
7 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org">
8 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
9 <meta name=
"Content-Style" content=
"text/css">
10 <style type=
"text/css">
11 p { margin-top:
0; margin-bottom:
0; vertical-align: top }
12 pre { margin-top:
0; margin-bottom:
0; vertical-align: top }
13 table { margin-top:
0; margin-bottom:
0; vertical-align: top }
14 h1 { text-align: center }
16 <title>TIFFSetField
</title>
21 <h1 align=
"center">TIFFSetField
</h1>
23 <a href=
"#NAME">NAME
</a><br>
24 <a href=
"#SYNOPSIS">SYNOPSIS
</a><br>
25 <a href=
"#DESCRIPTION">DESCRIPTION
</a><br>
26 <a href=
"#RETURN VALUES">RETURN VALUES
</a><br>
27 <a href=
"#DIAGNOSTICS">DIAGNOSTICS
</a><br>
28 <a href=
"#SEE ALSO">SEE ALSO
</a><br>
38 <p style=
"margin-left:11%; margin-top: 1em">TIFFSetField,
39 TIFFVSetField
− set the value(s) of a tag in a
40 <small>TIFF
</small> file open for writing
</p>
43 <a name=
"SYNOPSIS"></a>
47 <p style=
"margin-left:11%; margin-top: 1em"><b>#include
48 <tiffio.h
></b></p>
50 <p style=
"margin-left:11%; margin-top: 1em"><b>int
51 TIFFSetField(TIFF *
</b><i>tif
</i><b>, ttag_t
</b>
52 <i>tag
</i><b>,
</b> <i>...
</i><b>)
</b></p>
54 <p style=
"margin-left:11%; margin-top: 1em"><b>#include
55 <stdarg.h
></b></p>
57 <p style=
"margin-left:11%; margin-top: 1em"><b>int
58 TIFFVSetField(TIFF *
</b><i>tif
</i><b>, ttag_t
</b>
59 <i>tag
</i><b>, va_list
</b> <i>ap
</i><b>)
</b></p>
62 <a name=
"DESCRIPTION"></a>
67 <p style=
"margin-left:11%; margin-top: 1em"><b><i>TIFFSetField
</i></b>
68 sets the value of a field or pseudo-tag in the current
69 directory associated with the open
<small>TIFF
</small> file
70 <i>tif
</i>. (A
<i>pseudo-tag
</i> is a parameter that is used
71 to control the operation of the
<small>TIFF
</small> library
72 but whose value is not read or written to the underlying
73 file.) To set the value of a field the file must have been
74 previously opened for writing with
<i>TIFFOpen
</i>(
3TIFF);
75 pseudo-tags can be set whether the file was opened for
76 reading or writing. The field is identified by
<i>tag
</i>,
77 one of the values defined in the include file
<b>tiff.h
</b>
78 (see also the table below). The actual value is specified
79 using a variable argument list, as prescribed by the
80 <i>stdarg
</i>(
3) interface (or, on some machines, the
81 <i>varargs
</i>(
3) interface.)
</p>
84 <p style=
"margin-left:11%; margin-top: 1em"><i>TIFFVSetField
</i>
85 is functionally equivalent to
<i>TIFFSetField
</i> except
86 that it takes a pointer to a variable argument list.
87 <i>TIFFVSetField
</i> is useful for writing routines that are
88 layered on top of the functionality provided by
89 <i>TIFFSetField
</i>.
</p>
91 <p style=
"margin-left:11%; margin-top: 1em">The tags
92 understood by
<i>libtiff
</i>, the number of parameter
93 values, and the expected types for the parameter values are
94 shown below. The data types are:
<i>char*
</i> is
95 null-terminated string and corresponds to the
96 <small>ASCII
</small> data type;
<i>uint16
</i> is an unsigned
97 16-bit value;
<i>uint32
</i> is an unsigned
32-bit value;
98 <i>uint16*
</i> is an array of unsigned
16-bit values.
99 <i>void*
</i> is an array of data values of unspecified
102 <p style=
"margin-left:11%; margin-top: 1em">Consult the
103 <small>TIFF
</small> specification for information on the
104 meaning of each tag.
</p>
106 <table width=
"100%" border=
"0" rules=
"none" frame=
"void"
107 cellspacing=
"0" cellpadding=
"0">
108 <tr valign=
"top" align=
"left">
109 <td width=
"11%"></td>
113 <p><i>Tag Name
</i></p></td>
114 <td width=
"11%"></td>
118 <p><i>Count
</i></p></td>
121 <tr valign=
"top" align=
"left">
122 <td width=
"11%"></td>
123 <td width=
"38%"></td>
124 <td width=
"11%"></td>
128 <p><i>Types
</i></p></td>
132 <p><i>Notes
</i></p></td></tr>
133 <tr valign=
"top" align=
"left">
134 <td width=
"11%"></td>
138 <p>TIFFTAG_ARTIST
</p></td>
139 <td width=
"11%"></td>
146 <tr valign=
"top" align=
"left">
147 <td width=
"11%"></td>
148 <td width=
"38%"></td>
149 <td width=
"11%"></td>
156 <tr valign=
"top" align=
"left">
157 <td width=
"11%"></td>
161 <p>TIFFTAG_BADFAXLINES
</p></td>
162 <td width=
"11%"></td>
169 <tr valign=
"top" align=
"left">
170 <td width=
"11%"></td>
171 <td width=
"38%"></td>
172 <td width=
"11%"></td>
179 <tr valign=
"top" align=
"left">
180 <td width=
"11%"></td>
184 <p>TIFFTAG_BITSPERSAMPLE
</p></td>
185 <td width=
"11%"></td>
192 <tr valign=
"top" align=
"left">
193 <td width=
"11%"></td>
194 <td width=
"38%"></td>
195 <td width=
"11%"></td>
203 <p>†</p></td></tr>
204 <tr valign=
"top" align=
"left">
205 <td width=
"11%"></td>
209 <p>TIFFTAG_CLEANFAXDATA
</p></td>
210 <td width=
"11%"></td>
217 <tr valign=
"top" align=
"left">
218 <td width=
"11%"></td>
219 <td width=
"38%"></td>
220 <td width=
"11%"></td>
227 <tr valign=
"top" align=
"left">
228 <td width=
"11%"></td>
232 <p>TIFFTAG_COLORMAP
</p></td>
233 <td width=
"11%"></td>
240 <tr valign=
"top" align=
"left">
241 <td width=
"11%"></td>
242 <td width=
"38%"></td>
243 <td width=
"11%"></td>
251 <p>1<<BitsPerSample arrays
</p></td></tr>
252 <tr valign=
"top" align=
"left">
253 <td width=
"11%"></td>
257 <p>TIFFTAG_COMPRESSION
</p></td>
258 <td width=
"11%"></td>
265 <tr valign=
"top" align=
"left">
266 <td width=
"11%"></td>
267 <td width=
"38%"></td>
268 <td width=
"11%"></td>
276 <p>†</p></td></tr>
277 <tr valign=
"top" align=
"left">
278 <td width=
"11%"></td>
282 <p>TIFFTAG_CONSECUTIVEBADFAXLINES
</p></td>
283 <td width=
"11%"></td>
290 <tr valign=
"top" align=
"left">
291 <td width=
"11%"></td>
292 <td width=
"38%"></td>
293 <td width=
"11%"></td>
300 <tr valign=
"top" align=
"left">
301 <td width=
"11%"></td>
305 <p>TIFFTAG_COPYRIGHT
</p></td>
306 <td width=
"11%"></td>
313 <tr valign=
"top" align=
"left">
314 <td width=
"11%"></td>
315 <td width=
"38%"></td>
316 <td width=
"11%"></td>
323 <tr valign=
"top" align=
"left">
324 <td width=
"11%"></td>
328 <p>TIFFTAG_DATETIME
</p></td>
329 <td width=
"11%"></td>
336 <tr valign=
"top" align=
"left">
337 <td width=
"11%"></td>
338 <td width=
"38%"></td>
339 <td width=
"11%"></td>
346 <tr valign=
"top" align=
"left">
347 <td width=
"11%"></td>
351 <p>TIFFTAG_DOCUMENTNAME
</p></td>
352 <td width=
"11%"></td>
359 <tr valign=
"top" align=
"left">
360 <td width=
"11%"></td>
361 <td width=
"38%"></td>
362 <td width=
"11%"></td>
369 <tr valign=
"top" align=
"left">
370 <td width=
"11%"></td>
374 <p>TIFFTAG_DOTRANGE
</p></td>
375 <td width=
"11%"></td>
382 <tr valign=
"top" align=
"left">
383 <td width=
"11%"></td>
384 <td width=
"38%"></td>
385 <td width=
"11%"></td>
392 <tr valign=
"top" align=
"left">
393 <td width=
"11%"></td>
397 <p>TIFFTAG_EXTRASAMPLES
</p></td>
398 <td width=
"11%"></td>
405 <tr valign=
"top" align=
"left">
406 <td width=
"11%"></td>
407 <td width=
"38%"></td>
408 <td width=
"11%"></td>
412 <p>uint16,uint16*
</p></td>
416 <p>† count
& types array
</p></td></tr>
417 <tr valign=
"top" align=
"left">
418 <td width=
"11%"></td>
422 <p>TIFFTAG_FAXFILLFUNC
</p></td>
423 <td width=
"11%"></td>
430 <tr valign=
"top" align=
"left">
431 <td width=
"11%"></td>
432 <td width=
"38%"></td>
433 <td width=
"11%"></td>
437 <p>TIFFFaxFillFunc
</p></td>
441 <p>G3/G4 compression pseudo-tag
</p></td></tr>
442 <tr valign=
"top" align=
"left">
443 <td width=
"11%"></td>
447 <p>TIFFTAG_FAXMODE
</p></td>
448 <td width=
"11%"></td>
455 <tr valign=
"top" align=
"left">
456 <td width=
"11%"></td>
457 <td width=
"38%"></td>
458 <td width=
"11%"></td>
466 <p>† G3/G4 compression pseudo-tag
</p></td></tr>
467 <tr valign=
"top" align=
"left">
468 <td width=
"11%"></td>
472 <p>TIFFTAG_FILLORDER
</p></td>
473 <td width=
"11%"></td>
480 <tr valign=
"top" align=
"left">
481 <td width=
"11%"></td>
482 <td width=
"38%"></td>
483 <td width=
"11%"></td>
491 <p>†</p></td></tr>
492 <tr valign=
"top" align=
"left">
493 <td width=
"11%"></td>
497 <p>TIFFTAG_GROUP3OPTIONS
</p></td>
498 <td width=
"11%"></td>
505 <tr valign=
"top" align=
"left">
506 <td width=
"11%"></td>
507 <td width=
"38%"></td>
508 <td width=
"11%"></td>
516 <p>†</p></td></tr>
517 <tr valign=
"top" align=
"left">
518 <td width=
"11%"></td>
522 <p>TIFFTAG_GROUP4OPTIONS
</p></td>
523 <td width=
"11%"></td>
530 <tr valign=
"top" align=
"left">
531 <td width=
"11%"></td>
532 <td width=
"38%"></td>
533 <td width=
"11%"></td>
541 <p>†</p></td></tr>
542 <tr valign=
"top" align=
"left">
543 <td width=
"11%"></td>
547 <p>TIFFTAG_HALFTONEHINTS
</p></td>
548 <td width=
"11%"></td>
555 <tr valign=
"top" align=
"left">
556 <td width=
"11%"></td>
557 <td width=
"38%"></td>
558 <td width=
"11%"></td>
565 <tr valign=
"top" align=
"left">
566 <td width=
"11%"></td>
570 <p>TIFFTAG_HOSTCOMPUTER
</p></td>
571 <td width=
"11%"></td>
578 <tr valign=
"top" align=
"left">
579 <td width=
"11%"></td>
580 <td width=
"38%"></td>
581 <td width=
"11%"></td>
588 <tr valign=
"top" align=
"left">
589 <td width=
"11%"></td>
593 <p>TIFFTAG_ICCPROFILE
</p></td>
594 <td width=
"11%"></td>
601 <tr valign=
"top" align=
"left">
602 <td width=
"11%"></td>
603 <td width=
"38%"></td>
604 <td width=
"11%"></td>
608 <p>uint32,void*
</p></td>
612 <p>count, profile data
</p></td></tr>
613 <tr valign=
"top" align=
"left">
614 <td width=
"11%"></td>
618 <p>TIFFTAG_IMAGEDEPTH
</p></td>
619 <td width=
"11%"></td>
626 <tr valign=
"top" align=
"left">
627 <td width=
"11%"></td>
628 <td width=
"38%"></td>
629 <td width=
"11%"></td>
637 <p>†</p></td></tr>
638 <tr valign=
"top" align=
"left">
639 <td width=
"11%"></td>
643 <p>TIFFTAG_IMAGEDESCRIPTION
</p></td>
644 <td width=
"11%"></td>
651 <tr valign=
"top" align=
"left">
652 <td width=
"11%"></td>
653 <td width=
"38%"></td>
654 <td width=
"11%"></td>
661 <tr valign=
"top" align=
"left">
662 <td width=
"11%"></td>
666 <p>TIFFTAG_IMAGELENGTH
</p></td>
667 <td width=
"11%"></td>
674 <tr valign=
"top" align=
"left">
675 <td width=
"11%"></td>
676 <td width=
"38%"></td>
677 <td width=
"11%"></td>
684 <tr valign=
"top" align=
"left">
685 <td width=
"11%"></td>
689 <p>TIFFTAG_IMAGEWIDTH
</p></td>
690 <td width=
"11%"></td>
697 <tr valign=
"top" align=
"left">
698 <td width=
"11%"></td>
699 <td width=
"38%"></td>
700 <td width=
"11%"></td>
708 <p>†</p></td></tr>
709 <tr valign=
"top" align=
"left">
710 <td width=
"11%"></td>
714 <p>TIFFTAG_INKNAMES
</p></td>
715 <td width=
"11%"></td>
722 <tr valign=
"top" align=
"left">
723 <td width=
"11%"></td>
724 <td width=
"38%"></td>
725 <td width=
"11%"></td>
729 <p>uint16, char*
</p></td>
732 <tr valign=
"top" align=
"left">
733 <td width=
"11%"></td>
737 <p>TIFFTAG_INKSET
</p></td>
738 <td width=
"11%"></td>
745 <tr valign=
"top" align=
"left">
746 <td width=
"11%"></td>
747 <td width=
"38%"></td>
748 <td width=
"11%"></td>
756 <p>†</p></td></tr>
757 <tr valign=
"top" align=
"left">
758 <td width=
"11%"></td>
762 <p>TIFFTAG_JPEGCOLORMODE
</p></td>
763 <td width=
"11%"></td>
770 <tr valign=
"top" align=
"left">
771 <td width=
"11%"></td>
772 <td width=
"38%"></td>
773 <td width=
"11%"></td>
781 <p>† JPEG pseudo-tag
</p></td></tr>
782 <tr valign=
"top" align=
"left">
783 <td width=
"11%"></td>
787 <p>TIFFTAG_JPEGQUALITY
</p></td>
788 <td width=
"11%"></td>
795 <tr valign=
"top" align=
"left">
796 <td width=
"11%"></td>
797 <td width=
"38%"></td>
798 <td width=
"11%"></td>
806 <p>JPEG pseudo-tag
</p></td></tr>
807 <tr valign=
"top" align=
"left">
808 <td width=
"11%"></td>
812 <p>TIFFTAG_JPEGTABLES
</p></td>
813 <td width=
"11%"></td>
820 <tr valign=
"top" align=
"left">
821 <td width=
"11%"></td>
822 <td width=
"38%"></td>
823 <td width=
"11%"></td>
827 <p>uint32*,void*
</p></td>
831 <p>† count
& tables
</p></td></tr>
832 <tr valign=
"top" align=
"left">
833 <td width=
"11%"></td>
837 <p>TIFFTAG_JPEGTABLESMODE
</p></td>
838 <td width=
"11%"></td>
845 <tr valign=
"top" align=
"left">
846 <td width=
"11%"></td>
847 <td width=
"38%"></td>
848 <td width=
"11%"></td>
856 <p>† JPEG pseudo-tag
</p></td></tr>
857 <tr valign=
"top" align=
"left">
858 <td width=
"11%"></td>
862 <p>TIFFTAG_MAKE
</p></td>
863 <td width=
"11%"></td>
870 <tr valign=
"top" align=
"left">
871 <td width=
"11%"></td>
872 <td width=
"38%"></td>
873 <td width=
"11%"></td>
880 <tr valign=
"top" align=
"left">
881 <td width=
"11%"></td>
885 <p>TIFFTAG_MATTEING
</p></td>
886 <td width=
"11%"></td>
893 <tr valign=
"top" align=
"left">
894 <td width=
"11%"></td>
895 <td width=
"38%"></td>
896 <td width=
"11%"></td>
904 <p>†</p></td></tr>
905 <tr valign=
"top" align=
"left">
906 <td width=
"11%"></td>
910 <p>TIFFTAG_MAXSAMPLEVALUE
</p></td>
911 <td width=
"11%"></td>
918 <tr valign=
"top" align=
"left">
919 <td width=
"11%"></td>
920 <td width=
"38%"></td>
921 <td width=
"11%"></td>
928 <tr valign=
"top" align=
"left">
929 <td width=
"11%"></td>
933 <p>TIFFTAG_MINSAMPLEVALUE
</p></td>
934 <td width=
"11%"></td>
941 <tr valign=
"top" align=
"left">
942 <td width=
"11%"></td>
943 <td width=
"38%"></td>
944 <td width=
"11%"></td>
951 <tr valign=
"top" align=
"left">
952 <td width=
"11%"></td>
956 <p>TIFFTAG_MODEL
</p></td>
957 <td width=
"11%"></td>
964 <tr valign=
"top" align=
"left">
965 <td width=
"11%"></td>
966 <td width=
"38%"></td>
967 <td width=
"11%"></td>
974 <tr valign=
"top" align=
"left">
975 <td width=
"11%"></td>
979 <p>TIFFTAG_ORIENTATION
</p></td>
980 <td width=
"11%"></td>
987 <tr valign=
"top" align=
"left">
988 <td width=
"11%"></td>
989 <td width=
"38%"></td>
990 <td width=
"11%"></td>
997 <tr valign=
"top" align=
"left">
998 <td width=
"11%"></td>
1002 <p>TIFFTAG_PAGENAME
</p></td>
1003 <td width=
"11%"></td>
1010 <tr valign=
"top" align=
"left">
1011 <td width=
"11%"></td>
1012 <td width=
"38%"></td>
1013 <td width=
"11%"></td>
1020 <tr valign=
"top" align=
"left">
1021 <td width=
"11%"></td>
1025 <p>TIFFTAG_PAGENUMBER
</p></td>
1026 <td width=
"11%"></td>
1033 <tr valign=
"top" align=
"left">
1034 <td width=
"11%"></td>
1035 <td width=
"38%"></td>
1036 <td width=
"11%"></td>
1043 <tr valign=
"top" align=
"left">
1044 <td width=
"11%"></td>
1048 <p>TIFFTAG_PHOTOMETRIC
</p></td>
1049 <td width=
"11%"></td>
1056 <tr valign=
"top" align=
"left">
1057 <td width=
"11%"></td>
1058 <td width=
"38%"></td>
1059 <td width=
"11%"></td>
1066 <tr valign=
"top" align=
"left">
1067 <td width=
"11%"></td>
1071 <p>TIFFTAG_PHOTOSHOP
</p></td>
1072 <td width=
"11%"></td>
1079 <tr valign=
"top" align=
"left">
1080 <td width=
"11%"></td>
1081 <td width=
"38%"></td>
1082 <td width=
"11%"></td>
1086 <p>uint32,void*
</p></td>
1090 <p>count, data
</p></td></tr>
1091 <tr valign=
"top" align=
"left">
1092 <td width=
"11%"></td>
1096 <p>TIFFTAG_PLANARCONFIG
</p></td>
1097 <td width=
"11%"></td>
1104 <tr valign=
"top" align=
"left">
1105 <td width=
"11%"></td>
1106 <td width=
"38%"></td>
1107 <td width=
"11%"></td>
1115 <p>†</p></td></tr>
1116 <tr valign=
"top" align=
"left">
1117 <td width=
"11%"></td>
1121 <p>TIFFTAG_PREDICTOR
</p></td>
1122 <td width=
"11%"></td>
1129 <tr valign=
"top" align=
"left">
1130 <td width=
"11%"></td>
1131 <td width=
"38%"></td>
1132 <td width=
"11%"></td>
1140 <p>†</p></td></tr>
1141 <tr valign=
"top" align=
"left">
1142 <td width=
"11%"></td>
1146 <p>TIFFTAG_PRIMARYCHROMATICITIES
</p></td>
1147 <td width=
"11%"></td>
1154 <tr valign=
"top" align=
"left">
1155 <td width=
"11%"></td>
1156 <td width=
"38%"></td>
1157 <td width=
"11%"></td>
1165 <p>6-entry array
</p></td></tr>
1166 <tr valign=
"top" align=
"left">
1167 <td width=
"11%"></td>
1171 <p>TIFFTAG_REFERENCEBLACKWHITE
</p></td>
1172 <td width=
"11%"></td>
1179 <tr valign=
"top" align=
"left">
1180 <td width=
"11%"></td>
1181 <td width=
"38%"></td>
1182 <td width=
"11%"></td>
1190 <p>† 6-entry array
</p></td></tr>
1191 <tr valign=
"top" align=
"left">
1192 <td width=
"11%"></td>
1196 <p>TIFFTAG_RESOLUTIONUNIT
</p></td>
1197 <td width=
"11%"></td>
1204 <tr valign=
"top" align=
"left">
1205 <td width=
"11%"></td>
1206 <td width=
"38%"></td>
1207 <td width=
"11%"></td>
1214 <tr valign=
"top" align=
"left">
1215 <td width=
"11%"></td>
1219 <p>TIFFTAG_RICHTIFFIPTC
</p></td>
1220 <td width=
"11%"></td>
1227 <tr valign=
"top" align=
"left">
1228 <td width=
"11%"></td>
1229 <td width=
"38%"></td>
1230 <td width=
"11%"></td>
1234 <p>uint32,void*
</p></td>
1238 <p>count, data
</p></td></tr>
1239 <tr valign=
"top" align=
"left">
1240 <td width=
"11%"></td>
1244 <p>TIFFTAG_ROWSPERSTRIP
</p></td>
1245 <td width=
"11%"></td>
1252 <tr valign=
"top" align=
"left">
1253 <td width=
"11%"></td>
1254 <td width=
"38%"></td>
1255 <td width=
"11%"></td>
1263 <p>† must be
> 0</p></td></tr>
1264 <tr valign=
"top" align=
"left">
1265 <td width=
"11%"></td>
1269 <p>TIFFTAG_SAMPLEFORMAT
</p></td>
1270 <td width=
"11%"></td>
1277 <tr valign=
"top" align=
"left">
1278 <td width=
"11%"></td>
1279 <td width=
"38%"></td>
1280 <td width=
"11%"></td>
1288 <p>†</p></td></tr>
1289 <tr valign=
"top" align=
"left">
1290 <td width=
"11%"></td>
1294 <p>TIFFTAG_SAMPLESPERPIXEL
</p></td>
1295 <td width=
"11%"></td>
1302 <tr valign=
"top" align=
"left">
1303 <td width=
"11%"></td>
1304 <td width=
"38%"></td>
1305 <td width=
"11%"></td>
1313 <p>† value must be
<=
4</p></td></tr>
1314 <tr valign=
"top" align=
"left">
1315 <td width=
"11%"></td>
1319 <p>TIFFTAG_SMAXSAMPLEVALUE
</p></td>
1320 <td width=
"11%"></td>
1327 <tr valign=
"top" align=
"left">
1328 <td width=
"11%"></td>
1329 <td width=
"38%"></td>
1330 <td width=
"11%"></td>
1337 <tr valign=
"top" align=
"left">
1338 <td width=
"11%"></td>
1342 <p>TIFFTAG_SMINSAMPLEVALUE
</p></td>
1343 <td width=
"11%"></td>
1350 <tr valign=
"top" align=
"left">
1351 <td width=
"11%"></td>
1352 <td width=
"38%"></td>
1353 <td width=
"11%"></td>
1360 <tr valign=
"top" align=
"left">
1361 <td width=
"11%"></td>
1365 <p>TIFFTAG_SOFTWARE
</p></td>
1366 <td width=
"11%"></td>
1373 <tr valign=
"top" align=
"left">
1374 <td width=
"11%"></td>
1375 <td width=
"38%"></td>
1376 <td width=
"11%"></td>
1383 <tr valign=
"top" align=
"left">
1384 <td width=
"11%"></td>
1388 <p>TIFFTAG_STONITS
</p></td>
1389 <td width=
"11%"></td>
1396 <tr valign=
"top" align=
"left">
1397 <td width=
"11%"></td>
1398 <td width=
"38%"></td>
1399 <td width=
"11%"></td>
1407 <p>†</p></td></tr>
1408 <tr valign=
"top" align=
"left">
1409 <td width=
"11%"></td>
1413 <p>TIFFTAG_SUBFILETYPE
</p></td>
1414 <td width=
"11%"></td>
1421 <tr valign=
"top" align=
"left">
1422 <td width=
"11%"></td>
1423 <td width=
"38%"></td>
1424 <td width=
"11%"></td>
1431 <tr valign=
"top" align=
"left">
1432 <td width=
"11%"></td>
1436 <p>TIFFTAG_SUBIFD
</p></td>
1437 <td width=
"11%"></td>
1444 <tr valign=
"top" align=
"left">
1445 <td width=
"11%"></td>
1446 <td width=
"38%"></td>
1447 <td width=
"11%"></td>
1451 <p>uint16,uint32*
</p></td>
1455 <p>count
& offsets array
</p></td></tr>
1456 <tr valign=
"top" align=
"left">
1457 <td width=
"11%"></td>
1461 <p>TIFFTAG_TARGETPRINTER
</p></td>
1462 <td width=
"11%"></td>
1469 <tr valign=
"top" align=
"left">
1470 <td width=
"11%"></td>
1471 <td width=
"38%"></td>
1472 <td width=
"11%"></td>
1479 <tr valign=
"top" align=
"left">
1480 <td width=
"11%"></td>
1484 <p>TIFFTAG_THRESHHOLDING
</p></td>
1485 <td width=
"11%"></td>
1492 <tr valign=
"top" align=
"left">
1493 <td width=
"11%"></td>
1494 <td width=
"38%"></td>
1495 <td width=
"11%"></td>
1502 <tr valign=
"top" align=
"left">
1503 <td width=
"11%"></td>
1507 <p>TIFFTAG_TILEDEPTH
</p></td>
1508 <td width=
"11%"></td>
1515 <tr valign=
"top" align=
"left">
1516 <td width=
"11%"></td>
1517 <td width=
"38%"></td>
1518 <td width=
"11%"></td>
1526 <p>†</p></td></tr>
1527 <tr valign=
"top" align=
"left">
1528 <td width=
"11%"></td>
1532 <p>TIFFTAG_TILELENGTH
</p></td>
1533 <td width=
"11%"></td>
1540 <tr valign=
"top" align=
"left">
1541 <td width=
"11%"></td>
1542 <td width=
"38%"></td>
1543 <td width=
"11%"></td>
1551 <p>† must be a multiple of
8</p></td></tr>
1552 <tr valign=
"top" align=
"left">
1553 <td width=
"11%"></td>
1557 <p>TIFFTAG_TILEWIDTH
</p></td>
1558 <td width=
"11%"></td>
1565 <tr valign=
"top" align=
"left">
1566 <td width=
"11%"></td>
1567 <td width=
"38%"></td>
1568 <td width=
"11%"></td>
1576 <p>† must be a multiple of
8</p></td></tr>
1577 <tr valign=
"top" align=
"left">
1578 <td width=
"11%"></td>
1582 <p>TIFFTAG_TRANSFERFUNCTION
</p></td>
1583 <td width=
"11%"></td>
1587 <p>1 or
3‡ uint16*
</p></td>
1591 <p>1<<BitsPerSample entry arrays
</p></td></tr>
1592 <tr valign=
"top" align=
"left">
1593 <td width=
"11%"></td>
1597 <p>TIFFTAG_WHITEPOINT
</p></td>
1598 <td width=
"11%"></td>
1605 <tr valign=
"top" align=
"left">
1606 <td width=
"11%"></td>
1607 <td width=
"38%"></td>
1608 <td width=
"11%"></td>
1616 <p>2-entry array
</p></td></tr>
1617 <tr valign=
"top" align=
"left">
1618 <td width=
"11%"></td>
1622 <p>TIFFTAG_XMLPACKET
</p></td>
1623 <td width=
"11%"></td>
1630 <tr valign=
"top" align=
"left">
1631 <td width=
"11%"></td>
1632 <td width=
"38%"></td>
1633 <td width=
"11%"></td>
1637 <p>uint32,void*
</p></td>
1641 <p>count, data
</p></td></tr>
1642 <tr valign=
"top" align=
"left">
1643 <td width=
"11%"></td>
1647 <p>TIFFTAG_XPOSITION
</p></td>
1648 <td width=
"11%"></td>
1655 <tr valign=
"top" align=
"left">
1656 <td width=
"11%"></td>
1657 <td width=
"38%"></td>
1658 <td width=
"11%"></td>
1665 <tr valign=
"top" align=
"left">
1666 <td width=
"11%"></td>
1670 <p>TIFFTAG_XRESOLUTION
</p></td>
1671 <td width=
"11%"></td>
1678 <tr valign=
"top" align=
"left">
1679 <td width=
"11%"></td>
1680 <td width=
"38%"></td>
1681 <td width=
"11%"></td>
1688 <tr valign=
"top" align=
"left">
1689 <td width=
"11%"></td>
1693 <p>TIFFTAG_YCBCRCOEFFICIENTS
</p></td>
1694 <td width=
"11%"></td>
1701 <tr valign=
"top" align=
"left">
1702 <td width=
"11%"></td>
1703 <td width=
"38%"></td>
1704 <td width=
"11%"></td>
1712 <p>† 3-entry array
</p></td></tr>
1713 <tr valign=
"top" align=
"left">
1714 <td width=
"11%"></td>
1718 <p>TIFFTAG_YCBCRPOSITIONING
</p></td>
1719 <td width=
"11%"></td>
1726 <tr valign=
"top" align=
"left">
1727 <td width=
"11%"></td>
1728 <td width=
"38%"></td>
1729 <td width=
"11%"></td>
1737 <p>†</p></td></tr>
1738 <tr valign=
"top" align=
"left">
1739 <td width=
"11%"></td>
1743 <p>TIFFTAG_YCBCRSAMPLING
</p></td>
1744 <td width=
"11%"></td>
1751 <tr valign=
"top" align=
"left">
1752 <td width=
"11%"></td>
1753 <td width=
"38%"></td>
1754 <td width=
"11%"></td>
1762 <p>†</p></td></tr>
1763 <tr valign=
"top" align=
"left">
1764 <td width=
"11%"></td>
1768 <p>TIFFTAG_YPOSITION
</p></td>
1769 <td width=
"11%"></td>
1776 <tr valign=
"top" align=
"left">
1777 <td width=
"11%"></td>
1778 <td width=
"38%"></td>
1779 <td width=
"11%"></td>
1786 <tr valign=
"top" align=
"left">
1787 <td width=
"11%"></td>
1791 <p>TIFFTAG_YRESOLUTION
</p></td>
1792 <td width=
"11%"></td>
1799 <tr valign=
"top" align=
"left">
1800 <td width=
"11%"></td>
1801 <td width=
"38%"></td>
1802 <td width=
"11%"></td>
1811 <p style=
"margin-left:11%;">† Tag may not have its
1812 values changed once data is written.
<br>
1813 ‡ If
<i>SamplesPerPixel
</i> is one, then a single
1814 array is passed; otherwise three arrays should be passed.
1816 * The contents of this field are quite complex. See
<b>The
1817 ICC Profile Format Specification
</b>, Annex B
.3
1818 "Embedding ICC Profiles in TIFF Files
" (available
1819 at http://www.color.org) for an explanation.
</p>
1822 <a name=
"RETURN VALUES"></a>
1826 <p style=
"margin-left:11%; margin-top: 1em">1 is returned
1827 if the operation was successful. Otherwise,
0 is returned if
1828 an error was detected.
</p>
1831 <a name=
"DIAGNOSTICS"></a>
1835 <p style=
"margin-left:11%; margin-top: 1em">All error
1836 messages are directed to the
<b>TIFFError
</b>(
3TIFF)
1839 <p style=
"margin-left:11%; margin-top: 1em"><b>%s: Cannot
1840 modify tag
"%s
" while writing
</b>. Data has
1841 already been written to the file, so the specified
1842 tag
’s value can not be changed. This restriction is
1843 applied to all tags that affect the format of written
1846 <p style=
"margin-left:11%; margin-top: 1em"><b>%d: Bad
1847 value for
"%s
"</b>. An invalid value was supplied
1848 for the named tag.
</p>
1851 <a name=
"SEE ALSO"></a>
1856 <p style=
"margin-left:11%; margin-top: 1em"><b>TIFFOpen
</b>(
3TIFF),
1857 <b>TIFFGetField
</b>(
3TIFF),
<b>TIFFSetDirectory
</b>(
3TIFF),
1858 <b>TIFFWriteDirectory
</b>(
3TIFF),
1859 <b>TIFFReadDirectory
</b>(
3TIFF),
<b>libtiff
</b>(
3TIFF)
</p>
1861 <p style=
"margin-left:11%; margin-top: 1em">Libtiff library
1862 home page:
<b>http://www.remotesensing.org/libtiff/
</b></p>