Compartilhar via


IMSVidVideoRenderer::put_ClippedSourceRect

 
Microsoft DirectShow 9.0

IMSVidVideoRenderer::put_ClippedSourceRect

This topic applies to Windows XP or later.

The put_ClippedSourceRect method specifies the clipping rectangle on the video source.

Syntax

  HRESULT put_ClippedSourceRect(
  
  IMSVidRect*
  
  pRect
  
  );

Parameters

  pRect

[in]  Pointer to an IMSVidRect interface that specifies the rectangle.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

If the current clipping mode is sslClipByClipRect, the VMR clips the video image to the video source rectangle and stretches this to fill the Video Control's video window. For more information, see IMSVidVideoRenderer::put_SourceSize.

Example Code

The following example clips the video image to the upper left corner of the source rectangle.

  

Requirements

  Header: Dshow.h.

  Library: Quartz.dll.

See Also