Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

16 bits bit depth

I have an image viewed in an applet. How do I save the image as 16 bits bit depth png format? I'm using java.

like image 801
user287663 Avatar asked Mar 22 '10 10:03

user287663


1 Answers

Conversion to 16 bit is not a part of saving the image data. You'll first have to convert the image data itself by copying to to a BufferedImage with a 16 bit ColorModel. Then just save the result as PNG.

like image 180
Michael Borgwardt Avatar answered Oct 07 '22 14:10

Michael Borgwardt