RESOLUTION
To create a memory DC that produces an image when it is used as a source DC in a
bit block transfer function, create and select a bitmap into the memory DC that contains image pixels of some form.
For additional information on how to properly create a Memory Device Context, click the article number below
to view the article in the Microsoft Knowledge Base:
139165 PRB: Memory DC Produces Monochrome Images
To initialize the image in the memory DC with an image stored as a device independent bitmap (DIB), see the following Knowledge Base article:
66595 INFO: Using SetDIBitsToDevice() with a Memory Device Context
Alternatively, an image in DIB format can be used with the
CreateDIBSection function to create an HBITMAP for a memory DC that can be simultaneously initialized or changed through a pointer to the image bits and through a memory DC. For an example of how to use DIBs see the following Knowledge Base sample article:
186221 SAMPLE: DibSectn.exe Uses DIBSections in Win32
For more information on DIBs, see the article entitled "DIBs and Their Use" by Ron Gery: