| 1 |
TIFFWriteRawTile |
| 2 |
================ |
| 3 |
|
| 4 |
Synopsis |
| 5 |
-------- |
| 6 |
|
| 7 |
.. highlight:: c |
| 8 |
|
| 9 |
:: |
| 10 |
|
| 11 |
#include <tiffio.h> |
| 12 |
|
| 13 |
.. c:function:: tsize_t TIFFWriteRawTile(TIFF* tif, ttile_t tile, tdata_t buf, tsize_tsize) |
| 14 |
|
| 15 |
Description |
| 16 |
----------- |
| 17 |
|
| 18 |
Append *size* bytes of raw data to the specified tile. |
| 19 |
|
| 20 |
Return values |
| 21 |
------------- |
| 22 |
|
| 23 |
-1 is returned if an error occurred. Otherwise, the value of *size* is |
| 24 |
returned. |
| 25 |
|
| 26 |
Diagnostics |
| 27 |
----------- |
| 28 |
|
| 29 |
All error messages are directed to the :c:func:`TIFFErrorExtR` routine. |
| 30 |
|
| 31 |
``%s: File not open for writing``: |
| 32 |
|
| 33 |
The file was opened for reading, not writing. |
| 34 |
|
| 35 |
``Can not write tiles to a stripped image``: |
| 36 |
|
| 37 |
The image is assumed to be organized in strips because neither of the |
| 38 |
``TileWidth`` or ``TileLength`` tags have been set with |
| 39 |
:c:func:`TIFFSetField`. |
| 40 |
|
| 41 |
``%s: Must set "ImageWidth" before writing data``: |
| 42 |
|
| 43 |
The image's width has not be set before the first write. |
| 44 |
See :c:func:`TIFFSetField` for information on how to do this. |
| 45 |
|
| 46 |
``%s: Must set "PlanarConfiguration" before writing data``: |
| 47 |
|
| 48 |
The organization of data has not be defined before the first write. |
| 49 |
See :c:func:`TIFFSetField` for information on how to do this. |
| 50 |
|
| 51 |
``%s: No space for tile arrays``: |
| 52 |
|
| 53 |
There was not enough space for the arrays that hold tile offsets and |
| 54 |
byte counts. |
| 55 |
|
| 56 |
``%s: Specified tile %d out of range, max %d``: |
| 57 |
|
| 58 |
The specified tile is not valid according to the currently specified |
| 59 |
image dimensions. |
| 60 |
|
| 61 |
See also |
| 62 |
-------- |
| 63 |
|
| 64 |
:doc:`TIFFOpen` (3tiff), |
| 65 |
:doc:`TIFFWriteEncodedTile` (3tiff), |
| 66 |
:doc:`TIFFWriteScanline` (3tiff), |
| 67 |
:doc:`libtiff` (3tiff) |