Simulation support:

None. This function is mandatory for all drivers.

Description:

GreSetBitmapBits transfers bit-map data from application storage into the specified bit map or DC.

This function must be supported by the presentation driver. GreSetBitmapBits is called from the function GpiSetBitmapBits, and is used to transfer bit-map data from the device context to application storage. This function can be handled by bit-map simulation.

#define INCL_GRE_BITMAPS
#include <os2.h>

HDC            hdc;         /*  Device context handle. */
HBITMAP        hbm;         /*  Bit-map handle. */
LONG           lScanStart;  /*  Scan line number from where data transfer starts. */
LONG           cScanCount;  /*  Number of scan lines to be transferred. */
PBYTE          pBitmap;     /*  Pointer to bit-map data. */
PBITMAPINFO    pInfo;       /*  Pointer to BITMAPINFO or BITMAPINFO2 structure. */
PVOID          pInstance;   /*  Pointer to instance data. */
ULONG          lFunction;   /*  High-order WORD=flags; low-order WORD=NGreSetBitmapBits. */
LONG           rc;          /*  Return codes. */

rc = GreSetBitmapBits(hdc, hbm, lScanStart,
       cScanCount, pBitmap, pInfo, pInstance,
       lFunction);


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