LoadDIBFromFile  Method

Description         Loads the specified Microsoft Device Independent Bitmap 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.

Syntax                 Dib = [BiDib.]LoadDIBFromFile(FileName)

Remarks             Dib                          LONGLONG The device independent bitmap. 0 if error occurred.

                            FileName                String              The file name of a DIB (*.BMP) format file.

Note:                   This method does not free the DIB.  Call the DropDIB Method to free up the DIB.

This function only supports regular bottom-up DIBs. If this function fails to load a specific .bmp file, try loading it with LoadDIBFromFileExt.