GetMemoryTiffHandle

#include "BITIFF.H"

HANDLE CALLBACK GetMemoryTiffHandle(TIFFFILE hChain)

Description

Retrieves the memory handle of the TIFF file data in memory. The memory handle should be freed after the user is finished with the TIFF file. Use this function only in conjunction with the OpenTiffInMemory() function. If you call this function with a hChain parameter returned by the OpenTiffFile() function, the return value will be zero, that indicates the file is not a memory file.

Parameters

TIFFFILE

hChain

Handle of a valid TIFF image chain.

Return values

A handle of the TIFF file data in memory. NULL if an error occurred or the hChain parameter was returned by the OpenTiffFile() function.

Programming notes

The returned handle is the same that the user passed to the hHndl parameter of the OpenTiffInMemory() function.

Requirements

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

Library :    Use BiTIFF.lib.

DLLs :       BiTiff.dll.

References to related functions

See OpenTiffInMemory(), CloseTiffFile().