This function draws a bit map using the current image colors and mixes.

#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HPS        hpsDst;   /*  Handle of presentation space in which the bit map is drawn. */
HBITMAP    hbm;      /*  Bit-map handle. */
PRECTL     pwrcSrc;  /*  Subrectangle of bit map to be drawn. */
PPOINTL    pptlDst;  /*  Bit-map destination. */
LONG       clrFore;  /*  Foreground color. */
LONG       clrBack;  /*  Background color. */
ULONG      fl;       /*  Flags that determine how the bit map is drawn. */
BOOL       rc;       /*  Success indicator. */

rc = WinDrawBitmap(hpsDst, hbm, pwrcSrc, pptlDst,
       clrFore, clrBack, fl);


[Back] [Next]