BitMiracle.LibTiff.Classic.Tiff.SetSubDirectory C# (CSharp) Method

SetSubDirectory() public method

Sets the directory at specified file/stream offset as the current directory.
SetSubDirectory acts like SetDirectory, except the directory is specified as a file offset instead of an index; this is required for accessing subdirectories linked through a SubIFD tag (e.g. thumbnail images).
public SetSubDirectory ( long offset ) : bool
offset long The offset from the beginnig of the file/stream to the directory /// to set as the current directory.
return bool
        public bool SetSubDirectory(long offset)
        {
            m_nextdiroff = (uint)offset;

            // Reset m_dirnumber counter and start new list of seen directories.
            // We need this to prevent IFD loops.
            m_dirnumber = 0;
            return ReadDirectory();
        }
Tiff