If I have a PNG image opened as a BufferedImage, is it possible to reduce the palette in the PNG image so that there is less colour (less bits per pixel / colour depth)?
For example, if you look at Colour depth in Wikipedia, I would like to use 16 colours in my PNG image (3rd image down the right hand side).
If it’s not possible with Java 2D, is there a library out there that will allow me to do this effectively?
I think Martijn Courteaux was right:
Here is example implementation: