## Presentation Device Driver Reference for OS/2

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

### GreSetBitmapDimension

Select an item:

    Syntax
    Parameters
    Returns
    Glossary

Description

GreSetBitmapDimension associates height and width values for the bit map indicated by hbm. These values can be read back later by calling GreGetBitmapDimension.

This function is supported by the graphics engine.

    #define INCL_GRE_DEVSUPPOR

    #include <os2.h>

    HBITMAP    hbm;         /*  Bit-map handle. */

    PSIZEL     pDimension;  /*  Pointer to width and height values in 0.1mm units. */

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

    ULONG      lFunction;   /*  High-order WORD=flags; low-order WORD=NGreSetBitmapDimension. */

    BOOL       fSuccess;    /*  Return codes. */

    fSuccess = GreSetBitmapDimension(hbm, pDimension,

                 pInstance, lFunction);