Herd Software Development
DaVinci Graphics Library
DaVinci Documentation
This function copies a DIB's BITMAPINFOHEADER structure into a new BITMAPINFOHEADER structure for use by the application.
BOOL API DIBInfo (
HDIB hbi,
LPBITMAPINFOHEADER lpbi,
UINT uSizeBI)
hbi HDIB Handle of DIB containing the source BITMAPINFOHEADER.
lpbi LPBITMAPINFOHEADER Pointer to a new BITMAPINFOHEADER structure generated by the application.
uSizeBI UINT Size, in bytes, of the structure pointed to by lpbi.
Function returns TRUE if the operation was successful.
The BITMAPV4HEADER structure introduced with Windows 95 reserves more bytes than the BITMAPINFOHEADER structure. DIBInfo only fills in at the most the number of bytes specified by uSizeBI. An application can use the biSize element of the source DIB to determine whether it is based on a BITMAPV4HEADER or a BITMAPINFOHEADER.