Microsoft DirectX 9.0

CDrawImage::SetSourceRect

The SetSourceRect method sets the source rectangle.

Syntax

void SetSourceRect(
    RECT *pSourceRect
);

Parameters

pSourceRect

Pointer to a RECT structure that defines the new source rectangle.

Return Value

No return value.

Remarks

The owning filter should call this method if the source rectangle changes; for example, in response to an IBasicVideo::SetSourcePosition call.

Validate the rectangle given in pSourceRect before calling this method, to make sure it does not extend beyond the native video size.

See Also