roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>TIFFReadTile</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFReadTile

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
NOTES
roentgen b75cab
RETURN VALUES
roentgen b75cab
DIAGNOSTICS
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFReadTile − read and decode a tile of data from

roentgen b75cab
an open <small>TIFF</small> file

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

#include <tiffio.h>

roentgen b75cab
roentgen b75cab

tsize_t TIFFReadTile(TIFF *tif,

roentgen b75cab
tdata_t buf, uint32 x,
roentgen b75cab
uint32 y, uint32 z,
roentgen b75cab
tsample_t sample)

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Return the data for the tile containing the

roentgen b75cab
specified coordinates. The data placed in buf are
roentgen b75cab
returned decompressed and, typically, in the native byte-
roentgen b75cab
and bit-ordering, but are otherwise packed (see further
roentgen b75cab
below). The buffer must be large enough to hold an entire
roentgen b75cab
tile of data. Applications should call the routine
roentgen b75cab
TIFFTileSize to find out the size (in bytes) of a
roentgen b75cab
tile buffer. The x and y parameters are always
roentgen b75cab
used by TIFFReadTile. The z parameter is used
roentgen b75cab
if the image is deeper than 1 slice
roentgen b75cab
(ImageDepth>1). The sample parameter is
roentgen b75cab
used only if data are organized in separate planes
roentgen b75cab
(PlanarConfiguration=2).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

NOTES

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

The library attempts to hide bit- and byte-ordering

roentgen b75cab
differences between the image and the native machine by
roentgen b75cab
converting data to the native machine order. Bit reversal is
roentgen b75cab
done if the FillOrder tag is opposite to the native
roentgen b75cab
machine bit order. 16- and 32-bit samples are automatically
roentgen b75cab
byte-swapped if the file was written with a byte order
roentgen b75cab
opposite to the native machine byte order,

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

RETURN VALUES

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFReadTile returns −1 if it detects an

roentgen b75cab
error; otherwise the number of bytes in the decoded tile is
roentgen b75cab
returned.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DIAGNOSTICS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

All error messages are directed to the

roentgen b75cab
TIFFError(3TIFF) routine.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFCheckTile(3TIFF),

roentgen b75cab
TIFFComputeTile(3TIFF), TIFFOpen(3TIFF),
roentgen b75cab
TIFFReadEncodedTile(3TIFF),
roentgen b75cab
TIFFReadRawTile(3TIFF), libtiff(3TIFF)

roentgen b75cab
roentgen b75cab

Libtiff library home page:

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab