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