#include <ImageFileDirectory.h>
Public Member Functions | |
CImageFileDirectory (class CTiffFile &i_tiff, CImageFileDirectory *i_previous=NULL) | |
Read an IFD from a file. | |
bool | End () const |
Check if this IFD represents the end of the directories chain. | |
uint32 | ReferenceNext (CImageFileDirectory *i_next) |
Get the address of the reference to next IFD. | |
CImageFileDirectory * | Previous () |
Retrieve previous IFD (or null if it is the first). | |
bool | InsertAfterMe (CTiffFile &i_tiff, CImageFileDirectory *i_nextOne) |
Insert the IFD given in parameter after this IFD not breaking IFD chain. | |
Protected Member Functions | |
bool | SetNext (CTiffFile &i_tiff, CImageFileDirectory *i_next) |
Set a new Next IFD for this IFD(modify file). |
A multipage Tiff is a TIFF file with several IFD, each represent a page. They are referenced as a chain. You can find the address of the first one in the Tiff header and find in each IFD the address of next IFD.
CImageFileDirectory::CImageFileDirectory | ( | class CTiffFile & | i_tiff, | |
CImageFileDirectory * | i_previous = NULL | |||
) |
Read an IFD from a file.
i_tiff | the file to read | |
i_previous | the previous IFD or NULL to read first IFD of file |
uint32 CImageFileDirectory::ReferenceNext | ( | CImageFileDirectory * | i_next | ) |
Get the address of the reference to next IFD.
and set the caller as Next one.