'\" te .TH TIFFSetField 3tiff "05 Apr 2004" "" "" .SH "NAME" TIFFSetField, TIFFVSetField \- set the value(s) of a tag in a TIFF file open for writing .SH "SYNOPSIS" .sp .nf \f(CW#include int TIFFSetField(TIFF* tif, ttag_t tag, \&.\&.\&.) #include int TIFFVSetField(TIFF* tif, ttag_t tag, va_list ap)\fR .fi .sp .SH "" .PP \fBTIFFSetField\fR sets the value of a field or pseudo-tag in the current directory associated with 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\&. .PP To set the value of a field, the file must have been previously opened for writing with \fBTIFFOpen(3tiff)\fR\&. Pseudo-tags can be set whether the file was opened for reading or writing\&. .PP The field is identified by \fBtag\fR, one of the values defined in the include file \fBtiff\&.h\fR (see also the table below)\&. The actual value is specified using a variable argument list as prescribed by the \fBstdarg(3)\fR interface, or, on some machines, the \fBvarargs(3)\fR interface\&. .SH "EXTENDED DESCRIPTION" .PP \fBTIFFVSetField\fR is functionally equivalent to \fBTIFFSetField\fR except that \fBTIFFVSetField\fR takes a pointer to a variable argument list\&. \fBTIFFVSetField\fR is useful for writing routines that are layered on top of the functionality provided by \fBTIFFSetField\fR\&. .PP The tags understood by \fBlibtiff\fR, the number of parameter values, and the expected types for the parameter values are shown below\&. The data types are as follows: .sp .ne 2 .mk \fB\fBchar*\fR\fR .sp .6 .in +4 Null-terminated string, corresponds to the ASCII data type .sp .sp 1 .in -4 .sp .ne 2 .mk \fB\fBuint16\fR\fR .sp .6 .in +4 Unsigned 16-bit value .sp .sp 1 .in -4 .sp .ne 2 .mk \fB\fBuint32\fR\fR .sp .6 .in +4 Unsigned 32-bit value .sp .sp 1 .in -4 .sp .ne 2 .mk \fB\fBuint16*\fR\fR .sp .6 .in +4 Array of unsigned 16-bit values .sp .sp 1 .in -4 .sp .ne 2 .mk \fB\fBvoid*\fR\fR .sp .6 .in +4 Array of data values of unspecified type .sp .sp 1 .in -4 .PP Consult the TIFF specification for information on the meaning of each tag\&. .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\(em \fBTIFFTAG_CLEANFAXDATA\fR1\fBuint16\fR \fBTIFFTAG_COLORMAP\fR3\fBuint16*\fRT{ 1<