I am reading color sensor values from an Arduino in 10bit that I use in a sketch. The result I save to a file. The result however is always a 8bit color depth image.
The only thing I could imagine to do was this:
colorMode(RGB, 65535);
I couldn't even find helpful hints in Java's BufferedImage documentation.