#include "BIGIF.H"
GIFFILE CALLBACK OpenGifFile(LPSTR lpszFileName, int nMode)
Description
Opens the specified GIF file and builds an image chain structure for encoding or decoding. If iMode is equal to G_READ or G_APPEND, the function fills this structure with the basic information retrieved from the specified GIF file. If iMode is equal to G_CREATE, then a new chain is created and the byte order is set to LH_BYTE_ORDER. It can be modified by calling the ModiGifFileInfo(). The returned handle must be saved, because most of the functions manipulating the GIF images require this handle to identify the image chain.
Parameters
|
LPSTR |
lpszFileName |
Name of the GIF file to open. |
|
Int |
nMode |
Create (G_CREATE), append (G_APPEND) or read (G_READ). |
Return values
A handle to an inner structure containing detailed information on the GIF image chain or NULL if an error occurred.
Programming notes
None.
Requirements
Code example
None at present.