#include "BIDIB.H"
int CALLBACK GetImageInfoStructure(LPTSTR szFileName, int nImage, LPDIBINFO dibInfo)
Description
This function retrieves information about the specified image file. This function is available for TIFF, JPEG, PDF (image only), PNG, DIB, GIF, IOCA, MO:DCA (image only) , WMF, EMF, PCX, DCX, CLP, TGA, FAX or CALS file formats.
Parameters
|
LPTSTR |
szFileName |
Path and name of the image file. |
|
int |
nImage |
Image number. It is a zero based integer. You can use this to select an image from a file. This parameter is available only for TIFF, PDF, MO:DCA, GIF, FAX and DCX files. |
|
LPDIBINFO |
dibInfo |
Pointer to the information structure. |
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
Returns the error code. Available error code are listed in the LoadImageIntoDIB section.
Programming notes
The GetImageInfoStructure function determines the file format based on the file content, not the extension, so any extension can be used for the files.
Requirements
Header : Declared in BiDIB.h; include BiDIB.h.
Library : Use BiDIB.lib.
DLLs : BiDIB.dll.
Code example
None at present.