Quantcast

Documentation Center

  • Trial Software
  • Product Updates

nextDirectory

Class: Tiff

Make next IFD current IFD

Syntax

tiffobj.nextDirectory()

Description

tiffobj.nextDirectory() makes the next image file directory (IFD) in the file the current IFD. Tiff object methods operate on the current IFD. Use this method to navigate among IFDs in a TIFF file containing multiple images.

Examples

expand all

Make Next Directory the Current Directory

Open a Tiff object and change the current IFD to the next IFD in the file.

t = Tiff('example.tif','r');
t.nextDirectory();
t.close();

References

This method corresponds to the TIFFReadDirectory function in the LibTIFF C API. To use this method, you must be familiar with the TIFF specification and technical notes. View this documentation at LibTIFF - TIFF Library and Utilities.

See Also

Was this topic helpful?