CBaseControlVideo::CheckSourceRect

 
Microsoft DirectShow 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.

Requirements

**  Header:** Declared in Ctlutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also