I don't believe the quality setting is useful here. That value maps to the
contents of the Huffman and Quantization tables.
The image io page states that 2-16bit lossless jpegs can be created using
JPEG-LOSSLESS, is this just based upon the bit depth of the colormodel?
Yes. To be specific the code is this
int bitDepth = renderedImage.getColorModel().getComponentSize(0);
where 'renderedImage' is the one you are trying to write.
Based upon my test image (8bit depth in the colormodel) and the above code,
I get an 8 bit lossless jpeg.
Java Media, Imaging, and Graphics
Sun Microsystems, Inc.
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.