ZXING对图像进行编码和保存
我知道有很多关于 ZXing 的线程,所以很抱歉添加到堆中。我正在使用意图打开条形码扫描仪应用程序来扫描 QRCode。我使用同一个人编写的 IntentIntegrator 类来完成此操作。
我知道您也可以使用意图来生成 QRCode,但是您如何将该图像保存到您的资产文件夹中?我可以通过意图创建代码,但如何保存该图像?
如果已涵盖此内容,我深表歉意,但我在任何地方都找不到示例。
谢谢。
I know there are a lot of threads about ZXing so apologies for adding to the heap. I'm using intents to open up the barcode scanner app to scan a QRCode. I did this with the IntentIntegrator class written by the same guys.
I know you can use intents to generate a QRCode as well, but how would you go about saving that image to your assets folder? I can create the code via intent, but how do I save that image?
Apologies if this has been covered, but I couldn't find an example anywhere.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在应用程序的编码屏幕中,用户可以按菜单并选择共享来发送它或执行用户想要的任何其他操作。如果您想以编程方式检索该图像,不,您不能这样做。但为此,您只想将编码代码实际嵌入到您的应用程序中。 (当然请记住 Apache 许可条款。)
In the app's encode screen, the user can press menu and choose Share to send it or do whatever else the user wants with it. If you want to programmatically retrieve that image, no, you can't do that. But for that, you just want to actually embed the encoding code in your app. (remember the Apache License terms of course.)