1 <!-- Creator : groff version 1.20.1 -->
2 <!-- CreationDate: Thu May 6 13:48:43 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>TIFFGetField
</title>
21 <h1 align=
"center">TIFFGetField
</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=
"#AUTOREGISTERED TAGS">AUTOREGISTERED TAGS
</a><br>
27 <a href=
"#RETURN VALUES">RETURN VALUES
</a><br>
28 <a href=
"#DIAGNOSTICS">DIAGNOSTICS
</a><br>
29 <a href=
"#SEE ALSO">SEE ALSO
</a><br>
39 <p style=
"margin-left:11%; margin-top: 1em">TIFFGetField,
40 TIFFVGetField
− get the value(s) of a tag in an open
41 <small>TIFF
</small> file
</p>
44 <a name=
"SYNOPSIS"></a>
48 <p style=
"margin-left:11%; margin-top: 1em"><b>#include
49 <tiffio.h
></b></p>
51 <p style=
"margin-left:11%; margin-top: 1em"><b>int
52 TIFFGetField(TIFF *
</b><i>tif
</i><b>, ttag_t
</b>
53 <i>tag
</i><b>,
</b> <i>...
</i><b>)
</b></p>
55 <p style=
"margin-left:11%; margin-top: 1em"><b>#include
56 <stdarg.h
></b></p>
58 <p style=
"margin-left:11%; margin-top: 1em"><b>int
59 TIFFVGetField(TIFF *
</b><i>tif
</i><b>, ttag_t
</b>
60 <i>tag
</i><b>, va_list
</b> <i>ap
</i><b>)
<br>
61 int TIFFGetFieldDefaulted(TIFF *
</b><i>tif
</i><b>,
62 ttag_t
</b> <i>tag
</i><b>,
</b> <i>...
</i><b>)
<br>
63 int TIFFVGetFieldDefaulted(TIFF *
</b><i>tif
</i><b>,
64 ttag_t
</b> <i>tag
</i><b>, va_list
</b> <i>ap
</i><b>)
</b></p>
67 <a name=
"DESCRIPTION"></a>
72 <p style=
"margin-left:11%; margin-top: 1em"><b><i>TIFFGetField
</i></b>
73 returns the value of a tag or pseudo-tag associated with the
74 the current directory of the opened
<small>TIFF
</small> file
75 <i>tif
</i>. (A
<i>pseudo-tag
</i> is a parameter that is used
76 to control the operation of the
<small>TIFF
</small> library
77 but whose value is not read or written to the underlying
78 file.) The file must have been previously opened with
79 <i>TIFFOpen
</i>(
3TIFF). The tag is identified by
<i>tag
</i>,
80 one of the values defined in the include file
<b>tiff.h
</b>
81 (see also the table below). The type and number of values
82 returned is dependent on the tag being requested. The
83 programming interface uses a variable argument list as
84 prescribed by the
<i>stdarg
</i>(
3) interface. The returned
85 values should only be interpreted if
<i>TIFFGetField
</i>
89 <p style=
"margin-left:11%; margin-top: 1em"><i>TIFFVGetField
</i>
90 is functionally equivalent to
<i>TIFFGetField
</i> except
91 that it takes a pointer to a variable argument list.
92 <i>TIFFVGetField
</i> is useful for layering interfaces on
93 top of the functionality provided by
94 <i>TIFFGetField
</i>.
</p>
97 <p style=
"margin-left:11%; margin-top: 1em"><i>TIFFGetFieldDefaulted
</i>
98 and
<i>TIFFVGetFieldDefaulted
</i> are identical to
99 <i>TIFFGetField
</i> and
<i>TIFFVGetField
</i>, except that if
100 a tag is not defined in the current directory and it has a
101 default value, then the default value is returned.
</p>
103 <p style=
"margin-left:11%; margin-top: 1em">The tags
104 understood by
<i>libtiff(
3TIFF),
</i> the number of parameter
105 values, and the types for the returned values are shown
106 below. The data types are specified as in C and correspond
107 to the types used to specify tag values to
108 <i>TIFFSetField
</i>(
3TIFF). Remember that
109 <i>TIFFGetField
</i> returns parameter values, so all the
110 listed data types are pointers to storage where values
111 should be returned. Consult the
<small>TIFF
</small>
112 specification (or relevant industry specification) for
113 information on the meaning of each tag and their possible
116 <table width=
"100%" border=
"0" rules=
"none" frame=
"void"
117 cellspacing=
"0" cellpadding=
"0">
118 <tr valign=
"top" align=
"left">
119 <td width=
"11%"></td>
123 <p><i>Tag Name
</i></p></td>
124 <td width=
"11%"></td>
128 <p><i>Count
</i></p></td>
131 <tr valign=
"top" align=
"left">
132 <td width=
"11%"></td>
133 <td width=
"38%"></td>
134 <td width=
"11%"></td>
138 <p><i>Types
</i></p></td>
142 <p><i>Notes
</i></p></td></tr>
143 <tr valign=
"top" align=
"left">
144 <td width=
"11%"></td>
148 <p>TIFFTAG_ARTIST
</p></td>
149 <td width=
"11%"></td>
156 <tr valign=
"top" align=
"left">
157 <td width=
"11%"></td>
158 <td width=
"38%"></td>
159 <td width=
"11%"></td>
166 <tr valign=
"top" align=
"left">
167 <td width=
"11%"></td>
171 <p>TIFFTAG_BADFAXLINES
</p></td>
172 <td width=
"11%"></td>
179 <tr valign=
"top" align=
"left">
180 <td width=
"11%"></td>
181 <td width=
"38%"></td>
182 <td width=
"11%"></td>
189 <tr valign=
"top" align=
"left">
190 <td width=
"11%"></td>
194 <p>TIFFTAG_BITSPERSAMPLE
</p></td>
195 <td width=
"11%"></td>
202 <tr valign=
"top" align=
"left">
203 <td width=
"11%"></td>
204 <td width=
"38%"></td>
205 <td width=
"11%"></td>
212 <tr valign=
"top" align=
"left">
213 <td width=
"11%"></td>
217 <p>TIFFTAG_CLEANFAXDATA
</p></td>
218 <td width=
"11%"></td>
225 <tr valign=
"top" align=
"left">
226 <td width=
"11%"></td>
227 <td width=
"38%"></td>
228 <td width=
"11%"></td>
235 <tr valign=
"top" align=
"left">
236 <td width=
"11%"></td>
240 <p>TIFFTAG_COLORMAP
</p></td>
241 <td width=
"11%"></td>
248 <tr valign=
"top" align=
"left">
249 <td width=
"11%"></td>
250 <td width=
"38%"></td>
251 <td width=
"11%"></td>
259 <p>1<<BitsPerSample arrays
</p></td></tr>
260 <tr valign=
"top" align=
"left">
261 <td width=
"11%"></td>
265 <p>TIFFTAG_COMPRESSION
</p></td>
266 <td width=
"11%"></td>
273 <tr valign=
"top" align=
"left">
274 <td width=
"11%"></td>
275 <td width=
"38%"></td>
276 <td width=
"11%"></td>
283 <tr valign=
"top" align=
"left">
284 <td width=
"11%"></td>
288 <p>TIFFTAG_CONSECUTIVEBADFAXLINES
</p></td>
289 <td width=
"11%"></td>
296 <tr valign=
"top" align=
"left">
297 <td width=
"11%"></td>
298 <td width=
"38%"></td>
299 <td width=
"11%"></td>
306 <tr valign=
"top" align=
"left">
307 <td width=
"11%"></td>
311 <p>TIFFTAG_COPYRIGHT
</p></td>
312 <td width=
"11%"></td>
319 <tr valign=
"top" align=
"left">
320 <td width=
"11%"></td>
321 <td width=
"38%"></td>
322 <td width=
"11%"></td>
329 <tr valign=
"top" align=
"left">
330 <td width=
"11%"></td>
334 <p>TIFFTAG_DATATYPE
</p></td>
335 <td width=
"11%"></td>
342 <tr valign=
"top" align=
"left">
343 <td width=
"11%"></td>
344 <td width=
"38%"></td>
345 <td width=
"11%"></td>
352 <tr valign=
"top" align=
"left">
353 <td width=
"11%"></td>
357 <p>TIFFTAG_DATETIME
</p></td>
358 <td width=
"11%"></td>
365 <tr valign=
"top" align=
"left">
366 <td width=
"11%"></td>
367 <td width=
"38%"></td>
368 <td width=
"11%"></td>
375 <tr valign=
"top" align=
"left">
376 <td width=
"11%"></td>
380 <p>TIFFTAG_DOCUMENTNAME
</p></td>
381 <td width=
"11%"></td>
388 <tr valign=
"top" align=
"left">
389 <td width=
"11%"></td>
390 <td width=
"38%"></td>
391 <td width=
"11%"></td>
398 <tr valign=
"top" align=
"left">
399 <td width=
"11%"></td>
403 <p>TIFFTAG_DOTRANGE
</p></td>
404 <td width=
"11%"></td>
411 <tr valign=
"top" align=
"left">
412 <td width=
"11%"></td>
413 <td width=
"38%"></td>
414 <td width=
"11%"></td>
421 <tr valign=
"top" align=
"left">
422 <td width=
"11%"></td>
426 <p>TIFFTAG_EXTRASAMPLES
</p></td>
427 <td width=
"11%"></td>
434 <tr valign=
"top" align=
"left">
435 <td width=
"11%"></td>
436 <td width=
"38%"></td>
437 <td width=
"11%"></td>
441 <p>uint16*,uint16**
</p></td>
445 <p>count
& types array
</p></td></tr>
446 <tr valign=
"top" align=
"left">
447 <td width=
"11%"></td>
451 <p>TIFFTAG_FAXFILLFUNC
</p></td>
452 <td width=
"11%"></td>
459 <tr valign=
"top" align=
"left">
460 <td width=
"11%"></td>
461 <td width=
"38%"></td>
462 <td width=
"11%"></td>
466 <p>TIFFFaxFillFunc*
</p></td>
470 <p>G3/G4 compression pseudo-tag
</p></td></tr>
471 <tr valign=
"top" align=
"left">
472 <td width=
"11%"></td>
476 <p>TIFFTAG_FAXMODE
</p></td>
477 <td width=
"11%"></td>
484 <tr valign=
"top" align=
"left">
485 <td width=
"11%"></td>
486 <td width=
"38%"></td>
487 <td width=
"11%"></td>
495 <p>G3/G4 compression pseudo-tag
</p></td></tr>
496 <tr valign=
"top" align=
"left">
497 <td width=
"11%"></td>
501 <p>TIFFTAG_FILLORDER
</p></td>
502 <td width=
"11%"></td>
509 <tr valign=
"top" align=
"left">
510 <td width=
"11%"></td>
511 <td width=
"38%"></td>
512 <td width=
"11%"></td>
519 <tr valign=
"top" align=
"left">
520 <td width=
"11%"></td>
524 <p>TIFFTAG_GROUP3OPTIONS
</p></td>
525 <td width=
"11%"></td>
532 <tr valign=
"top" align=
"left">
533 <td width=
"11%"></td>
534 <td width=
"38%"></td>
535 <td width=
"11%"></td>
542 <tr valign=
"top" align=
"left">
543 <td width=
"11%"></td>
547 <p>TIFFTAG_GROUP4OPTIONS
</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_HALFTONEHINTS
</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_HOSTCOMPUTER
</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>
611 <tr valign=
"top" align=
"left">
612 <td width=
"11%"></td>
616 <p>TIFFTAG_ICCPROFILE
</p></td>
617 <td width=
"11%"></td>
624 <tr valign=
"top" align=
"left">
625 <td width=
"11%"></td>
626 <td width=
"38%"></td>
627 <td width=
"11%"></td>
631 <p>uint32*,void**
</p></td>
635 <p>count, profile data
</p></td></tr>
636 <tr valign=
"top" align=
"left">
637 <td width=
"11%"></td>
641 <p>TIFFTAG_IMAGEDEPTH
</p></td>
642 <td width=
"11%"></td>
649 <tr valign=
"top" align=
"left">
650 <td width=
"11%"></td>
651 <td width=
"38%"></td>
652 <td width=
"11%"></td>
659 <tr valign=
"top" align=
"left">
660 <td width=
"11%"></td>
664 <p>TIFFTAG_IMAGEDESCRIPTION
</p></td>
665 <td width=
"11%"></td>
672 <tr valign=
"top" align=
"left">
673 <td width=
"11%"></td>
674 <td width=
"38%"></td>
675 <td width=
"11%"></td>
682 <tr valign=
"top" align=
"left">
683 <td width=
"11%"></td>
687 <p>TIFFTAG_IMAGELENGTH
</p></td>
688 <td width=
"11%"></td>
695 <tr valign=
"top" align=
"left">
696 <td width=
"11%"></td>
697 <td width=
"38%"></td>
698 <td width=
"11%"></td>
705 <tr valign=
"top" align=
"left">
706 <td width=
"11%"></td>
710 <p>TIFFTAG_IMAGEWIDTH
</p></td>
711 <td width=
"11%"></td>
718 <tr valign=
"top" align=
"left">
719 <td width=
"11%"></td>
720 <td width=
"38%"></td>
721 <td width=
"11%"></td>
728 <tr valign=
"top" align=
"left">
729 <td width=
"11%"></td>
733 <p>TIFFTAG_INKNAMES
</p></td>
734 <td width=
"11%"></td>
741 <tr valign=
"top" align=
"left">
742 <td width=
"11%"></td>
743 <td width=
"38%"></td>
744 <td width=
"11%"></td>
751 <tr valign=
"top" align=
"left">
752 <td width=
"11%"></td>
756 <p>TIFFTAG_INKSET
</p></td>
757 <td width=
"11%"></td>
764 <tr valign=
"top" align=
"left">
765 <td width=
"11%"></td>
766 <td width=
"38%"></td>
767 <td width=
"11%"></td>
774 <tr valign=
"top" align=
"left">
775 <td width=
"11%"></td>
779 <p>TIFFTAG_JPEGCOLORMODE
</p></td>
780 <td width=
"11%"></td>
787 <tr valign=
"top" align=
"left">
788 <td width=
"11%"></td>
789 <td width=
"38%"></td>
790 <td width=
"11%"></td>
798 <p>JPEG pseudo-tag
</p></td></tr>
799 <tr valign=
"top" align=
"left">
800 <td width=
"11%"></td>
804 <p>TIFFTAG_JPEGQUALITY
</p></td>
805 <td width=
"11%"></td>
812 <tr valign=
"top" align=
"left">
813 <td width=
"11%"></td>
814 <td width=
"38%"></td>
815 <td width=
"11%"></td>
823 <p>JPEG pseudo-tag
</p></td></tr>
824 <tr valign=
"top" align=
"left">
825 <td width=
"11%"></td>
829 <p>TIFFTAG_JPEGTABLES
</p></td>
830 <td width=
"11%"></td>
837 <tr valign=
"top" align=
"left">
838 <td width=
"11%"></td>
839 <td width=
"38%"></td>
840 <td width=
"11%"></td>
844 <p>uint32*,void**
</p></td>
848 <p>count
& tables
</p></td></tr>
849 <tr valign=
"top" align=
"left">
850 <td width=
"11%"></td>
854 <p>TIFFTAG_JPEGTABLESMODE
</p></td>
855 <td width=
"11%"></td>
862 <tr valign=
"top" align=
"left">
863 <td width=
"11%"></td>
864 <td width=
"38%"></td>
865 <td width=
"11%"></td>
873 <p>JPEG pseudo-tag
</p></td></tr>
874 <tr valign=
"top" align=
"left">
875 <td width=
"11%"></td>
879 <p>TIFFTAG_MAKE
</p></td>
880 <td width=
"11%"></td>
887 <tr valign=
"top" align=
"left">
888 <td width=
"11%"></td>
889 <td width=
"38%"></td>
890 <td width=
"11%"></td>
897 <tr valign=
"top" align=
"left">
898 <td width=
"11%"></td>
902 <p>TIFFTAG_MATTEING
</p></td>
903 <td width=
"11%"></td>
910 <tr valign=
"top" align=
"left">
911 <td width=
"11%"></td>
912 <td width=
"38%"></td>
913 <td width=
"11%"></td>
920 <tr valign=
"top" align=
"left">
921 <td width=
"11%"></td>
925 <p>TIFFTAG_MAXSAMPLEVALUE
</p></td>
926 <td width=
"11%"></td>
933 <tr valign=
"top" align=
"left">
934 <td width=
"11%"></td>
935 <td width=
"38%"></td>
936 <td width=
"11%"></td>
943 <tr valign=
"top" align=
"left">
944 <td width=
"11%"></td>
948 <p>TIFFTAG_MINSAMPLEVALUE
</p></td>
949 <td width=
"11%"></td>
956 <tr valign=
"top" align=
"left">
957 <td width=
"11%"></td>
958 <td width=
"38%"></td>
959 <td width=
"11%"></td>
966 <tr valign=
"top" align=
"left">
967 <td width=
"11%"></td>
971 <p>TIFFTAG_MODEL
</p></td>
972 <td width=
"11%"></td>
979 <tr valign=
"top" align=
"left">
980 <td width=
"11%"></td>
981 <td width=
"38%"></td>
982 <td width=
"11%"></td>
989 <tr valign=
"top" align=
"left">
990 <td width=
"11%"></td>
994 <p>TIFFTAG_ORIENTATION
</p></td>
995 <td width=
"11%"></td>
1002 <tr valign=
"top" align=
"left">
1003 <td width=
"11%"></td>
1004 <td width=
"38%"></td>
1005 <td width=
"11%"></td>
1012 <tr valign=
"top" align=
"left">
1013 <td width=
"11%"></td>
1017 <p>TIFFTAG_PAGENAME
</p></td>
1018 <td width=
"11%"></td>
1025 <tr valign=
"top" align=
"left">
1026 <td width=
"11%"></td>
1027 <td width=
"38%"></td>
1028 <td width=
"11%"></td>
1035 <tr valign=
"top" align=
"left">
1036 <td width=
"11%"></td>
1040 <p>TIFFTAG_PAGENUMBER
</p></td>
1041 <td width=
"11%"></td>
1048 <tr valign=
"top" align=
"left">
1049 <td width=
"11%"></td>
1050 <td width=
"38%"></td>
1051 <td width=
"11%"></td>
1058 <tr valign=
"top" align=
"left">
1059 <td width=
"11%"></td>
1063 <p>TIFFTAG_PHOTOMETRIC
</p></td>
1064 <td width=
"11%"></td>
1071 <tr valign=
"top" align=
"left">
1072 <td width=
"11%"></td>
1073 <td width=
"38%"></td>
1074 <td width=
"11%"></td>
1081 <tr valign=
"top" align=
"left">
1082 <td width=
"11%"></td>
1086 <p>TIFFTAG_PHOTOSHOP
</p></td>
1087 <td width=
"11%"></td>
1094 <tr valign=
"top" align=
"left">
1095 <td width=
"11%"></td>
1096 <td width=
"38%"></td>
1097 <td width=
"11%"></td>
1101 <p>uint32*,void**
</p></td>
1105 <p>count, data
</p></td></tr>
1106 <tr valign=
"top" align=
"left">
1107 <td width=
"11%"></td>
1111 <p>TIFFTAG_PLANARCONFIG
</p></td>
1112 <td width=
"11%"></td>
1119 <tr valign=
"top" align=
"left">
1120 <td width=
"11%"></td>
1121 <td width=
"38%"></td>
1122 <td width=
"11%"></td>
1129 <tr valign=
"top" align=
"left">
1130 <td width=
"11%"></td>
1134 <p>TIFFTAG_PREDICTOR
</p></td>
1135 <td width=
"11%"></td>
1142 <tr valign=
"top" align=
"left">
1143 <td width=
"11%"></td>
1144 <td width=
"38%"></td>
1145 <td width=
"11%"></td>
1152 <tr valign=
"top" align=
"left">
1153 <td width=
"11%"></td>
1157 <p>TIFFTAG_PRIMARYCHROMATICITIES
</p></td>
1158 <td width=
"11%"></td>
1165 <tr valign=
"top" align=
"left">
1166 <td width=
"11%"></td>
1167 <td width=
"38%"></td>
1168 <td width=
"11%"></td>
1176 <p>6-entry array
</p></td></tr>
1177 <tr valign=
"top" align=
"left">
1178 <td width=
"11%"></td>
1182 <p>TIFFTAG_REFERENCEBLACKWHITE
</p></td>
1183 <td width=
"11%"></td>
1190 <tr valign=
"top" align=
"left">
1191 <td width=
"11%"></td>
1192 <td width=
"38%"></td>
1193 <td width=
"11%"></td>
1201 <p>6-entry array
</p></td></tr>
1202 <tr valign=
"top" align=
"left">
1203 <td width=
"11%"></td>
1207 <p>TIFFTAG_RESOLUTIONUNIT
</p></td>
1208 <td width=
"11%"></td>
1215 <tr valign=
"top" align=
"left">
1216 <td width=
"11%"></td>
1217 <td width=
"38%"></td>
1218 <td width=
"11%"></td>
1225 <tr valign=
"top" align=
"left">
1226 <td width=
"11%"></td>
1230 <p>TIFFTAG_RICHTIFFIPTC
</p></td>
1231 <td width=
"11%"></td>
1238 <tr valign=
"top" align=
"left">
1239 <td width=
"11%"></td>
1240 <td width=
"38%"></td>
1241 <td width=
"11%"></td>
1245 <p>uint32*,void**
</p></td>
1249 <p>count, data
</p></td></tr>
1250 <tr valign=
"top" align=
"left">
1251 <td width=
"11%"></td>
1255 <p>TIFFTAG_ROWSPERSTRIP
</p></td>
1256 <td width=
"11%"></td>
1263 <tr valign=
"top" align=
"left">
1264 <td width=
"11%"></td>
1265 <td width=
"38%"></td>
1266 <td width=
"11%"></td>
1273 <tr valign=
"top" align=
"left">
1274 <td width=
"11%"></td>
1278 <p>TIFFTAG_SAMPLEFORMAT
</p></td>
1279 <td width=
"11%"></td>
1286 <tr valign=
"top" align=
"left">
1287 <td width=
"11%"></td>
1288 <td width=
"38%"></td>
1289 <td width=
"11%"></td>
1296 <tr valign=
"top" align=
"left">
1297 <td width=
"11%"></td>
1301 <p>TIFFTAG_SAMPLESPERPIXEL
</p></td>
1302 <td width=
"11%"></td>
1309 <tr valign=
"top" align=
"left">
1310 <td width=
"11%"></td>
1311 <td width=
"38%"></td>
1312 <td width=
"11%"></td>
1319 <tr valign=
"top" align=
"left">
1320 <td width=
"11%"></td>
1324 <p>TIFFTAG_SMAXSAMPLEVALUE
</p></td>
1325 <td width=
"11%"></td>
1332 <tr valign=
"top" align=
"left">
1333 <td width=
"11%"></td>
1334 <td width=
"38%"></td>
1335 <td width=
"11%"></td>
1342 <tr valign=
"top" align=
"left">
1343 <td width=
"11%"></td>
1347 <p>TIFFTAG_SMINSAMPLEVALUE
</p></td>
1348 <td width=
"11%"></td>
1355 <tr valign=
"top" align=
"left">
1356 <td width=
"11%"></td>
1357 <td width=
"38%"></td>
1358 <td width=
"11%"></td>
1365 <tr valign=
"top" align=
"left">
1366 <td width=
"11%"></td>
1370 <p>TIFFTAG_SOFTWARE
</p></td>
1371 <td width=
"11%"></td>
1378 <tr valign=
"top" align=
"left">
1379 <td width=
"11%"></td>
1380 <td width=
"38%"></td>
1381 <td width=
"11%"></td>
1388 <tr valign=
"top" align=
"left">
1389 <td width=
"11%"></td>
1393 <p>TIFFTAG_STONITS
</p></td>
1394 <td width=
"11%"></td>
1401 <tr valign=
"top" align=
"left">
1402 <td width=
"11%"></td>
1403 <td width=
"38%"></td>
1404 <td width=
"11%"></td>
1408 <p>double**
</p></td>
1411 <tr valign=
"top" align=
"left">
1412 <td width=
"11%"></td>
1416 <p>TIFFTAG_STRIPBYTECOUNTS
</p></td>
1417 <td width=
"11%"></td>
1424 <tr valign=
"top" align=
"left">
1425 <td width=
"11%"></td>
1426 <td width=
"38%"></td>
1427 <td width=
"11%"></td>
1431 <p>uint32**
</p></td>
1434 <tr valign=
"top" align=
"left">
1435 <td width=
"11%"></td>
1439 <p>TIFFTAG_STRIPOFFSETS
</p></td>
1440 <td width=
"11%"></td>
1447 <tr valign=
"top" align=
"left">
1448 <td width=
"11%"></td>
1449 <td width=
"38%"></td>
1450 <td width=
"11%"></td>
1454 <p>uint32**
</p></td>
1457 <tr valign=
"top" align=
"left">
1458 <td width=
"11%"></td>
1462 <p>TIFFTAG_SUBFILETYPE
</p></td>
1463 <td width=
"11%"></td>
1470 <tr valign=
"top" align=
"left">
1471 <td width=
"11%"></td>
1472 <td width=
"38%"></td>
1473 <td width=
"11%"></td>
1480 <tr valign=
"top" align=
"left">
1481 <td width=
"11%"></td>
1485 <p>TIFFTAG_SUBIFD
</p></td>
1486 <td width=
"11%"></td>
1493 <tr valign=
"top" align=
"left">
1494 <td width=
"11%"></td>
1495 <td width=
"38%"></td>
1496 <td width=
"11%"></td>
1500 <p>uint16*,uint32**
</p></td>
1504 <p>count
& offsets array
</p></td></tr>
1505 <tr valign=
"top" align=
"left">
1506 <td width=
"11%"></td>
1510 <p>TIFFTAG_TARGETPRINTER
</p></td>
1511 <td width=
"11%"></td>
1518 <tr valign=
"top" align=
"left">
1519 <td width=
"11%"></td>
1520 <td width=
"38%"></td>
1521 <td width=
"11%"></td>
1528 <tr valign=
"top" align=
"left">
1529 <td width=
"11%"></td>
1533 <p>TIFFTAG_THRESHHOLDING
</p></td>
1534 <td width=
"11%"></td>
1541 <tr valign=
"top" align=
"left">
1542 <td width=
"11%"></td>
1543 <td width=
"38%"></td>
1544 <td width=
"11%"></td>
1551 <tr valign=
"top" align=
"left">
1552 <td width=
"11%"></td>
1556 <p>TIFFTAG_TILEBYTECOUNTS
</p></td>
1557 <td width=
"11%"></td>
1564 <tr valign=
"top" align=
"left">
1565 <td width=
"11%"></td>
1566 <td width=
"38%"></td>
1567 <td width=
"11%"></td>
1571 <p>uint32**
</p></td>
1574 <tr valign=
"top" align=
"left">
1575 <td width=
"11%"></td>
1579 <p>TIFFTAG_TILEDEPTH
</p></td>
1580 <td width=
"11%"></td>
1587 <tr valign=
"top" align=
"left">
1588 <td width=
"11%"></td>
1589 <td width=
"38%"></td>
1590 <td width=
"11%"></td>
1597 <tr valign=
"top" align=
"left">
1598 <td width=
"11%"></td>
1602 <p>TIFFTAG_TILELENGTH
</p></td>
1603 <td width=
"11%"></td>
1610 <tr valign=
"top" align=
"left">
1611 <td width=
"11%"></td>
1612 <td width=
"38%"></td>
1613 <td width=
"11%"></td>
1620 <tr valign=
"top" align=
"left">
1621 <td width=
"11%"></td>
1625 <p>TIFFTAG_TILEOFFSETS
</p></td>
1626 <td width=
"11%"></td>
1633 <tr valign=
"top" align=
"left">
1634 <td width=
"11%"></td>
1635 <td width=
"38%"></td>
1636 <td width=
"11%"></td>
1640 <p>uint32**
</p></td>
1643 <tr valign=
"top" align=
"left">
1644 <td width=
"11%"></td>
1648 <p>TIFFTAG_TILEWIDTH
</p></td>
1649 <td width=
"11%"></td>
1656 <tr valign=
"top" align=
"left">
1657 <td width=
"11%"></td>
1658 <td width=
"38%"></td>
1659 <td width=
"11%"></td>
1666 <tr valign=
"top" align=
"left">
1667 <td width=
"11%"></td>
1671 <p>TIFFTAG_TRANSFERFUNCTION
</p></td>
1672 <td width=
"11%"></td>
1676 <p>1 or
3†</p></td>
1680 <p>uint16**
1<<BitsPerSample entry arrays
</p></td></tr>
1681 <tr valign=
"top" align=
"left">
1682 <td width=
"11%"></td>
1686 <p>TIFFTAG_WHITEPOINT
</p></td>
1687 <td width=
"11%"></td>
1694 <tr valign=
"top" align=
"left">
1695 <td width=
"11%"></td>
1696 <td width=
"38%"></td>
1697 <td width=
"11%"></td>
1705 <p>2-entry array
</p></td></tr>
1706 <tr valign=
"top" align=
"left">
1707 <td width=
"11%"></td>
1711 <p>TIFFTAG_XMLPACKET
</p></td>
1712 <td width=
"11%"></td>
1719 <tr valign=
"top" align=
"left">
1720 <td width=
"11%"></td>
1721 <td width=
"38%"></td>
1722 <td width=
"11%"></td>
1726 <p>uint32*,void**
</p></td>
1730 <p>count, data
</p></td></tr>
1731 <tr valign=
"top" align=
"left">
1732 <td width=
"11%"></td>
1736 <p>TIFFTAG_XPOSITION
</p></td>
1737 <td width=
"11%"></td>
1744 <tr valign=
"top" align=
"left">
1745 <td width=
"11%"></td>
1746 <td width=
"38%"></td>
1747 <td width=
"11%"></td>
1754 <tr valign=
"top" align=
"left">
1755 <td width=
"11%"></td>
1759 <p>TIFFTAG_XRESOLUTION
</p></td>
1760 <td width=
"11%"></td>
1767 <tr valign=
"top" align=
"left">
1768 <td width=
"11%"></td>
1769 <td width=
"38%"></td>
1770 <td width=
"11%"></td>
1777 <tr valign=
"top" align=
"left">
1778 <td width=
"11%"></td>
1782 <p>TIFFTAG_YCBCRCOEFFICIENTS
</p></td>
1783 <td width=
"11%"></td>
1790 <tr valign=
"top" align=
"left">
1791 <td width=
"11%"></td>
1792 <td width=
"38%"></td>
1793 <td width=
"11%"></td>
1801 <p>3-entry array
</p></td></tr>
1802 <tr valign=
"top" align=
"left">
1803 <td width=
"11%"></td>
1807 <p>TIFFTAG_YCBCRPOSITIONING
</p></td>
1808 <td width=
"11%"></td>
1815 <tr valign=
"top" align=
"left">
1816 <td width=
"11%"></td>
1817 <td width=
"38%"></td>
1818 <td width=
"11%"></td>
1825 <tr valign=
"top" align=
"left">
1826 <td width=
"11%"></td>
1830 <p>TIFFTAG_YCBCRSUBSAMPLING
</p></td>
1831 <td width=
"11%"></td>
1838 <tr valign=
"top" align=
"left">
1839 <td width=
"11%"></td>
1840 <td width=
"38%"></td>
1841 <td width=
"11%"></td>
1848 <tr valign=
"top" align=
"left">
1849 <td width=
"11%"></td>
1853 <p>TIFFTAG_YPOSITION
</p></td>
1854 <td width=
"11%"></td>
1861 <tr valign=
"top" align=
"left">
1862 <td width=
"11%"></td>
1863 <td width=
"38%"></td>
1864 <td width=
"11%"></td>
1871 <tr valign=
"top" align=
"left">
1872 <td width=
"11%"></td>
1876 <p>TIFFTAG_YRESOLUTION
</p></td>
1877 <td width=
"11%"></td>
1884 <tr valign=
"top" align=
"left">
1885 <td width=
"11%"></td>
1886 <td width=
"38%"></td>
1887 <td width=
"11%"></td>
1891 <p>float*
‡</p></td>
1896 <p style=
"margin-left:11%;">† If
1897 <i>SamplesPerPixel
</i> is one, then a single array is
1898 returned; otherwise three arrays are returned.
<br>
1899 ‡ The contents of this field are quite complex. See
1900 <i>The ICC Profile Format Specification
</i>, Annex B
.3
1901 "Embedding ICC Profiles in TIFF Files
" (available
1902 at http://www.color.org) for an explanation.
</p>
1904 <h2>AUTOREGISTERED TAGS
1905 <a name=
"AUTOREGISTERED TAGS"></a>
1909 <p style=
"margin-left:11%; margin-top: 1em">If you
1910 can
’t find the tag in the table above that means this
1911 is unsupported tag. But you still be able to read it
’s
1912 value if you know the data type of that tag. For example, if
1913 you want to read the LONG value from the tag
33424 and ASCII
1914 string from the tag
36867 you can use the following
1917 <p style=
"margin-left:22%; margin-top: 1em">uint16 count;
1922 <p style=
"margin-left:22%; margin-top: 1em">TIFFGetField(tiff,
1923 33424,
&count,
&data);
<br>
1924 printf(
"Tag %d: %d, count %d0,
33424, *(uint32 *)data,
1926 TIFFGetField(tiff,
36867,
&count,
&data);
<br>
1927 printf(
"Tag %d: %s, count %d0,
36867, (char *)data,
1930 <p style=
"margin-left:11%; margin-top: 1em">is not
1931 supported by
<b>libtiff(
3TIFF),
</b> library
</p>
1934 <a name=
"RETURN VALUES"></a>
1938 <p style=
"margin-left:11%; margin-top: 1em">1 is returned
1939 if the tag is defined in the current directory; otherwise a
1943 <a name=
"DIAGNOSTICS"></a>
1947 <p style=
"margin-left:11%; margin-top: 1em">All error
1948 messages are directed to the
<b>TIFFError
</b>(
3TIFF)
1951 <p style=
"margin-left:11%; margin-top: 1em"><b>Unknown
1952 field, tag
0x%x
</b>. An unknown tag was supplied.
</p>
1955 <a name=
"SEE ALSO"></a>
1960 <p style=
"margin-left:11%; margin-top: 1em"><b>TIFFOpen
</b>(
3TIFF),
1961 <b>TIFFSetField
</b>(
3TIFF),
<b>TIFFSetDirectory
</b>(
3TIFF),
1962 <b>TIFFReadDirectory
</b>(
3TIFF),
1963 <b>TIFFWriteDirectory
</b>(
3TIFF)
<b>libtiff
</b>(
3TIFF),
</p>
1965 <p style=
"margin-left:11%; margin-top: 1em">Libtiff library
1966 home page:
<b>http://www.remotesensing.org/libtiff/
</b></p>