Number of images in multi-page TIFF in Memory

Document Imaging SDK,
Image SDK,
TIFF SDK,
Annotation SDK,
Cover Page Generator

Moderator: Technical Support Team

Number of images in multi-page TIFF in Memory

Postby oirraza » Wed May 05, 2010 3:02 pm

How can i get the number of images in a multi-page TIFF file stored in a memory block (in a Database)?

Thanks

Orlando Irrazabal
oirraza
 
Posts: 3
Joined: Wed Apr 21, 2010 5:29 pm

Re: Number of images in multi-page TIFF in Memory

Postby TechnicalSupportTeam » Wed Jun 30, 2010 8:47 am

Hello,

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 you should 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);
}
TechnicalSupportTeam
 
Posts: 944
Joined: Sat Mar 20, 2004 11:50 am


Return to Imaging Toolkits



Who is online

Users browsing this forum: No registered users and 1 guest