Save32BitDIB

#include "BIDIB.H"

 

BOOL CALLBACK Save32BitDIB( LPCTSTR pszFileName,
HDIB        h24BitDib,
HDIB32    h32BitDib)

Description

The function saves the 24 bit per pixel DIB as 32 bit per pixel DIB. If h32BitDib is NULL, the 4th BYTE will be 0 in every 32 bit, otherwise the 4th BYTE comes from h32BitDib.

Parameters

LPCTSTR

pszFileName

Path and name of the BMP file to save.

HDIB

h24BitDib

Handle of the 24 bit per pixel DIB to save.

HDIB32

h32BitDib

Handle of the 32 bit per pixel DIB.

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

TRUE on success, otherwise FALSE.

Programming notes

The function will not free the input DIB.

Requirements

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

Library :    Use BiDIB.lib.

DLLs :       BiDIB.dll.