CMemoryGraphicsContext Class

class CMemoryGraphicsContext: public CGraphicsContext

Device context on memory.

Defined in: GraphicContext.h

Comments

The output for a CMemoryGraphicsContext is not displayed on any physical device but rather goes to a bitmap in memory.
Use one of the Blt API functions to transfer the contents of that memory bitmap to an actual output device.

Class Members

CMemoryGraphicsContext(HDC h)

Creates and initializes a compatible DC on memory.

void  Create(HDC hDCComp)

Creates a DC on memory compatible with the one passed in, and attaches it to this instance.