Delen via


MediaCapture.SetPreviewRotation(VideoRotation) Method

Definition

Rotates the video preview stream.

public:
 virtual void SetPreviewRotation(VideoRotation value) = SetPreviewRotation;
void SetPreviewRotation(VideoRotation const& value);
public void SetPreviewRotation(VideoRotation value);
function setPreviewRotation(value)
Public Sub SetPreviewRotation (value As VideoRotation)

Parameters

value
VideoRotation

The amount by which to rotate the video.

Windows requirements

App capabilities
backgroundMediaRecording microphone webcam

Remarks

For how-to guidance on handling orientation when using the camera, see Handle device orientation with MediaCapture.

Applies to