private void btnRotate_Click_1(object sender, RoutedEventArgs e) { if (captureMgr != null) { if (captureMgr.GetPreviewRotation() == VideoRotation.None) { captureMgr.SetPreviewRotation(VideoRotation.Clockwise90Degrees); } else if (captureMgr.GetPreviewRotation() == VideoRotation.Clockwise90Degrees) { captureMgr.SetPreviewRotation(VideoRotation.Clockwise180Degrees); } else if (captureMgr.GetPreviewRotation() == VideoRotation.Clockwise180Degrees) { captureMgr.SetPreviewRotation(VideoRotation.Clockwise270Degrees); } else if (captureMgr.GetPreviewRotation() == VideoRotation.Clockwise270Degrees) { captureMgr.SetPreviewRotation(VideoRotation.None); } } }