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

TIFFClose - close a previously opened TIFF file

Author

       LibTIFF contributors

Description

TIFFClose()  closes  a file that was previously opened with TIFFOpen().  Any buffered data are flushed to
       the file, including the contents of the current directory (if modified); and all resources are reclaimed.
       TIFFClose() calls TIFFCleanup() and then the associated function to close the file handle.

       TIFFCleanup() is an auxiliary function  to  free  the  TIFF  structure.   The  given  structure  will  be
       completely  freed,  so  you should save opened file handle and pointer to the close procedure in external
       variables before calling TIFFCleanup(), if you will need these ones to  close  the  file.   TIFFCleanup()
       calls TIFFFlush(), which stores all pending data in the file.

       NOTE:
          Both  functions  have  no  return  value.  If you want to check whether the data has been successfully
          written to the file, you can call TIFFFlush(), which has a return value, before TIFFClose().

Diagnostics

       All error messages are directed to the TIFFErrorExtR() routine.  Likewise, warning messages are  directed
       to the TIFFWarningExtR() routine.

Name

       TIFFClose - close a previously opened TIFF file

See Also

libtiff (3tiff), TIFFOpen  (3tiff), TIFFError (3tiff)

Synopsis

          #include <tiffio.h>

       voidTIFFClose(TIFF*tif)voidTIFFCleanup(TIFF*tif)

See Also