Herd Software Development
DaVinci Graphics Library
Creates an empty (all-black) DIB of the specified size. Color depth and palette are copied from the reference DIB. The DIB consists of a global memory handle containing a BITMAPINFOHEADER, a standard color palette, and the bitmap data of the DIB (empty or zeroed when created).
HDIB API CreateCompatibleDIB(HDIB hDIB, UINT Width, UINT Height);
hDIB HDIB Handle of a reference DIB used to define color depth and palette of the new DIB.
Width UINT Width of the new DIB in pixels
Height UINT Height of the new DIB in pixels
Returns the handle of the DIB. This handle must be released by the application using GlobalFree.