LoadGifIntoDIB

#include "BIGIF.H"

 

HDIB CALLBACK LoadGIFIntoDIB( LPTSTR       lpszName,
int         nImage,
int far    *nErrCode)

Description

Loads the n-th GIF image into a Device Independent Bitmap. 

Parameters

LPTSTR

lpszName

GIF file name.

int

nImage

The nth image, or page number, for multi page images.  Numbering is zero based, for example:  Page 2 would be referenced as ‘1’

int far

*nErrCode

Pointer to the error code

Additional Information

This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.

Return values

Return a handle of the Device Independent Bitmap or NULL if any error. Error code is in nErrCode.

Programming notes

Image referencing is zero based. The first image is 0 and second is 1.

Requirements

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

Library :    Use BiGif.lib.

DLLs :       BiGif.dll.

Code example

None at present.