Photo Camera.Orientation总是90?

时间:2013-12-12 06:23:38

标签: c# windows-phone-8 windows-runtime windows-phone

为什么PhotoCamera类的Orientation属性总是为90,无论我是从横向切换到肖像还是反过来?

MSDN文档将此属性描述为:

  

获取取景器画笔需要顺时针旋转以与相机传感器对齐的度数。

如果是这种情况,当我将相机置于LandscapeLeft模式时,不应该将Orientation属性设为0吗?

我在这里缺少什么?

[重现此步骤的示例步骤]

从此microsoft链接下载示例代码。

在MainPage.xaml集中     SupportedOrientations = “PortraitOrLandscape”

在MainPage.xaml.cs中,修改OnOrientationChanged方法以打印Camera.Orientation。

protected override void OnOrientationChanged(OrientationChangedEventArgs e)
    {
        if (cam != null)
        {
            System.Diagnostics.Debug.WriteLine(cam.Orientation.ToString());

0 个答案:

没有答案