Partager via


IMixerPinConfig::SetRelativePosition (Windows Embedded CE 6.0)

1/6/2010

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.

See Also

Reference

IMixerPinConfig Interface
Overlay Mixer
IMixerPinConfig2 Interface