'\" te .TH TIFFGetField 3tiff "05 Apr 2004" "" "" .SH "NAME" TIFFGetField, TIFFVGetField, TIFFGetFieldDefaulted, TIFFVGetFieldDefaulted \- get the value(s) of a tag in an open TIFF file .SH "SYNOPSIS" .sp .nf \f(CW#include int TIFFGetField(TIFF* tif, ttag_t tag, \&.\&.\&.) #include int TIFFVGetField(TIFF* tif, ttag_t tag, va_list ap) int TIFFGetFieldDefaulted(TIFF* tif, ttag_t tag, \&.\&.\&.) int TIFFVGetFieldDefaulted(TIFF* tif, ttag_t tag, va_list ap)\fR .fi .sp .SH "" .PP \fBTIFFGetField\fR returns the value of a tag or pseudo-tag associated with the current directory of the open TIFF file\&. A pseudo-tag is a parameter that is used to control the operation of the TIFF library but whose value is not read or written to the underlying file\&. The file must have been previously opened with \fBTIFFOpen(3tiff)\fR\&. The tag is identified by \fBtag\fR, one of the values defined in the include file \fBtiff\&.h\fR (see also the table below)\&. The type and number of values returned is dependent on the tag being requested\&. The programming interface uses a variable argument list as prescribed by the \fBstdarg(3)\fR interface\&. The returned values should only be interpreted if \fBTIFFGetField\fR returns 1\&. .SH "" .PP \fBTIFFVGetField\fR is functionally equivalent to \fBTIFFGetField\fR except that \fBTIFFVGetField\fR takes a pointer to a variable argument list\&. \fBTIFFVGetField\fR is useful for layering interfaces on top of the functionality provided by \fBTIFFGetField\fR\&. .PP \fBTIFFGetFieldDefaulted\fR and \fBTIFFVGetFieldDefaulted\fR are identical to \fBTIFFGetField\fR and \fBTIFFVGetField\fR, except that if a tag is not defined in the current directory and has a default value, then the default value is returned\&. .PP The tags understood by \fBlibtiff\fR, the number of parameter values, and the types for the returned values are shown below\&. The data types are specified as in C and correspond to the types used to specify tag values to \fBTIFFSetField(3tiff)\fR\&. Remember that \fBTIFFGetField\fR returns parameter values, so all of the listed data types are pointers to storage where values should be returned\&. Consult the TIFF specification for information on the meaning of each tag and their possible values\&. .sp .TS tab() allbox; lw(1.375000i)| lw(1.375000i)| lw(1.375000i)| lw(1.375000i). TAG NAMECOUNTTYPESNOTES \fBTIFFTAG_ARTIST\fR1\fBchar**\fR \fBTIFFTAG_BADFAXLINES\fR1\fBuint32*\fR \fBTIFFTAG_BITSPERSAMPLE\fR1\fBuint16*\fR \fBTIFFTAG_CLEANFAXDATA\fR1\fBuint16*\fR \fBTIFFTAG_COLORMAP\fR3\fBuint16**\fRT{ 1<