Share via


CD2DBitmap::CopyFromRenderTarget

Copies the specified region from the specified render target into the current bitmap

HRESULT CopyFromRenderTarget(
   const CRenderTarget* pRenderTarget,
   const CD2DPointU* destPoint = NULL,
   const CD2DRectU* srcRect = NULL
);

Parameters

  • pRenderTarget
    The render target that contains the region to copy

  • destPoint
    In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied

  • srcRect
    The area of renderTarget to copy

Return Value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DBitmap Class