本文整理汇总了Java中net.sourceforge.barbecue.BarcodeFactory.createCode128方法的典型用法代码示例。如果您正苦于以下问题:Java BarcodeFactory.createCode128方法的具体用法?Java BarcodeFactory.createCode128怎么用?Java BarcodeFactory.createCode128使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sourceforge.barbecue.BarcodeFactory
的用法示例。
在下文中一共展示了BarcodeFactory.createCode128方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: outputtingBarcode128x1
import net.sourceforge.barbecue.BarcodeFactory; //导入方法依赖的package包/类
public static void outputtingBarcode128x1() throws BarcodeException,
IOException, OutputException {
Barcode barcode3;
barcode3 = BarcodeFactory.createCode128("CODE128x1");
barcode3.setResolution(300);
BarcodeImageHandler.savePNG(barcode3, new File("Code128-1.png"));
}
示例2: outputtingBarcode128x2
import net.sourceforge.barbecue.BarcodeFactory; //导入方法依赖的package包/类
public static void outputtingBarcode128x2() throws BarcodeException,
IOException, OutputException {
Barcode barcode3;
barcode3 = BarcodeFactory.createCode128("2HgH328355316700000241500100");
barcode3.setResolution(300);
BarcodeImageHandler.savePNG(barcode3, new File("Code128-2.png"));
}
示例3: outputtingBarcode128x3
import net.sourceforge.barbecue.BarcodeFactory; //导入方法依赖的package包/类
public static void outputtingBarcode128x3() throws BarcodeException,
IOException, OutputException {
Barcode barcode3;
barcode3 = BarcodeFactory.createCode128("Code128-3");
barcode3.setResolution(300);
BarcodeImageHandler.savePNG(barcode3, new File("Code128-3.png"));
}
示例4: outputtingBarcode128x4
import net.sourceforge.barbecue.BarcodeFactory; //导入方法依赖的package包/类
public static void outputtingBarcode128x4() throws BarcodeException,
IOException, OutputException {
Barcode barcode3;
barcode3 = BarcodeFactory
.createCode128("314159265358979323846264338327950288");
barcode3.setResolution(300);
BarcodeImageHandler.savePNG(barcode3, new File("Code128-4.png"));
}
示例5: createBaseBarcode
import net.sourceforge.barbecue.BarcodeFactory; //导入方法依赖的package包/类
@Override
protected Barcode createBaseBarcode(BarcodeInfo barcodeInfo)
throws BarcodeException
{
return BarcodeFactory.createCode128(barcodeInfo.getCode());
}