2
我使用PhotoCamera
選項拍攝快照。一旦圖像捕捉完成,我將VideoBrush
設置爲xaml中的Canvas。但視頻觀衆比原來實際旋轉......我我不知道可能是什麼問題..如何在Windows手機中旋轉相機查看器?
我的代碼..
myCamera = new PhotoCamera(CameraType.Primary);
myCamera.CaptureImageAvailable += new EventHandler<ContentReadyEventArgs>(CameraCaptureImageAvailable);
VideoBrush videobrush = new VideoBrush();
videobrush.SetSource(myCamera);
canvasCameraView.Background = videobrush;
誰能幫助我?
你看到http://stackoverflow.com/questions/6612562/viewfinder-orientation-with-windows-phone- 7芒果photocamera? – gbanfill