Windows Dev Center

IMFCapturePreviewSink::SetRotation method

Rotates the video preview stream.

Syntax


HRESULT SetRotation(
  [in] DWORD dwStreamIndex,
  [in] DWORD dwRotationValue
);

Parameters

dwStreamIndex [in]

The zero-based index of the stream to rotate. You must specify a video stream.

dwRotationValue [in]

The amount to rotate the video, in degrees. Valid values are 0, 90, 180, and 270. The value zero restores the video to its original orientation.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfcaptureengine.h

See also

IMFCapturePreviewSink

 

 

Community Additions

ADD
Show:
© 2015 Microsoft