TIFFWRITETILE(3tiff) LibTIFF TIFFWRITETILE(3tiff)
NAME
TIFFWriteTile - encode and write a tile of data to an open TIFF file
SYNOPSIS
#include <tiffio.h>
TIFFWriteTile - encode and write a tile of data to an open TIFF file
TIFFWriteTile(3) *tif, void *buf, uint32_t x, uint32_t y,
uint32_t z, uint16_t sample)
DESCRIPTION
Write the data for the tile containing the specified coordinates. The
data in buf are (potentially) compressed, and written to the indicated
file, normally being appended to the end of the file. The buffer must
be contain an entire tile of data. Applications should call the
routine TIFFTileSize() to find out the size (in bytes) of a tile
buffer. The x and y parameters are always used by TIFFWriteTile(). The
z parameter is used if the image is deeper than 1 slice (ImageDepth >
1). The sample parameter is used only if data are organized in
separate planes (PlanarConfiguration = 2).
RETURN VALUES
TIFFWriteTile() returns -1 if it detects an error; otherwise the number
of bytes in the tile is returned.
DIAGNOSTICS
All error messages are directed to the TIFFErrorExtR() routine.
SEE ALSO
TIFFtile(3), TIFFOpen(3), TIFFReadTile(3),
TIFFWriteScanline(3), TIFFWriteEncodedTile(3), TIFFWriteRawTile(3),
libtiff(3)
AUTHOR
LibTIFF contributors
COPYRIGHT
1988-2025, LibTIFF contributors
4.7 September 11, 2025 TIFFWRITETILE(3tiff)
tiff 4.7.1 - Generated Thu Sep 25 08:41:28 CDT 2025
