## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreCreateBitmap - Syntax

Description

GreCreateBitmap creates a bit map and returns its handle.

This function is supported by the graphics engine.

    #define INCL_GRE_DEVSUPPORT

    #include <os2.h>

    HDC                  hdc;        /*  Device context handle. */

    PBITMAPINFOHEADER    pInfoHd;

    ULONG                flUsage;

    PBYTE                pBitmap;

    PBITMAPINFO          paInfo;

    PVOID                pInstance;  /*  Pointer to instance data. */

    ULONG                lFunction;

    HBITMAP              rc;         /*  Return codes. */

    rc = GreCreateBitmap(hdc, pInfoHd, flUsage,

           pBitmap, paInfo, pInstance, lFunction);