#include "BiDIB.h"
HANDLE CALLBACK LoadDIBFromFileExt(LPTSTR lpszFileName)
Description
Load a Microsoft Device Independent Bitmap (DIB) from file. If it is V4 or V5 format and contains ICC embedded profile, during loading the pixel values are transformed into sRGB color space. Alpha Channel will be lost.
This function supports both bottom-up and top-down DIBs. Top-down DIBs are converted to regular bottom-up DIBs during loading.
Parameters
|
LPTSTR |
lpszFileName |
File name to be loaded. |
Return values
Returns a HANDLE to the device independent bitmap if successful or NULL if fails.
Programming notes
None.
Requirements
|
Header : |
Declared in BiDIB.h; include BiDIB.h. |
|
Library : |
Use BiDIB.lib, lcms2.lib. |
|
DLLs : |
BiDIB.dll, lcms2.dll. |
Code example
#include "BiDIB.h"
switch(nFormatID) {
.
.
.
case DIB_FORMAT:
hDIB = LoadDIBFromFileExt(szFileName);
break;
.
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.