我使用PhotoCamera
选项来拍摄快照。图像捕获完成后,我将其设置为VideoBrush
xaml 中的 Canvas。但是视频查看器实际上比原来的旋转了......我不确定可能是什么问题......
我的代码..
myCamera = new PhotoCamera(CameraType.Primary);
myCamera.CaptureImageAvailable += new EventHandler<ContentReadyEventArgs>(CameraCaptureImageAvailable);
VideoBrush videobrush = new VideoBrush();
videobrush.SetSource(myCamera);
canvasCameraView.Background = videobrush;
谁能帮我 ?