1TIFFSetDirectory(3TIFF) TIFFSetDirectory(3TIFF)
2
3
4
6 TIFFSetDirectory, TIFFSetSubDirectory - set the current directory for
7 an open TIFF file
8
10 #include <tiffio.h>
11
12 int TIFFSetDirectory(TIFF *tif, tdir_t dirnum)
13 int TIFFSetSubDirectory(TIFF *tif, uint32 diroff)
14
16 TIFFSetDirectory changes the current directory and reads its contents
17 with TIFFReadDirectory. The parameter dirnum specifies the sub‐
18 file/directory as an integer number, with the first directory numbered
19 zero.
20
21 TIFFSetSubDirectory acts like TIFFSetDirectory, except the directory is
22 specified as a file offset instead of an index; this is required for
23 accessing subdirectories linked through a SubIFD tag.
24
26 On successful return 1 is returned. Otherwise, 0 is returned if dirnum
27 or diroff specifies a non-existent directory, or if an error was
28 encountered while reading the directory's contents.
29
31 All error messages are directed to the TIFFError(3TIFF) routine.
32
33 %s: Error fetching directory count. An error was encountered while
34 reading the ``directory count'' field.
35
36 %s: Error fetching directory link. An error was encountered while
37 reading the ``link value'' that points to the next directory in a file.
38
40 TIFFCurrentDirectory(3TIFF), TIFFOpen(3TIFF), TIFFReadDirectory(3TIFF),
41 TIFFWriteDirectory(3TIFF), libtiff(3TIFF)
42
43 Libtiff library home page: http://www.remotesensing.org/libtiff/
44
45
46
47libtiff October 15, 1995 TIFFSetDirectory(3TIFF)