|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.output.bitmap.ImageIOBitmapEncoder
public class ImageIOBitmapEncoder
BitmapEncoder implementation using ImageIO.
Constructor Summary | |
---|---|
ImageIOBitmapEncoder()
Constructs the BitmapEncoder. |
Method Summary | |
---|---|
void |
encode(java.awt.image.BufferedImage image,
java.io.OutputStream out,
java.lang.String mime,
int resolution)
Encodes a BufferedImage to a target format and writes it to the OutputStream. |
java.lang.String[] |
getSupportedMIMETypes()
Returns an array of MIME types supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageIOBitmapEncoder() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
- if the ImageIO API is unavailableMethod Detail |
---|
public java.lang.String[] getSupportedMIMETypes()
getSupportedMIMETypes
in interface BitmapEncoder
public void encode(java.awt.image.BufferedImage image, java.io.OutputStream out, java.lang.String mime, int resolution) throws java.io.IOException
encode
in interface BitmapEncoder
image
- the image to encodeout
- the OutputStream to write the image tomime
- the MIME type in which to encode the imageresolution
- the resolution in dpi of the image
java.io.IOException
- in case of an I/O problem
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |