| 1 |
TIFFWriteTile |
| 2 |
============= |
| 3 |
|
| 4 |
Synopsis |
| 5 |
-------- |
| 6 |
|
| 7 |
.. highlight:: c |
| 8 |
|
| 9 |
:: |
| 10 |
|
| 11 |
#include <tiffio.h> |
| 12 |
|
| 13 |
TIFFWriteTile \- encode and write a tile of data to an open TIFF file |
| 14 |
|
| 15 |
.. c:function:: tsize_t TIFFWriteTile(TIFF* tif, tdata_t buf, uint32_t x, uint32_t y, uint32_t z, tsample_t sample) |
| 16 |
|
| 17 |
Description |
| 18 |
----------- |
| 19 |
|
| 20 |
Write the data for the tile *containing* the specified coordinates. The |
| 21 |
data in *buf* are (potentially) compressed, and written to the |
| 22 |
indicated file, normally being appended to the end of the file. The |
| 23 |
buffer must be contain an entire tile of data. Applications should |
| 24 |
call the routine :c:func:`TIFFTileSize` to find out the size (in bytes) |
| 25 |
of a tile buffer. The *x* and *y* parameters are always used by |
| 26 |
:c:func:`TIFFWriteTile`. The *z* parameter is used if the image is |
| 27 |
deeper than 1 slice (``ImageDepth`` > 1). |
| 28 |
The *sample* parameter is used only if data are organized in separate |
| 29 |
planes (``PlanarConfiguration`` = 2). |
| 30 |
|
| 31 |
Return values |
| 32 |
------------- |
| 33 |
|
| 34 |
:c:func:`TIFFWriteTile` returns -1 if it detects an error; otherwise |
| 35 |
the number of bytes in the tile is returned. |
| 36 |
|
| 37 |
Diagnostics |
| 38 |
----------- |
| 39 |
|
| 40 |
All error messages are directed to the :c:func:`TIFFErrorExtR` routine. |
| 41 |
|
| 42 |
See also |
| 43 |
-------- |
| 44 |
|
| 45 |
:doc:`TIFFtile` (3tiff), |
| 46 |
:doc:`TIFFOpen` (3tiff), |
| 47 |
:doc:`TIFFReadTile` (3tiff), |
| 48 |
:doc:`TIFFWriteScanline` (3tiff), |
| 49 |
:doc:`TIFFWriteEncodedTile` (3tiff), |
| 50 |
:doc:`TIFFWriteRawTile` (3tiff), |
| 51 |
:doc:`libtiff` (3tiff) |