使用字符串输出对条形码进行编码

时间:2016-01-11 05:55:47

标签: c# windows-phone-8.1 zxing

我一直在尝试使用字符串输出将CODE 39条形码编码为图像,如下图所示。我设置PureBarcode = false,但输出只是一个没有字符串的条形码。感谢您的帮助

 barcodewritter = new BarcodeWriter
                  {
                    Format = ZXing.BarcodeFormat.CODE_39,
                    Options = new ZXing.Common.EncodingOptions
                    {
                        Height = 100,
                        Width = 500,
                        Margin = 30,
                        PureBarcode=false
                    }
                  };

1 个答案:

答案 0 :(得分:0)

ZXing.Net for Windows Phone不支持图像下方条形码内容的输出。它仅适用于Windows窗体以及条形码类型EAN-8和EAN-13。 如果您想要样本中显示的输出,则必须自己将文本添加到图像中(例如,实现IRenderer接口并将其与BarcodeWriter一起使用)。

相关问题