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 suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A<
refentry id="TIFFReadTile-3tiff">
10139N/A<
refmeta><
refentrytitle>TIFFReadTile</
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>TIFFReadTile</
primary></
indexterm><
indexterm><
primary>
10139N/Aread and decode a tile of data from an open TIFF file</
primary></
indexterm>
10139N/A<
refnamediv id="TIFFReadTile-3tiff-name"><
refname>TIFFReadTile</
refname><
refpurpose>
10139N/Aread and decode a tile of data from an open TIFF file</
refpurpose></
refnamediv>
10139N/A<
refsect1 id="TIFFReadTile-3tiff-synp"><
title>&synp-tt;</
title>
10139N/Atsize_t TIFFReadTile(TIFF* tif, tdata_t buf, uint32 x,
10139N/Auint32 y, uint32 z, tsample_t sample)</
programlisting>
10139N/A<
refsect1 id="TIFFReadTile-3tiff-desc"><
title>&desc-tt;</
title>
10139N/A<
para>Return the data for the tile containing the specified coordinates. The
10139N/Adata is returned decompressed and in the native byte- and bit-ordering, but
10139N/Ais otherwise packed as described below. The buffer must be large enough to
10139N/Ahold an entire tile of data. Applications should call the routine <
literal>
10139N/ATIFFTileSize</
literal> to find out the size in bytes of a tile buffer. The <
literal>
10139N/Ax</
literal> and <
literal>y</
literal> parameters are always used by <
literal>
10139N/ATIFFReadTile</
literal>. The <
literal>z</
literal> parameter is used if the
10139N/Aimage is deeper than 1 slice (ImageDepth>1). The <
literal>sample</
literal>
10139N/Aparameter is used only if data is organized in separate planes (PlanarConfiguration=2).
10139N/A<
para>The library attempts to hide bit- and byte-ordering differences between
10139N/Athe image and the native machine by converting data to the native machine
10139N/Aorder. Bit reversal is performed if the <
literal>FillOrder</
literal> tag is
10139N/Aopposite to the native machine bit order. 16- and 32-bit samples are automatically
10139N/Abyte-swapped if the file was written with a byte order opposite to the native
10139N/A<
para>All error messages are directed to the <
literal>TIFFError(3tiff)</
literal>
10139N/A<
refsect1 id="TIFFReadTile-3tiff-rtrn"><
title>&rtrn-tt;</
title>
10139N/A<
para>Returns -1 if an error was encountered. Otherwise, returns the number
10139N/Aof bytes <?
Pub Caret>in the decoded tile. </
para>
10139N/A<
refsect1 id="TIFFReadTile-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="TIFFReadTile-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>TIFFCheckTile</
refentrytitle>
10139N/A<
manvolnum>3tiff</
manvolnum></
citerefentry>, <
citerefentry><
refentrytitle>
10139N/ATIFFComputeTile</
refentrytitle><
manvolnum>3tiff</
manvolnum></
citerefentry>, <
citerefentry>
10139N/A<
refentrytitle>TIFFOpen</
refentrytitle><
manvolnum>3tiff</
manvolnum></
citerefentry>, <
citerefentry>
10139N/A<
refentrytitle>TIFFReadEncodedTile</
refentrytitle><
manvolnum>3tiff</
manvolnum>
10139N/A</
citerefentry>, <
citerefentry><
refentrytitle>TIFFReadRawTile</
refentrytitle>
10139N/A<
manvolnum>3tiff</
manvolnum></
citerefentry></
para>
10139N/A<
refsect1 id="TIFFReadTile-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>