Simulation support:
None. This function is mandatory for all drivers.
Description:
GreImageData draws a single row of image data with one bit per pel by using the current image foreground and background color and mix attributes.
This function must be supported by the presentation driver. GreImageData is called by the function GpiImage. GreImageData is called multiple times for each call made to GpiImage, once for each scan line in the monochrome bit map.
#define INCL_GRE_BITMAPS #include <os2.h> HDC hdc; /* Device context handle. */ PBYTE pData; /* Pointer to data string. */ LONG cBits; /* Number of bits in row (maximum is 2040). */ ULONG offRow; /* Row number relative to the current y-position. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreImageData. */ LONG rc; /* Return Code. */ rc = GreImageData(hdc, pData, cBits, offRow, pInstance, lFunction);