【发布时间】:2015-04-25 03:37:52
【问题描述】:
如果我执行以下操作,我正在使用 ZXing.Net 构建一个需要对 16 位全数字字符串进行编码的应用程序:
ZXing.Common.EncodingOptions qr_options = new ZXing.Common.EncodingOptions();
qr_options.Width = 144;
qr_options.Height = 144;
qr_options.Hints.Add(ZXing.EncodeHintType.DISABLE_ECI, true);
IBarcodeWriter qr_wr = new BarcodeWriter() { Format = BarcodeFormat.QR_CODE, Options = qr_options};
OutputImg = (WriteableBitmap)qr_wr.Write(MyAllNumberString).ToBitmap();
我得到一个编码为数字的二维码,它会生成一个不同的原始字节数组。我需要在某处进行设置,以便将数字字符串编码为字母数字字符串吗?
【问题讨论】: