CD2DBitmap::CopyFromMemory
Copies the specified region from memory into the current bitmap
HRESULT CopyFromMemory(
const void *srcData,
UINT32 pitch,
const CD2DRectU* destRect = NULL
);
Parameters
srcData
The data to copypitch
The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory paddingdestRect
In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied
Return Value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Header: afxrendertarget.h