Simulation support:

None. This function is mandatory for all drivers.

Description:

GreDeviceCreateBitmap creates a bit map and obtains its handle.

This function must be supported by the presentation driver. GreDeviceCreateBitmap is called from GreCreateBitmap, which is one of the graphics engine internal device support functions.

#define INCL_GRE_BITMAPS
#include <os2.h>

HDC                  hdc;        /*  Device context handle. */
PBITMAPINFOHEADER    pInfoHd;    /*  Pointer to data structure. */
ULONG                flUsage;
PBYTE                pBitmap;    /*  Pointer to bit-map initialization data. */
PBITMAPINFO          pInfo;      /*  Pointer to BITMAPINFO or BITMAPINFO2 structure. */
PVOID                pInstance;  /*  Pointer to instance data. */
ULONG                lFunction;  /*  High-order WORD=flags; low-order WORD=NGreDeviceCreateBitmap. */
ULONG                rc;         /*  Return Code. */

rc = GreDeviceCreateBitmap(hdc, pInfoHd, flUsage,
       pBitmap, pInfo, pInstance, lFunction);


[Back: GreDeviceCreateBitmap]
[Next: GreDeviceCreateBitmap Parameter - hdc]