I\'m trying to write 16 bit grayscale imagedata to a png using BufferedImage.TYPE_USHORT_GRAY. Normally I write to an image like so:
BufferedImage image = ne
As pst already commented below my question:
Try using the Raster directly?
Accessing the Raster directly solved the problem.