DXSrcCopy function

Copies a region of a source surface to a destination surface.

Syntax

HRESULT DXSrcCopy(
  _In_ HDC        hdcDest,
  _In_ int        nXDest,
  _In_ int        nYDest,
  _In_ int        nWidth,
  _In_ int        nHeight,
  _In_ IDXSurface *pSrcSurface,
  _In_ int        nXSrc,
  _In_ int        nYSrc
);

Parameters

  • hdcDest [in]
    A HDC that specifies the destination surface.

  • nXDest [in]
    A value of type int that specifies the x-axis position of the destination image.

  • nYDest [in]
    A value of type int that specifies the y-axis position of the destination image.

  • nWidth [in]
    A value of type int that specifies the width of the source image region to copy.

  • nHeight [in]
    A value of type int that specifies the height of the source image region to copy.

  • pSrcSurface [in]
    A pointer to an IDXSurface interface that specifies the source DXSurface.

  • nXSrc [in]
    A value of type int that specifies the x-axis position of the region to copy in the source image.

  • nYSrc [in]
    A value of type int that specifies the y-axis position of the region to copy in the source image.

Return value

Returns S_OK if successful, or another HRESULT for an error condition.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Dxhelper.h