10139N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
10139N/A<!
ENTITY exde-
tt "EXTENDED DESCRIPTION">
10139N/A<!
ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A<
refentry id="TIFFSetField-3tiff">
10139N/A<
refmeta><
refentrytitle>TIFFSetField</
refentrytitle><
manvolnum>3tiff</
manvolnum>
10139N/A<
refmiscinfo class="date">05 Apr 2004</
refmiscinfo>
10139N/A<
refmiscinfo class="sectdesc">&man3;</
refmiscinfo>
10139N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
10139N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
10139N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
10139N/A<
indexterm><
primary>TIFFSetField</
primary></
indexterm><
indexterm><
primary>
10139N/Aset the value(s) of a tag in a TIFF file open for writing</
primary></
indexterm>
10139N/A<
refnamediv id="TIFFSetField-3tiff-name"><
refname>TIFFSetField</
refname><
refname>
10139N/ATIFFVSetField</
refname><
refpurpose>set the value(s) of a tag in a TIFF file
10139N/Aopen for writing</
refpurpose></
refnamediv>
10139N/A<
refsect1 id="TIFFSetField-3tiff-synp"><
title>&synp-tt;</
title>
10139N/Aint TIFFSetField(TIFF* tif, ttag_t tag, ...)
10139N/Aint TIFFVSetField(TIFF* tif, ttag_t tag, va_list ap)</
programlisting>
10139N/A<
refsect1 id="TIFFSetField-3tiff-desc"><
title>&desc-tt;</
title>
10139N/A<
para><
literal>TIFFSetField</
literal> sets the value of a field or pseudo-tag
10139N/Ain the current directory associated with the open TIFF file. A pseudo-tag
10139N/Ais a parameter that is used to control the operation of the TIFF library but
10139N/Awhose value is not read or written to the underlying file.</
para>
10139N/A<
para>To set the value of a field, the file must have been previously opened
10139N/Afor writing with <
literal>TIFFOpen(3tiff)</
literal>. Pseudo-tags can be set whether
10139N/Athe file was opened for reading or writing.</
para>
10139N/A<
para>The field is identified by <
literal>tag</
literal>, one of the values
10139N/Adefined in the include file <
filename>
tiff.h</
filename> (see also the table
10139N/Abelow). The actual value is specified using a variable argument list as prescribed
10139N/Aby the <
literal>stdarg(3)</
literal> interface, or, on some machines, the <
literal>
10139N/Avarargs(3)</
literal> interface.</
para>
10139N/A<
refsect1 id="TIFFSetField-3tiff-exde"><
title>&exde-tt;</
title>
10139N/A<
para><
literal>TIFFVSetField</
literal> is functionally equivalent to <
literal>
10139N/ATIFFSetField</
literal> except that <
literal>TIFFVSetField</
literal> takes
10139N/Aa pointer to a variable argument list. <
literal>TIFFVSetField</
literal> is
10139N/Auseful for writing routines that are layered on top of the functionality provided
10139N/Aby <
literal>TIFFSetField</
literal>.</
para>
10139N/A<
para>The tags understood by <
literal>libtiff</
literal>, the number of parameter
10139N/Avalues, and the expected types for the parameter values are shown below. The
10139N/Adata types are as follows:</
para>
10139N/A<
variablelist termlength="wholeline">
10139N/A<
varlistentry><
term><
literal>char*</
literal></
term><
listitem><
para>Null-terminated
10139N/Astring, corresponds to the ASCII data type</
para>
10139N/A<
varlistentry><
term><
literal>uint16</
literal></
term><
listitem><
para>Unsigned
10139N/A<
varlistentry><
term><
literal>uint32</
literal></
term><
listitem><
para>Unsigned
10139N/A<
varlistentry><
term><
literal>uint16*</
literal></
term><
listitem><
para>Array
10139N/Aof unsigned 16-bit values</
para>
10139N/A<
varlistentry><
term><
literal>void*</
literal></
term><
listitem><
para>Array of
10139N/Adata values of unspecified type</
para>
10139N/A</
variablelist><
para>Consult the TIFF specification for information on the
10139N/A<
tgroup cols="4" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="25*">
10139N/A<
colspec colname="COLSPEC1" colwidth="25*"><
colspec colname="COLSPEC2" colwidth="25*">
10139N/A<
colspec colname="COLSPEC3" colwidth="25*">
10139N/A<
row rowsep="1"><
entry colsep="1" rowsep="1"><
para>TAG NAME</
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>COUNT</
para></
entry><
entry colsep="1" rowsep="1"><
para>
10139N/ATYPES</
para></
entry><
entry colsep="1" rowsep="1"><
para>NOTES</
para></
entry>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_ARTIST</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_BADFAXLINES</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_BITSPERSAMPLE</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para>—
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_CLEANFAXDATA</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_COLORMAP</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>3</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16*</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para>1<<BitsPerSample
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_COMPRESSION</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para>—
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_CONSECUTIVEBADFAXLINES
10139N/A</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para>1</
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para><
literal>uint32</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para></
para></
entry></
row>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_DATETIME</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_DOCUMENTNAME</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_DOTRANGE</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>2</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_EXTRASAMPLES</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>2</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal>,<
literal>uint16*</
literal></
para></
entry><
entry colsep="1" 10139N/Arowsep="1"><
para>— count and types array</
para></
entry></
row>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_FAXMODE</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Aint</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para>—
G3/
G4 10139N/Acompression pseudo-tag</
para></
entry></
row>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_FAXFILLFUNC</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/ATIFFFaxFillFunc</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colsep="1" rowsep="1"><
para><
literal>TIFFTAG_FILLORDER</
literal></
para></
entry>
10139N/A<
entry colsep="1" rowsep="1"><
para>1</
para></
entry><
entry colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colsep="1" rowsep="1"><
para>—
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_GROUP3OPTIONS
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_GROUP4OPTIONS
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0"><
para><
literal>TIFFTAG_HALFTONEHINTS</
literal></
para></
entry>
10139N/A<
entry colname="COLSPEC1"><
para>2</
para></
entry><
entry colname="COLSPEC2"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_HOSTCOMPUTER
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_IMAGEDEPTH
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_IMAGEDESCRIPTION
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_IMAGELENGTH
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_IMAGEWIDTH
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_INKNAMES
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_INKSET
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0"><
para><
literal>TIFFTAG_JPEGTABLES</
literal></
para></
entry>
10139N/A<
entry colname="COLSPEC1"><
para>2</
para></
entry><
entry colname="COLSPEC2"><
para><
literal>
10139N/Auint32*</
literal>,<
literal>void*</
literal></
para></
entry><
entry colname="COLSPEC3"><
para>
10139N/A— count and tables</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0"><
para><
literal>TIFFTAG_JPEGQUALITY</
literal></
para></
entry>
10139N/A<
entry colname="COLSPEC1"><
para>1</
para></
entry><
entry colname="COLSPEC2"><
para><
literal>
10139N/Aint</
literal></
para></
entry><
entry colname="COLSPEC3"><
para>JPEG pseudo-tag
10139N/A<
row><
entry colname="COLSPEC0"><
para><
literal>TIFFTAG_JPEGCOLORMODE</
literal></
para></
entry>
10139N/A<
entry colname="COLSPEC1"><
para>1</
para></
entry><
entry colname="COLSPEC2"><
para><
literal>
10139N/Aint</
literal></
para></
entry><
entry colname="COLSPEC3"><
para>— JPEG pseudo-tag
10139N/A<
row><
entry colname="COLSPEC0"><
para><
literal>TIFFTAG_JPEGTABLESMODE</
literal></
para></
entry>
10139N/A<
entry colname="COLSPEC1"><
para>1</
para></
entry><
entry colname="COLSPEC2"><
para><
literal>
10139N/Aint</
literal></
para></
entry><
entry colname="COLSPEC3"><
para>— JPEG pseudo-tag
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_MAKE
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_MATTEING
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_MAXSAMPLEVALUE
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_MINSAMPLEVALUE
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_MODEL
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_ORIENTATION
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_PAGENAME
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_PAGENUMBER
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A2</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_PHOTOMETRIC
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_PLANARCONFIG
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_PREDICTOR
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_PRIMARYCHROMACITIES
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Afloat*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A6-entry array</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_REFERENCEBLACKWHITE
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Afloat*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A– 2*SamplesPerPixel array</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_RESOLUTIONUNIT
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_ROWSPERSTRIP
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A— must be greater than 0</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_SAMPLEFORMAT
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_SAMPLESPERPIXEL
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A— value must be <= 4</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_SMAXSAMPLEVALUE
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Adouble</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0"><
para><
literal>TIFFTAG_SMINSAMPLEVALUE</
literal></
para></
entry>
10139N/A<
entry colname="COLSPEC1"><
para>1</
para></
entry><
entry colname="COLSPEC2"><
para><
literal>
10139N/Adouble</
literal></
para></
entry><
entry colname="COLSPEC3"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_SOFTWARE
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_STONITS
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Adouble</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0"><
para><
literal>TIFFTAG_SUBFILETYPE</
literal></
para></
entry>
10139N/A<
entry colname="COLSPEC1"><
para>1</
para></
entry><
entry colname="COLSPEC2"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_SUBIFD
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A2</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal>,<
literal>uint32*</
literal></
para></
entry><
entry colname="COLSPEC3" 10139N/Acolsep="1" rowsep="1"><
para>count and offsets array</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_TARGETPRINTER
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Achar*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_THRESHOLDING
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_TILEDEPTH
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_TILELENGTH
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A— must be a multiple of 8</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_TILEWIDTH
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para><?
Pub Caret1>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A— must be a multiple of 8</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_TRANSFERFUNCTION
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1 or 3=</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A1<<BitsPerSample entry arrays</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_WHITEPOINT
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Afloat*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A2-entry array</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_XPOSITION
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Afloat</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_XRESOLUTION
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Afloat</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_YCBCRCOEFFICIENTS
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Afloat*</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A– 3-entry array</
para></
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_YCBCRPOSITIONING
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_YCBCRSUBSAMPLING
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A2</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint16</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_YPOSITION
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A1</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Afloat</
literal></
para></
entry><
entry colname="COLSPEC3" colsep="1" rowsep="1"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0"><
para><
literal>TIFFTAG_YRESOLUTION</
literal></
para></
entry>
10139N/A<
entry colname="COLSPEC1"><
para>1</
para></
entry><
entry colname="COLSPEC2"><
para><
literal>
10139N/Afloat</
literal></
para></
entry><
entry colname="COLSPEC3"><
para></
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0" colsep="1" rowsep="1"><
para><
literal>TIFFTAG_ICCPROFILE
10139N/A</
literal></
para></
entry><
entry colname="COLSPEC1" colsep="1" rowsep="1"><
para>
10139N/A2</
para></
entry><
entry colname="COLSPEC2" colsep="1" rowsep="1"><
para><
literal>
10139N/Auint32</
literal>,<
literal>void*</
literal></
para></
entry><
entry colname="COLSPEC3" 10139N/Acolsep="1" rowsep="1"><
para>count, profile data+</
para></
entry></
row>
10139N/A<
varlistentry><
term>–</
term><
listitem><
para>Tag may not have its values
10139N/Achanged once data is written.</
para>
10139N/A<
varlistentry><
term>=</
term><
listitem><
para>If <
literal>SamplesPerPixel</
literal>
10139N/Ais 1, then a single array is passed. Otherwise, three arrays should be passed.
10139N/A<
varlistentry><
term>+</
term><
listitem><
para>The contents of this field are
10139N/Aquite complex. See <
citetitle>The ICC Profile Format Specification, Annex
11933N/AB "Embedding ICC Profiles in TIFF Files"</
citetitle>, available at
10139N/A<
refsect2 id="TIFFSetField-3tiff-exde-diags">
10139N/A<
para>All error messages are directed to the <
literal>TIFFError(3tiff)</
literal>
10139N/A<
varlistentry><
term>%s: Cannot modify tag "%s" while writing.</
term><
listitem>
10139N/A<
para>Data has already been written to the file, so the specified tag value
10139N/Acannot be changed. This restriction is applied to all tags that affect the
10139N/A<
varlistentry><
term>%d: Bad value for "%s".</
term><
listitem><
para>An invalid
10139N/Avalue was supplied for the named tag.</
para>
10139N/A<
refsect1 id="TIFFSetField-3tiff-rtrn"><
title>&rtrn-tt;</
title>
10139N/A<
para>1 is returned if the tag is defined in the current directory. Otherwise,
10139N/A<
refsect1 id="TIFFSetField-3tiff-attr"><
title>&attr-tt;</
title>
10139N/A<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
10139N/A<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
10139N/Afor descriptions of the following attributes:</
para>
10139N/A<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
10139N/A<
colspec colname="COLSPEC1" colwidth="1*">
10139N/A<
row><
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry><
entry align="center" 10139N/Avalign="middle">ATTRIBUTE VALUE</
entry></
row>
10139N/A<
row><
entry><
para>Availability</
para></
entry><
entry><
para>SUNWTiff</
para></
entry>
10139N/A<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entry 10139N/Acolname="COLSPEC1"><
para>Evolving</
para></
entry></
row>
10139N/A<
refsect1 id="TIFFSetField-3tiff-also"><
title>&also-tt;</
title>
10139N/A<!--Reference to another man page--> 10139N/A<!--Reference to a Help manual--> 10139N/A<
para><
citerefentry><
refentrytitle>libtiff</
refentrytitle><
manvolnum>3</
manvolnum>
10139N/A</
citerefentry>, <
citerefentry><
refentrytitle>TIFFOpen</
refentrytitle><
manvolnum>
10139N/A3tiff</
manvolnum></
citerefentry>, <
citerefentry><
refentrytitle>TIFFGetField
10139N/A</
refentrytitle><
manvolnum>3tiff</
manvolnum></
citerefentry>, <
citerefentry>
10139N/A<
refentrytitle>TIFFSetDirectory</
refentrytitle><
manvolnum>3tiff</
manvolnum>
10139N/A</
citerefentry>, <
citerefentry><
refentrytitle>TIFFReadDirectory</
refentrytitle>
10139N/A<
manvolnum>3tiff</
manvolnum></
citerefentry>, <
citerefentry><
refentrytitle>
10139N/ATIFFWriteDirectory</
refentrytitle><
manvolnum>3tiff</
manvolnum></
citerefentry></
para>
10139N/A<
refsect1 id="TIFFSetField-3tiff-note"><
title>¬e-tt;</
title>
10139N/A<
para>This man page was originally written by Sam Leffler. Updated by Breda
10139N/AMcColgan, Sun Microsystems Inc., 2004.</
para>