com.java4less.rbarcode
Class BarCodeEncoder
java.lang.Object
com.java4less.rbarcode.BarCodeEncoder
public class BarCodeEncoder
- extends java.lang.Object
Use this class to export your barcodes to a image file.
Example:
BarCode bc=new BarCode();
bc.setSize(400,200); // important, set size
....
new BarCodeEncoder(bc,"GIF","file.gif");
Constructor Summary |
BarCodeEncoder(BarCode c,
java.lang.String psFormat,
java.lang.String psFile)
Saves the current barcode to a graphics file (gif , png or jpeg). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
result
public boolean result
BarCodeEncoder
public BarCodeEncoder(BarCode c,
java.lang.String psFormat,
java.lang.String psFile)
Saves the current barcode to a graphics file (gif , png or jpeg). The format can be "GIF", "PNG" or "JPEG". Note that:
The GIF encoder must be downloaded from: http://www.acme.com/resources/classes/Acme.tar.gz
The PNG encoder must be downloaded from: png encoder from http://209.51.137.74/pngencoder-1.0.jar
In order to use the JPEG encoder you must have the package com.sun.image.codec.jpeg installed (It is only available for java 1.2 or later.).