我在这里的项目:( https://github.com/79144876/ZXingStoreApp )我有加斑马线上我的Windows Phone 8.1 project.The斑马线库这里:( https://zxingnet.codeplex.com/SourceControl/latest#trunk/客户端/ WindowsRTDemo / MainPage.xaml.cs中 ),但预览大小不完全screen.So,如果谁知道如何改变预览大小? 我有SetResolution,但还是不能全屏显示。 谢谢。
Answer 1:
在我的代码我这样做
_capture.SetPreviewRotation(VideoRotation.Clockwise90Degrees);
_capture.SetPreviewMirroring(true);
CaptureView.Source = _capture;
CaptureView.Stretch = Stretch.UniformToFill;
在你的情况下更换CaptureView到VideoCapture
但现在斑马线普遍应用工作可怕。 MediaCapture不是好的选择,从摄像头获取的数据:(
文章来源: How to adjust ZXing on windows phone store app 8.1 camera (MediaCapture) preview size (full screen)?