如何在 Windows Phone 商店应用程序 8.1 相机(MediaCapture)预览大小(全屏)上调整 ZXing? [英] How to adjust ZXing on windows phone store app 8.1 camera (MediaCapture) preview size (full screen)?

查看:52
本文介绍了如何在 Windows Phone 商店应用程序 8.1 相机(MediaCapture)预览大小(全屏)上调整 ZXing?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目在这里:(https://github.com/79144876/ZXingStoreApp)我在我的 Windows Phone 8.1 项目中添加了 zxing.Zxing 库在这里:(https://zxingnet.codeplex.com/SourceControl/latest#trunk/Clients/WindowsRTDemo/MainPage.xaml.cs)但是预览尺寸没有全屏显示.所以,有谁知道如何更改预览尺寸?我有 SetResolution,但仍然不是全屏.谢谢.

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.

推荐答案

在我的代码中我这样做

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

在您的情况下,将 CaptureView 替换为 VideoCapture

In your case replace CaptureView to VideoCapture

但现在通用应用程序的 zxing 效果很差.MediaCapture 不是从相机获取数据的好选择:(

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

这篇关于如何在 Windows Phone 商店应用程序 8.1 相机(MediaCapture)预览大小(全屏)上调整 ZXing?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆