#include "BiDIB.h"
HANDLE CALLBACK LoadDIBFromFile(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. Alpha Channel will be supported in a future release
Parameters
|
LPTSTR |
lpszFileName |
File name to be loaded. |
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 to the device independent bitmap if successful or NULL if fails.
Programming notes
This function only supports regular bottom-up DIBs. If this function fails to load a specific .bmp file, try loading it with LoadDIBFromFileExt.
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 = LoadDIBFromFile(szFileName);
break;
.