Share via


IMixerPinConfig::SetRelativePosition (Compact 2013)

3/26/2014

The SetRelativePosition method sets the position of the stream in the display window.

Syntax

HRESULT SetRelativePosition(
   DWORD dwLeft,
    DWORD dwTop,
    DWORD dwRight,
    DWORD dwBottom
);

Parameters

Parameter

Description

dwLeft

[in] Value specifying the x-coordinate in the upper-left corner of the display window.

dwTop

[in] Value specifying the y-coordinate in the upper-left corner of the display window.

dwRight

[in] Value specifying the x-coordinate in the bottom-right corner of the display window.

dwBottom

[in] Value specifying the y-coordinate in the bottom-right corner of the display window.

Return Value

Returns an HRESULT value. Possible values include the following:

Value

Description

E_INVALIDARG

Coordinates not in the {0, 0, 10,000, 10,000} range.

S_OK

Success.

Remarks

This method assumes window coordinates of {0, 0, 10,000, 10,000}. Therefore, if you want your video stream to be rendered in the bottom right quarter of the display window, you would call this method with the parameters {5,000, 5,000, 10,000, 10,000}.

Note Values greater than 10,000 are invalid and will cause an error.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IMixerPinConfig Interface
IMixerPinConfig2 Interface