output to BMP possible?
Jorg Heymans <[email protected]> Wed, 19 Nov 2003 15:45:08 +0100
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I can't get below code to work even though i installed JAI and added the
jars to my classpath. The docs state that BMP output should be possible
with jai and jdk 1.4.1 (http://krysalis.org/barcode/output-formats.html)
BitmapCanvasProvider provider =
new BitmapCanvasProvider(
out,
"image/bmp",
100,
BufferedImage.TYPE_BYTE_BINARY,
false);
Variations on the image/bmp like image/x-bmp also did not work.
java.lang.UnsupportedOperationException: No BitmapEncoder available for
image/bmp
at
org.krysalis.barcode.output.bitmap.BitmapEncoderRegistry.getInstance(BitmapEncoderRegistry.java:185)
at
org.krysalis.barcode.output.bitmap.BitmapCanvasProvider.finish(BitmapCanvasProvider.java:120)
Iterating on the mimetypes of BitmapEncoderRegistry gives only 3
outputformats
image/png
image/jpeg
image/x-png
Any thoughts?
Jorg
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/