The core API's that ship with the JDK don't support image type conversion. Sun made an attempt at a library deemed
Java Advanced Imaging API but has been tossed by the way side for quite some time, if horrible slow, and quite dated.
There is a really good API called
ImageMagick. It is a native API but has binding for several languages, including one for Java called
JMagick that you might find helpful.