Does anyone know of a QR Code Reader library for a Windows 8 Metro App?

我怕爱的太早我们不能终老 提交于 2019-12-11 18:08:00

问题


We're looking to read some QR codes in a Windows 8 Metro app. .NET libraries we've used in the past can't be referenced in WinRT/Metro and porting them won't be easy because they depend on System.Drawing which isn't in the .NET for Metro style apps. We looked at this by Benjamin Soulier but it didn't seem to work. Any other suggestions or something easy we're missing?

Thanks


回答1:


You can use ZXing.Net: http://zxingnet.codeplex.com/ For Metro apps based upon HTML5/Javascript I'm currently working on a port of zxing.net for Windows Runtime Components WinMD. You can get the source from here https://zxingnet.svn.codeplex.com/svn/branches/WINMD (btw. I'm the creator of ZXing.Net (a port of the java based ZXing))




回答2:


Based on feedback from MS resources, there is nothing built in and no frameworks they were aware of yet.




回答3:


Quick way to try is by using Esponce web service. Make a simple HTTP POST request to http://www.esponce.com/api/v3/decode?format=png and send image data in body. Response should contain something like that:

{"content":"here goes content decoded from QR Code"}

Web services are platform-independent (easy to port) and lightweight on client side.

More details in Esponce API documentation



来源:https://stackoverflow.com/questions/11854270/does-anyone-know-of-a-qr-code-reader-library-for-a-windows-8-metro-app

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