Reading Multi-Page TIFF files.

GVProgress

New Member
I am trying to read a multipage tiff file. But unable to do so. I am using standard windows call to the tiff to read the data..
eg..

To Open the image file...
RUN CreateFileA (ipcFileLocation, /** Front Image File **/
{&GENERIC_READ}, /* Desired Access **/
0, /** Shared Mode **/
0, /** Security Attributes **/
{&OPEN_EXISTING}, /** Creation Disposition **/
0, /** Flags and Attributes **/
0, /** Template File **/
OUTPUT ipihFile). /** Image Handle **/

To Point to the image...

RUN SetFilePointer (ipihFile,
0, /** Distance to Move from **/
0, /** Distance to Move (High) **/
{&FILE_BEGIN}, /** Begin of File **/
OUTPUT iReturnCode). /** Return Code **/

To Read Image Block...

RUN ReadFile (ipihFile,
GET-POINTER-VALUE(mReadPtr),
iReadSize,
OUTPUT iImgReadSize,
0,
OUTPUT iReturnCode).

This works fine for single page stacked image tiff. In Multi-Page tiff I am able to get image from the 1st page only.
Does anyone know how to extract the image from next pages or subsequent frames?? Is there a .tff tag in mulipage tiff that points to next page??
 
Back
Top