ReadIOCAHeader

#include "BITIFF.H"

BOOL CALLBACK ReadIOCAHeader(int nFile, LPIOCA lpIoca)

Description

Tries to load an IOCA wrapper from the specified file. On success, sets the image dimensions in the given structure, and leaves the file pointer on the first code byte of the image.

Parameters

int

nFile

File handle for an MMR file.

LPIOCA

lpIoca

Far pointer of IOCA structure.

Return values

TRUE on success, FALSE if failed.

Requirements

Header :     Declared in BiTiff.h; include BiTiff.h.

Library :    Use BiTiff.lib.

DLLs :       BiTiff.dll.

References to related functions

See ReadMODCAHeader().

Code example

#include "BITIFF.H"

case IBM_MMR_IOCA_FORMAT:

if (ReadIOCAHeader(nFile,&Ioca) == FALSE)

{

return(FALSE);

}

BmInfo.bmiHeader.biWidth = Ioca.wHSize;

BmInfo.bmiHeader.biHeight = Ioca.wVSize;

// the file pointer already at the beginning of image

lOffset = Ioca.lFirstImgOffset;

break;