IDXGIDecodeSwapChain::SetSourceRect method (dxgi1_3.h)
Sets the rectangle that defines the source region for the video processing blit operation.
The source rectangle is the portion of the input surface that is blitted to the destination surface. The source rectangle is given in pixel coordinates, relative to the input surface.
Syntax
HRESULT SetSourceRect(
const RECT *pRect
);
Parameters
pRect
A pointer to a RECT structure that contains the source region to set for the swap chain.
Return value
This method returns S_OK on success, or it returns one of the error codes that are described in the DXGI_ERROR topic.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps only] |
Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
Target Platform | Windows |
Header | dxgi1_3.h |
Library | Dxgi.lib |