CODViewport::DrawImage

BOOLCODViewport::DrawImage(SECImage*pImage, CDC*pDC)

Draws contents of viewport to an image.

Defined in: OdViewport.cpp

Return Value

TRUE if bitmap object successfully created, otherwise FALSE.

Parameters

pImage

Pointer to bitmapped image to draw into.

pDC

Pointer to device context that bitmap must be compatible with.

Comments

This function creates a memory DC and device-dependent bitmap compatible with the device context passed in. If the DC passed in is NULL, then the screen DC is used. The size of the bitmap created matches the virtual size of the viewport. The viewport is drawn onto the memory DC and then the SECImage::CreateFromBitmap() method is called to copy the DDB to the SECImage object in the correct format.