GetBMPColorSpace

#include "BIDIB.H"

 

DWORD CALLBACK GetBMPColorSpace (LPCTSTR pszFileName)

Description

This function retrieves the encoding mode of the BMP file.

Parameters

LPCTSTR

pszFileName

Path and name of the input file.

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

The compression mode of the DIB, -1 on error.

Programming notes

Available compression modes:

Windows Standards:

BI_RGB (0L)                    Windows mode.

BI_RLE8 (1L)                  Windows mode.

BI_RLE4 (2L)                  Windows mode.

BI_BITFIELDS (3L)        Windows mode.

 

Black Ice Specific:

FLAG_YUV (10L)           YUV color format.

FLAG_CMY (11L)          CMY color format.

FLAG_CMYK (12L)       CMTYK color format.

FLAG_YIQ (13L)            YIQ color format.

FLAG_HSV (14L)           HSV color format.

FLAG_HSI (15L)             HSI color format.

FLAG_XYZ (16L)           XYZ color format.

FLAG_LAB (17L)           LAB color format.

FLAG_CMYK2 (18L)     CMYK Adobe Photoshop color format

 

Requirements

Header :     Declared in BiDIB.h; include BiDIB.h.

Library :    Use BiDIB.lib.

DLLs :       BiDIB.dll.