1 <!-- Creator     : groff version 1.21 --> 
   2 <!-- CreationDate: Sun Jul 29 12:12:01 2012 --> 
   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>TIFFFieldWriteCount
</title> 
  21 <h1 align=
"center">TIFFFieldWriteCount
</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=
"#SEE ALSO">SEE ALSO
</a><br> 
  38 <p style=
"margin-left:11%; margin-top: 1em">TIFFFieldWriteCount
 
  39 − Get number of values to be written to field
</p> 
  42 <a name=
"SYNOPSIS"></a> 
  46 <p style=
"margin-left:11%; margin-top: 1em"><b>#include
 
  47 <tiffio.h
></b></p> 
  49 <p style=
"margin-left:11%; margin-top: 1em"><b>int
 
  50 TIFFFieldWriteCount(const TIFFField*
</b> 
  51 <i>fip
</i><b>)
</b></p> 
  54 <a name=
"DESCRIPTION"></a> 
  59 <p style=
"margin-left:11%; margin-top: 1em"><b>TIFFFieldWriteCount
</b> 
  60 returns the number of values to be written into the
 
  61 specified TIFF field; that is, the number of arguments that
 
  62 should be supplied to 
<b>TIFFSetField
</b>. For most field
 
  63 types this is a small positive integer, typically 
1 or 
2,
 
  64 but there are some special values: 
<b><br> 
  65 TIFF_VARIABLE
</b> indicates that a variable number of values
 
  66 is possible; then, a 
<b>uint16
</b> <i>count
</i> argument and
 
  67 a pointer 
<i>data
</i> argument must be supplied to
 
  68 <b>TIFFSetField
</b>. 
<b><br> 
  69 TIFF_VARIABLE2
</b> is the same as 
<b>TIFF_VARIABLE
</b> 
  70 except that the 
<i>count
</i> argument must have type
 
  71 <b>uint32
</b>. (On most modern machines, this makes no
 
  72 practical difference, and the 
<i>count
</i> argument can
 
  73 simply be an 
<b>int
</b> in either case.) 
<b><br> 
  74 TIFF_SPP
</b> indicates that the number of arguments must be
 
  75 equal to the image
’s number of samples per pixel.
</p> 
  77 <p style=
"margin-left:11%; margin-top: 1em"><i>fip
</i> is a
 
  78 field information pointer previously returned by
 
  79 <b>TIFFFindField
</b>, 
<b>TIFFFieldWithTag
</b>, or
 
  80 <b>TIFFFieldWithName
</b>.
</p> 
  82 <p style=
"margin-left:11%; margin-top: 1em">For most field
 
  83 types, 
<b>TIFFFieldWriteCount
</b> returns the same value as
 
  84 <b>TIFFFieldReadCount
</b>, but there are some
 
  88 <a name=
"RETURN VALUES"></a> 
  93 <p style=
"margin-left:11%; margin-top: 1em"><b>TIFFFieldWriteCount
</b> 
  94 returns an integer.
</p> 
  97 <a name=
"SEE ALSO"></a> 
 102 <p style=
"margin-left:11%; margin-top: 1em"><b>libtiff
</b>(
3TIFF),
</p> 
 104 <p style=
"margin-left:11%; margin-top: 1em">Libtiff library
 
 105 home page: 
<b>http://www.remotesensing.org/libtiff/
</b></p>