public final class BarcodeImageHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
getImage(Barcode barcode)
Creates an image for a barcode that can be used in other GUI
components (e.g.
|
static Set |
getImageFormats() |
static void |
saveGIF(Barcode barcode,
File f) |
static void |
saveJPEG(Barcode barcode,
File f) |
static void |
savePNG(Barcode barcode,
File f) |
static void |
writeGIF(Barcode barcode,
OutputStream os)
write a GIF image to an OutputStream
|
static void |
writeJPEG(Barcode barcode,
OutputStream os)
write a JPEG image to an OutputStream
|
static void |
writePNG(Barcode barcode,
OutputStream os)
write a PNG image to an OutputStream
|
public static Set getImageFormats()
public static BufferedImage getImage(Barcode barcode) throws OutputException
barcode - The barcode to convert into an imageOutputExceptionpublic static void writeJPEG(Barcode barcode, OutputStream os) throws OutputException
barcode - The barcode to outputos - The output stream to write the image toOutputException - If the image cannot be written to the output stream correctlypublic static void saveJPEG(Barcode barcode, File f) throws OutputException
OutputExceptionpublic static void savePNG(Barcode barcode, File f) throws OutputException
OutputExceptionpublic static void saveGIF(Barcode barcode, File f) throws OutputException
OutputExceptionpublic static void writePNG(Barcode barcode, OutputStream os) throws OutputException
barcode - The barcode to outputos - The output stream to write the image toOutputException - If the image cannot be written to the output stream correctlypublic static void writeGIF(Barcode barcode, OutputStream os) throws OutputException
barcode - The barcode to outputos - The output stream to write the image toOutputException - If the image cannot be written to the output stream correctlyCopyright © 2003-2013 barbecue.sourceforge.net. All Rights Reserved.