Barcode4j使用方法.docVIP

  • 199
  • 0
  • 约6.98千字
  • 约 6页
  • 2017-11-17 发布于河南
  • 举报
Barcode4j使用方法

Barcode4j使用方法 1-using the JavaBean API public static void generateCode128Barcode(File file, String code) { Code128Bean bean = new Code128Bean(); final int dpi = 150; //barcode bean.setModuleWidth(0.21); bean.setHeight(15); bean.doQuietZone(true); bean.setQuietZone(2);//两边空白区 //human-readable bean.setFontName(Helvetica); bean.setFontSize(3); bean.setMsgPosition(HumanReadablePlacement.HRP_BOTTOM); OutputStream out = null; try { out = new FileOutputStream(file); B

文档评论(0)

1亿VIP精品文档

相关文档