Need help with Image

I d'like to1. read a tif image from a file2. render two tif images (at different place) into a bufferedimage3. save the bufferedimage in tiff filei know how to do 3,have you got an idea of the way to programm 1 and 2?thank you very much for your help
[300 byte] By [richie03] at [2007-9-27 14:21:52]
# 1
1 & 3 check out the imageio package, http://java.sun.com/j2se/1.4/docs/api/javax/imageio/package-summary.html2 look at BufferedImage.setRGB()2 take a peak at Graphics.drawImage() and Image.getGraphics()
zparticle at 2007-7-5 22:12:06 > top of Java-index,Other Topics,Java Game Development...
# 2
i don't know how to get from a tiff file an object of "Image" type that i can use in a method drawImage(Object Image,....)
richie03 at 2007-7-5 22:12:06 > top of Java-index,Other Topics,Java Game Development...
# 3
BufferedImage is a sub-class of Image so anywhere you can use Image you can pass in a BufferedImage. The javax.imageio.ImageIO.read() methods all return a BufferedImage object I belive. Hope this helps.
zparticle at 2007-7-5 22:12:06 > top of Java-index,Other Topics,Java Game Development...
# 4
You could also look at doing:URL url = this.class.getResource("space.png");ImageIcon ii = new ImageIcon(url);Image i = ii.getImage();
zparticle at 2007-7-5 22:12:06 > top of Java-index,Other Topics,Java Game Development...