int TIFFCreateDirectory(TIFF *tif)¶
int TIFFFreeDirectory(TIFF *tif)¶
The following routines create or release a directory.
TIFFCreateDirectory() setup for a directory in a open TIFF file.
The newly created directory will not exist on the file till
TIFFClose() is called.
TIFFWriteDirectory() also creates a new directory,
*tif structure and sets up a new one.
TIFFFreeDirectory() releases allocated storage associated with a
directory, especially custom-fields.
However, the main part of the directory is not touched. Routine
TIFFFreeDirectory() to release
the directory part of the tif structure.
TIFFUnlinkDirectory() unlink the specified directory from the
Directory query functions
TIFFNumberOfDirectories() retrieve information about directories
in an open TIFF file. Be aware that until a directory is
not written to file AND read back, the query functions won't retrieve
the correct information!
that until a directory is not written to file AND read back, the query functions won't retrieve the correct information!