<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY synp-tt "SYNOPSIS">
<!ENTITY cmd "TIFFWriteTile">
%commonents;
%gnomecommonents;
%booktitles;
<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
]>
<?Pub UDT _bookmark _target>
<?Pub Inc>
<?PubInc>
<refentry id="TIFFWriteTile-3tiff">
<!-- %Z%%M% %I% %E% SMI; -->
<refmeta><refentrytitle>TIFFWriteTile</refentrytitle><manvolnum>3tiff</manvolnum>
<refmiscinfo class="date">05 Apr 2004</refmiscinfo>
<refmiscinfo class="sectdesc">&man3;</refmiscinfo>
<refmiscinfo class="software">&release;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
</refmeta>
<indexterm><primary>TIFFWriteTile</primary></indexterm><indexterm><primary>
encode and write a tile of data to an open TIFF file</primary></indexterm>
<refnamediv id="TIFFWriteTile-3tiff-name"><refname>TIFFWriteTile</refname>
<refpurpose>encode and write a tile of data to an open TIFF file</refpurpose>
</refnamediv>
<refsect1 id="TIFFWriteTile-3tiff-synp"><title>&synp-tt;</title>
<programlisting>#include <tiffio.h>
tsize_t TIFFWriteTile(TIFF* tif, tdata_t buf, uint32 x,
uint32 y, uint32 z, tsample_t sample)</programlisting>
</refsect1>
<refsect1 id="TIFFWriteTile-3tiff-desc"><title>&desc-tt;</title>
<para>Write the data for the tile containing the specified coordinates. The
data in <literal>buf</literal> is potentially compressed, and written to the
indicated file, normally appended to the end of the file. The buffer must
contain an entire tile of data. Applications should call the routine <literal>
TIFFTileSize</literal> to find out the size in bytes of a tile buffer. The <literal>
x</literal> and <literal>y</literal> parameters are always used by <literal>
TIFFWriteTile</literal>. The <literal>z</literal> parameter is used if the
image is deeper than 1 slice (ImageDepth>1). The <literal>sample</literal>
parameter is used only if data is organized in separate planes (PlanarConfiguration=2).
</para>
<para>All error messages are directed to the <literal>TIFFError(3tiff)</literal>
routine.</para>
</refsect1>
<refsect1 id="TIFFWriteTile-3tiff-rtrn"><title>&rtrn-tt;</title>
<para>Returns —1 if it detects an error. Otherwise, returns the number
of bytes in the tile.</para>
</refsect1>
<refsect1 id="TIFFWriteTile-3tiff-attr"><title>&attr-tt;</title>
<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
for descriptions of the following attributes:</para>
<informaltable frame="all">
<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
<colspec colname="COLSPEC1" colwidth="1*">
<thead>
<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
valign="middle">ATTRIBUTE VALUE</entry></row>
</thead>
<tbody>
</row>
<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
colname="COLSPEC1"><para>Uncommitted</para></entry></row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="TIFFWriteTile-3tiff-also"><title>&also-tt;</title>
<!--Reference to another man page-->
<!--Reference to a Help manual-->
<!--Reference to a book.-->
<para><citerefentry><refentrytitle>libtiff</refentrytitle><manvolnum>3</manvolnum>
</citerefentry>, <citerefentry><refentrytitle>TIFFCheckTile</refentrytitle>
<manvolnum>3tiff</manvolnum></citerefentry>, <citerefentry><refentrytitle>
TIFFComputeTile</refentrytitle><manvolnum>3tiff</manvolnum></citerefentry>, <citerefentry>
<refentrytitle>TIFFOpen</refentrytitle><manvolnum>3tiff</manvolnum></citerefentry>, <citerefentry>
<refentrytitle>TIFFReadTile</refentrytitle><manvolnum>3tiff</manvolnum></citerefentry>, <citerefentry>
<refentrytitle>TIFFWriteScanline<?Pub Caret></refentrytitle><manvolnum>3tiff
</manvolnum></citerefentry>, <citerefentry><refentrytitle>TIFFWriteEncodedTile
</refentrytitle><manvolnum>3tiff</manvolnum></citerefentry>, <citerefentry>
<refentrytitle>TIFFWriteRawTile</refentrytitle><manvolnum>3tiff</manvolnum>
</citerefentry></para>
</refsect1>
<refsect1 id="TIFFWriteTile-3tiff-note"><title>¬e-tt;</title>
<para>This man page was originally written by Sam Leffler. Updated by Breda
McColgan, Sun Microsystems Inc., 2004.</para>
</refsect1>
</refentry>
<?Pub *0000004689>