The number of pages of a memory TIFF can be retrieved by the NumberOfTiffImages function of BiTiff.dll. This function is not implemented in the BiTiff.ocx so one must use the dll function directly. The NumberOfTiffImages function gets the number of pages of the memory TIFF. Before calling this function the TIFF file should be opened by OpenTiffInMemory function.
The following C++ code snippet shows how to use the NumberOfTiffImages function:
TIFFFILE hChain;
hChain = OpenTiffFile(szTiffFileName, T_READ);
if(hChain)
{
nImages = (UINT)NumberOfTiffImages(hChain, ALLVERSIONS);
CloseTiffFile(hChain);
}
Regards,
Technical Support Team