|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.barbecue.BarcodeImageHandler
Utility class to provide convenience methods for converting barcodes to images and other misc barcode handling.
Method Summary | |
static java.awt.image.BufferedImage |
getImage(Barcode barcode)
Creates an image for a barcode that can be used in other GUI components (e.g. |
static java.util.Set |
getImageFormats()
|
static void |
saveGIF(Barcode barcode,
java.io.File f)
|
static void |
saveJPEG(Barcode barcode,
java.io.File f)
|
static void |
savePNG(Barcode barcode,
java.io.File f)
|
static void |
writeGIF(Barcode barcode,
java.io.OutputStream os)
write a GIF image to an OutputStream |
static void |
writeJPEG(Barcode barcode,
java.io.OutputStream os)
write a JPEG image to an OutputStream |
static void |
writePNG(Barcode barcode,
java.io.OutputStream os)
write a PNG image to an OutputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.Set getImageFormats()
public static java.awt.image.BufferedImage getImage(Barcode barcode) throws OutputException
barcode
- The barcode to convert into an image
OutputException
public static void writeJPEG(Barcode barcode, java.io.OutputStream os) throws OutputException
barcode
- The barcode to outputos
- The output stream to write the image to
OutputException
- If the image cannot be written to the output stream correctlypublic static void saveJPEG(Barcode barcode, java.io.File f) throws OutputException
OutputException
public static void savePNG(Barcode barcode, java.io.File f) throws OutputException
OutputException
public static void saveGIF(Barcode barcode, java.io.File f) throws OutputException
OutputException
public static void writePNG(Barcode barcode, java.io.OutputStream os) throws OutputException
barcode
- The barcode to outputos
- The output stream to write the image to
OutputException
- If the image cannot be written to the output stream correctlypublic static void writeGIF(Barcode barcode, java.io.OutputStream os) throws OutputException
barcode
- The barcode to outputos
- The output stream to write the image to
OutputException
- If the image cannot be written to the output stream correctly
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |