【c# – 如何在Windows Phone 8.1上使用Zxing创建QR码图像】教程文章相关的互联网学习教程文章

C#MVC用ZXing.Net生成二维码/条形码【代码】【图】

开篇:zxing.net是.net平台下编解条形码和二维码的工具。 首先创建新项目 选择MVC模板 添加一个控制器 在项目引用中的引用ZXing 进行联网下载 控制器需要引用 后台控制器 public string TiaoXing(string name){//设置条形码规格EncodingOptions encoding = new EncodingOptions();encoding.Height = 120;//设置宽高encoding.Width = 200;//生成条形码的图片并保存BarcodeWriter wr ...

Xamarin C#ANDROID的ZXing.Mobile出现问题

我拼命试图让Xamarin.x在Xamarin VS2012 C#中工作,但是我在网上找不到任何东西来回答我的问题!

C# - VS2019调用ZXing.NET实现条码、二维码和带有Logo的二维码生成【代码】【图】

前言 C# WinFrm程序调用ZXing.NET实现条码、二维码和带有Logo的二维码生成。 ZXing.NET导入 GitHub开源库 ZXing.NET开源库githib下载地址:https://github.com/zxing/zxing NuGet包管理 选择安装ZXing.NET v0.16.1版本。前台部署搭建 如下图,创建WinFrm桌面应用程序后,添加如下必要的控件。封装ZXingLibs类 核心代码如下: 注意条形码暂时只支持数字(Requested contents should only contain digits, but got i); 只支持偶数个...

c# – 使用Zxing库,Xamarin.android应用程序扫描时,将屏幕方向锁定为纵向.【代码】

我已经看到它可以在相机配置管理器中完成,但不知道在哪里找到该文件??? 我已经添加:<activity android:name="MainActivity"android:configChanges="keyboardHidden|orientation" android:screenOrientation="portrait"/>现在主要活动被锁定在肖像上,但是当从内部活动运行zxing扫描仪时,屏幕在扫描期间旋转?解决方法:将其添加到Main活动以锁定方向[Activity (Label = "YourLabel", MainLauncher = true, ScreenOrientation = Andr...

如何在C#中使用Aforge.NET和ZXing.NET从WebCamera解码QRCode【代码】

我正在尝试开发一个WindowsForm应用程序,它将使用webcamera来检测QRCode并解码消息.为此我使用AForge.NET和ZXing.NET. 到目前为止,我已经能够弄清楚如何从URI解码QRCode,但我想从webcamera中检测QRCode并对其进行解码. 以下是我的代码示例.public String Decode(Uri uri) {Bitmap image;try{image = (Bitmap)Bitmap.FromFile(uri.LocalPath);}catch (Exception ex){throw new FileNotFoundException("Resource not found: " + uri)...

C#调用摄像头(AForge)实现扫描条码解析(Zxing)功能

网上找了很多代码,都比较零散,下面是我测试过的,可以直接使用。DLL及源码可以通过链接下载。using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;using AForge; using AForge.Controls; using AForge.Imaging; using AForge.Video; using AForge.Video....

c# – 如何在Windows Phone 8.1上使用Zxing创建QR码图像【代码】

我一直在网上搜索Windows Phone 8.1中使用Zxing的代码示例,但是很简单.我在C#中编写,下面是我的代码,到目前为止我已经提出了:BarcodeWriter _writer = new BarcodeWriter();var hello = _writer.Encoder.encode("HelloWhoIsThere", BarcodeFormat.QR_CODE, 350, 350);ZXing.Common.BitMatrix matrix = new ZXing.Common.BitMatrix(359,350);ZXing.Rendering.PixelData rendered = _writer.Renderer.Render(hello, BarcodeFormat....