how to conversion multi page Tiff to single JPEG file? :)

I found article from :http://forum.java.sun.com/thread.jspa?threadID=493481but above code will conversion multi page Tiff to many jpg files.I want generate a single jpge file, how to do it?please give me idea. :)thanks.
[261 byte] By [xuzhong1a] at [2007-11-26 12:23:17]
# 1

I didn't look at the code provided, but if it works, just load the jpegs, make a BufferedImage with the dimensions of all the jpegs combined, and use bufferedImage's getGraphics. use the Graphics object to draw all of the individual images onto the bufferedimage and then save the bufferedimage into a jpeg. Problem solved

FortisVenalitera at 2007-7-7 15:23:03 > top of Java-index,Security,Cryptography...