Share via


CD2DBitmap::CopyFromBitmap

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

HRESULT CopyFromBitmap(
   const CD2DBitmap* pBitmap,
   const CD2DPointU* destPoint = NULL,
   const CD2DRectU* srcRect = NULL
);

Parameters

  • pBitmap
    The bitmap to copy from

  • 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 bitmap 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