Example usage for com.lowagie.text.pdf BarcodeInter25 createAwtImage

List of usage examples for com.lowagie.text.pdf BarcodeInter25 createAwtImage

Introduction

In this page you can find the example usage for com.lowagie.text.pdf BarcodeInter25 createAwtImage.

Prototype

public java.awt.Image createAwtImage(Color foreground, Color background) 

Source Link

Document

Creates a java.awt.Image.

Usage

From source file:org.jrimum.bopepo.pdf.CodigoDeBarras.java

License:Apache License

public Image toImage() {

    // Montando o cdigo de barras.
    BarcodeInter25 barCode = new BarcodeInter25();
    barCode.setCode(this.write());

    barCode.setExtended(true);//  www .  j  av a  2s  . c o  m
    barCode.setBarHeight(35);
    barCode.setFont(null);
    barCode.setN(3);

    return barCode.createAwtImage(Color.BLACK, Color.WHITE);
}