Example usage for com.itextpdf.text.pdf BarcodeInter25 createImageWithBarcode

List of usage examples for com.itextpdf.text.pdf BarcodeInter25 createImageWithBarcode

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf BarcodeInter25 createImageWithBarcode.

Prototype

public Image createImageWithBarcode(PdfContentByte cb, BaseColor barColor, BaseColor textColor) 

Source Link

Document

Creates an Image with the barcode.

Usage

From source file:org.unesco.jisis.printsort.BarCodeGenerator.java

/** creating a barcode image using BarCodeInter25 for myText*/
public Image createBarcodeInter25(String myText) {
    BarcodeInter25 myBarcode25 = new BarcodeInter25();
    myBarcode25.setGenerateChecksum(true);
    myBarcode25.setCode(myText);//  w  ww.j a v a2 s.  com
    Image myBarCodeImageInter25 = myBarcode25.createImageWithBarcode(contentByte, null, null);
    return myBarCodeImageInter25;
}