Class BarcodeGenerator


class BarcodeGenerator
extends java.lang.Object

CommandLine barcode image files generator.

java jbars.BarcodeGenerator OutputFileName BarcodeType code sizeY [-fontName=FontName] [-fontSize=FontSize] [-fontStyle=FontStyle] [-transparent] [-rotation=rotation] [-barColor=BarColor] [-textColor=TextColor] [-alignment=textAlignment] [-dontShowText]

BarcodeType: CODE128, CODE93,INTER25
code: The barcode code to print
sizeY: pixel height of the image(X size is calculated to the non-distorting optimun size)
*Optional* fontName: font to use in the text, must be a VM supported font
*Optional* fontSize: size of the font
*Optional* fontStyle: PLAIN|BOLD|ITALIC
*Optional* transparent: if present the backgroud will be transparent
*Optional* rotation: degrees to rotate de image: 0,90,180 or 270
*Optional* barColor: color to use for the bars in hexadecimal ARBG format, 0x12C4A276 for example
*Optional* extColor: color to use for the text in hexadecimal ARBG format, 0x12C4A276 for example
*Optional* textAlignment: text alignment: LEFT, RIGHT OR CENTER
*Optional* dontShowText: if present no text will be shown

Andres Ederra

Constructor Summary
Method Summary
static void main(java.lang.String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public BarcodeGenerator()
Method Detail


public static void main(java.lang.String[] args)