How to adjust ZXing on windows phone store app 8.1 camera (MediaCapture) preview size (full screen)?

允我心安 提交于 2019-12-13 19:44:31

问题


My project here:(https://github.com/79144876/ZXingStoreApp) I have add zxing on my windows phone 8.1 project.The Zxing library here:(https://zxingnet.codeplex.com/SourceControl/latest#trunk/Clients/WindowsRTDemo/MainPage.xaml.cs) But the preview size does not full screen.So,Anybody who knows how to change the preview size ? And i have SetResolution,but still not full screen. Thanks.


回答1:


In my code I do this

_capture.SetPreviewRotation(VideoRotation.Clockwise90Degrees);
_capture.SetPreviewMirroring(true);
CaptureView.Source = _capture;
CaptureView.Stretch = Stretch.UniformToFill;

In your case replace CaptureView to VideoCapture

But for now zxing for universal apps work terrible. MediaCapture not good choice to get data from camera :(



来源:https://stackoverflow.com/questions/23472248/how-to-adjust-zxing-on-windows-phone-store-app-8-1-camera-mediacapture-preview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!