Condividi tramite


IVMRWindowlessControl::SetVideoPosition

 
Microsoft DirectShow 9.0

IVMRWindowlessControl::SetVideoPosition

The SetVideoPosition method sets the source and destination rectangles for the video.

Syntax

  HRESULT SetVideoPosition(

  
  const LPRECT
  
  lpSRCRect
  ,

  
  const LPRECT
  
  lpDSTRect

  );

Parameters

lpSRCRect

[in]  Pointer to a RECT structure that specifies the source rectangle. If NULL, the source rectangle does not change. The default source rectangle is the entire video image.

lpDSTRect

[in]  Pointer to a RECT structure that specifies the destination rectangle. If NULL, the destination rectangle does not change. The default destination rectangle is {0, 0, 0, 0}.

Return Values

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

Error Code Description
VFW_E_WRONG_STATE The VMR is not in windowless mode.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also