Microsoft DirectX 9.0

CBaseControlVideo::CheckSourceRect

Determines if a source rectangle is valid.

Syntax

virtual HRESULT CheckSourceRect(
    RECT *pSourceRect
);

Parameters

pSourceRect

Pointer to the source rectangle to check.

Return Value

Returns E_INVALIDARG if not valid; otherwise, returns NOERROR (S_OK).

Remarks

This member function checks that the source rectangle requested does not exceed the available source video. The left and top coordinates cannot be negative, and the width and height cannot exceed the right and bottom of the video.

See Also