Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone 7 如何在Windows Phone 7中更改图像的方向_Windows Phone 7_Xaml_Camera - Fatal编程技术网

Windows phone 7 如何在Windows Phone 7中更改图像的方向

Windows phone 7 如何在Windows Phone 7中更改图像的方向,windows-phone-7,xaml,camera,Windows Phone 7,Xaml,Camera,我一直在尝试设置使用相机拍摄的图像的方向,但没有成功。这是我的代码: <Image Name="img_PicTest" Stretch="Fill" Width="207" Source="{Binding Capture}" Margin="0,13,0,0"> <Image.RenderTransform> <RotateTr

我一直在尝试设置使用相机拍摄的图像的方向,但没有成功。这是我的代码:

<Image Name="img_PicTest" Stretch="Fill" Width="207" Source="{Binding Capture}"  Margin="0,13,0,0">                       
                    <Image.RenderTransform>
                        <RotateTransform Angle="{Binding CameraTransform}"/>
                    </Image.RenderTransform>
                </Image>


当我将CameraTransform设置为“0”时,我可以在UI中完美地看到图像。但是如果我把它设置为180,我只会看到一个空白的占位符

确保设置了RenderTransferMorigin

<Image Name="img_PicTest" Stretch="Fill" Width="207" Source="{Binding Capture}" RenderTransformOrigin=".5,.5" Margin="0,13,0,0">