logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TIFFWriteRawStrip - write a strip of raw data to an open TIFF file

Author

       LibTIFF contributors

Description

       Append size bytes of raw data to the specified strip.

Diagnostics

       All error messages are directed to the TIFFErrorExtR() routine.

       %s:Filenotopenforwriting:
          The file was opened for reading, not writing.

       Cannotwritescanlinestoatiledimage:
          The  image is assumed to be organized in tiles because the TileWidth and TileLength tags have been set
          with TIFFSetField().

       %s:Mustset"ImageWidth"beforewritingdata:
          The image's width has not be set before the first write.  See TIFFSetField() for information on how to
          do this.

       %s:Mustset"PlanarConfiguration"beforewritingdata:
          The organization of data  has  not  be  defined  before  the  first  write.   See  TIFFSetField()  for
          information on how to do this.

       %s:Nospaceforstriparrays":
          There was not enough space for the arrays that hold strip offsets and byte counts.

       %s:Strip%doutofrange,max%d:
          The specified strip is not a valid strip according to the currently specified image dimensions.

Name

       TIFFWriteRawStrip - write a strip of raw data to an open TIFF file

Notes

       The  strip  number  must  be  valid according to the current settings of the ImageLength and RowsPerStrip
       tags.  An image may be dynamically grown by increasing the value of ImageLength prior  to  each  call  to
       TIFFWriteRawStrip().

Return Values

       -1 is returned if an error occurred.  Otherwise, the value of size is returned.

See Also

TIFFOpen (3tiff), TIFFWriteEncodedStrip (3tiff), TIFFWriteScanline (3tiff), libtiff (3tiff)

Synopsis

          #include <tiffio.h>

       tsize_tTIFFWriteRawStrip(TIFF*tif,tstrip_tstrip,tdata_tbuf,tsize_tsize)

See Also