IMFCapturePreviewSink::SetRotation method (mfcaptureengine.h)

Rotates the video preview stream.

Syntax

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

Parameters

[in] dwStreamIndex

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

[in] dwRotationValue

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

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfcaptureengine.h

See also

IMFCapturePreviewSink