Поделиться через


IMixerOCX::SetDrawRegion

 
Microsoft DirectShow 9.0

IMixerOCX::SetDrawRegion

The SetDrawRegion method specifies the location and dimensions of the video and clipping rectangles in screen coordinates.

Syntax

  HRESULT SetDrawRegion(
  LPPOINT  lpptTopLeftSC,
  LPCRECT  prcDrawCC,
  LPCRECT  lprcClip
);

Parameters

lpptTopLeftSC

[in]  Specifies the top left of the video rectangle in screen coordinates. (The Overlay Mixer filter ignores this parameter. This parameter should be set to NULL.)

prcDrawCC

[in]  Specifies the video rectangle in screen coordinates. This parameter cannot be NULL.

lprcClip

[in]  Specifies the clipping rectangle in screen coordinates. This parameter cannot be NULL.

Return Values

The method returns an HRESULT value. Possible values include those in the following table.

Return code Description
S_OK The method succeeded.
E_INVALIDARG Either prcDrawCC or lprcClip are NULL.

Requirements

Header: Include Mixerocx.h.

Library: Use Strmiids.lib.

See Also