1TIFFWriteTile(3TIFF)                                      TIFFWriteTile(3TIFF)
2
3
4

NAME

6       TIFFWriteTile - encode and write a tile of data to an open TIFF file
7

SYNOPSIS

9       #include <tiffio.h>
10
11       tsize_t  TIFFWriteTile(TIFF  *tif,  tdata_t  buf,  uint32  x, uint32 y,
12       uint32 z, tsample_t sample)
13

DESCRIPTION

15       Write the data for the tile containing the specified  coordinates.  The
16       data  in  buf are is (potentially) compressed, and written to the indi‐
17       cated file, normally being appended to the end of the file. The  buffer
18       must  be  contain  an entire tile of data. Applications should call the
19       routine TIFFTileSize to find out the size (in bytes) of a tile  buffer.
20       The x and y parameters are always used by TIFFWriteTile.  The z parame‐
21       ter is used if the image is deeper than 1  slice  (ImageDepth>1).   The
22       sample  parameter is used only if data are organized in separate planes
23       (PlanarConfiguration=2).
24

RETURN VALUES

26       TIFFWriteTile returns -1 if it detects an error; otherwise  the  number
27       of bytes in the tile is returned.
28

DIAGNOSTICS

30       All error messages are directed to the TIFFError(3TIFF) routine.
31

SEE ALSO

33       TIFFCheckTile(3TIFF),  TIFFComputeTile(3TIFF),  TIFFOpen(3TIFF),  TIFF‐
34       ReadTile(3TIFF), TIFFWriteScanline(3TIFF), TIFFWriteEncodedTile(3TIFF),
35       TIFFWriteRawTile(3TIFF), libtiff(3TIFF)
36
37       Libtiff library home page: http://www.simplesystems.org/libtiff/
38
39
40
41libtiff                        November 29, 1999          TIFFWriteTile(3TIFF)
Impressum