You might start by looking at the java.awt.image package. If that won't do it for you, the Java Advanced Imaging API may have what you need (there is an on-line tutorial/book for this). You can also look at ImageJ.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com