求教,谁会利用zxing生成带下方数字的一维条形码?

szy45138 2014-06-26 03:20:43
如题,请用过zxing的高手教教我,生成一维条形码要带数字,我现在弄的就是不带数字,不是二维,谢谢
...全文
2771 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_35828145 2016-09-30
  • 打赏
  • 举报
回复
EncodingOptions options = new EncodingOptions(); options.Width = this.pictureBox1.Width; options.Height = this.pictureBox1.Height; options.PureBarcode=true;//可以设置这个属性是否显示条码底部内容true为不显示false反之 BarcodeWriter writer = new BarcodeWriter(); writer.Options = options; writer.Format = BarcodeFormat.CODE_128; Bitmap img = writer.Write("160800008"); this.pictureBox1.Image = img;
qq_35828145 2016-09-30
  • 打赏
  • 举报
回复
是用什么语言开发
c#的如下
//生成条行码
using ZXing;
using ZXing.Common;
using ZXing.Rendering;
//生成二维码
using ZXing.QrCode;
using ZXing.QrCode.Internal;

using System.Drawing.Printing;

EncodingOptions options = new EncodingOptions();
options.Width = this.pictureBox1.Width;
options.Height = this.pictureBox1.Height;
BarcodeWriter writer = new BarcodeWriter();
writer.Options = options;
writer.Format = BarcodeFormat.CODE_128;
Bitmap img = writer.Write("160800008");
this.pictureBox1.Image = img;




guo6409535 2016-04-01
  • 打赏
  • 举报
回复
我也碰到这个问题了,你解决了没

3,424

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧