private PreviewOrientation ConvertToPreviewOrientation(VideoRotation rotation) { return((PreviewOrientation)Enum.Parse(typeof(PreviewOrientation), rotation.ToString())); }