如何使用 zxing 条码阅读应用程序实现缩放功能? [英] How to implement zooming feature with zxing barcode reading application?

查看:44
本文介绍了如何使用 zxing 条码阅读应用程序实现缩放功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 zxing 条码读取应用程序.我需要在应用程序中添加缩放功能,以便我可以从更远的距离扫描条形码.

I'm having the zxing barcode reading application. I need to add zooming feature in the application, so that i can scan barcode from larger distance.

即扫描条码时,应该可以放大相机预览.

i.e. during scanning the barcode, it should be able to zoom the camera preview.

我该怎么做?

谢谢.

推荐答案

缩放并没有真正的帮助,因为它是数字缩放.事实上,它往往会损害扫描.它只能通过让用户进一步阻止来提供帮助,但您可以使用其他 UI 提示来做到这一点.但是,设置缩放并不难.您可以在 CameraConfigurationManagerCamera.Parameters 中设置您想要的任何缩放.

Zooming doesn't really help, because it's digital zoom. In fact it tends to hurt scanning. It only helps by making the user hold back further, but you can do that with other UI prompts. But, it's not hard to set zoom. You set whatever zoom you want in Camera.Parameters in CameraConfigurationManager.

这篇关于如何使用 zxing 条码阅读应用程序实现缩放功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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