1 <!-- Creator : groff version 1.18.1 -->
2 <!-- CreationDate: Sat Feb 24 18:37:18 2007 -->
5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org">
6 <meta name=
"Content-Style" content=
"text/css">
7 <title>TIFFWriteTile
</title>
11 <h1 align=center
>TIFFWriteTile
</h1>
12 <a href=
"#NAME">NAME
</a><br>
13 <a href=
"#SYNOPSIS">SYNOPSIS
</a><br>
14 <a href=
"#DESCRIPTION">DESCRIPTION
</a><br>
15 <a href=
"#RETURN VALUES">RETURN VALUES
</a><br>
16 <a href=
"#DIAGNOSTICS">DIAGNOSTICS
</a><br>
17 <a href=
"#SEE ALSO">SEE ALSO
</a><br>
23 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
24 cols=
"2" cellspacing=
"0" cellpadding=
"0">
25 <tr valign=
"top" align=
"left">
28 <p>TIFFWriteTile
− encode and write a tile of data to
29 an open
<small>TIFF
</small> file
</p>
32 <a name=
"SYNOPSIS"></a>
35 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
36 cols=
"2" cellspacing=
"0" cellpadding=
"0">
37 <tr valign=
"top" align=
"left">
40 <p><b>#include
<tiffio.h
></b></p>
42 <p><b>tsize_t TIFFWriteTile(TIFF *
</b><i>tif
</i><b>,
43 tdata_t
</b> <i>buf
</i><b>, uint32
</b> <i>x
</i><b>,
44 uint32
</b> <i>y
</i><b>, uint32
</b> <i>z
</i><b>,
45 tsample_t
</b> <i>sample
</i><b>)
</b></p>
48 <a name=
"DESCRIPTION"></a>
51 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
52 cols=
"2" cellspacing=
"0" cellpadding=
"0">
53 <tr valign=
"top" align=
"left">
56 <p>Write the data for the tile
<i>containing
</i> the
57 specified coordinates. The data in
<i>buf
</i> are is
58 (potentially) compressed, and written to the indicated file,
59 normally being appended to the end of the file. The buffer
60 must be contain an entire tile of data. Applications should
61 call the routine
<i>TIFFTileSize
</i> to find out the size
62 (in bytes) of a tile buffer. The
<i>x
</i> and
<i>y
</i>
63 parameters are always used by
<i>TIFFWriteTile
</i>. The
64 <i>z
</i> parameter is used if the image is deeper than
1
65 slice (
<i>ImageDepth
</i>>1). The
<i>sample
</i> parameter
66 is used only if data are organized in separate planes
67 (
<i>PlanarConfiguration
</i>=
2).
</p>
70 <a name=
"RETURN VALUES"></a>
71 <h2>RETURN VALUES
</h2>
73 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
74 cols=
"2" cellspacing=
"0" cellpadding=
"0">
75 <tr valign=
"top" align=
"left">
78 <p><i>TIFFWriteTile
</i> returns
−1 if it detects an
79 error; otherwise the number of bytes in the tile is
83 <a name=
"DIAGNOSTICS"></a>
86 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
87 cols=
"2" cellspacing=
"0" cellpadding=
"0">
88 <tr valign=
"top" align=
"left">
91 <p>All error messages are directed to the
92 <b>TIFFError
</b>(
3TIFF) routine.
</p>
95 <a name=
"SEE ALSO"></a>
98 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
99 cols=
"2" cellspacing=
"0" cellpadding=
"0">
100 <tr valign=
"top" align=
"left">
103 <p><b>TIFFCheckTile
</b>(
3TIFF),
104 <b>TIFFComputeTile
</b>(
3TIFF),
<b>TIFFOpen
</b>(
3TIFF),
105 <b>TIFFReadTile
</b>(
3TIFF),
<b>TIFFWriteScanline
</b>(
3TIFF),
106 <b>TIFFWriteEncodedTile
</b>(
3TIFF),
107 <b>TIFFWriteRawTile
</b>(
3TIFF),
<b>libtiff
</b>(
3TIFF)
</p>
109 <p>Libtiff library home page:
110 <b>http://www.remotesensing.org/libtiff/
</b></p>