Share via


CBaseControlVideo::CheckSourceRect (Compact 2013)

3/26/2014

Determines if a source rectangle is valid.

Syntax

virtual HRESULT CheckSourceRect(
  RECT* pSourceRect
);

Parameters

  • pSourceRect
    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

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseControlVideo Class