manpagez: man pages & more
man TIFFClose(3)
Home | html | info | man
TIFFCLOSE(3tiff)                    LibTIFF                   TIFFCLOSE(3tiff)


NAME

       TIFFClose - close a previously opened TIFF file


SYNOPSIS


          #include <tiffio.h>

       TIFFClose(3) *tif)

       void TIFFCleanup(TIFF *tif)


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.


SEE ALSO

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


AUTHOR

       LibTIFF contributors


COPYRIGHT

       1988-2022, LibTIFF contributors

4.7                           September 11, 2024              TIFFCLOSE(3tiff)

tiff 4.7.0 - Generated Thu Oct 3 10:29:45 CDT 2024
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.