C# 中 ZXing.Net 怎样突破 条形码 多识别 数量限制
时间: 2020-05-26来源:博客园
前景提要
C# 中 ZXing.Net 怎样突破 条形码 多识别 数量限制
0 悬赏园豆: 50 [待解决问题] DecodeMultiple 方法最多只能识别 6个 条形码?
代码:如下
//1设置读取条形码的规格
DecodingOptions decoding = new DecodingOptions();
decoding.PossibleFormats = new List<BarcodeFormat>()
{
//BarcodeFormat.EAN_13
BarcodeFormat.All_1D
};//指定读取的格式 //2.进行读取操作 BarcodeReader br = new BarcodeReader(); br.Options = decoding;//指定规格 //Result result = br.Decode(pictureBox1.Image as Bitmap);//进行读取条形码数字 //Image image1 =Image.FromFile("C:\