Load - Scale - Save

Hi

I've to programm an application that scales pictures. So I load the image like this (java.awt.*; java.awt.image.*;)
Image i; i = Toolkit.getDefaultToolkit().getImage("filename");
Image j; j = i.getScaledInstance(10, 10, 0);

Now.. this works... (I hope)... but how can I save this pic now?? Only as BMP... about JPGs and GIFs I will think later...

thanks
[396 byte] By [developer-network] at [2007-11-15 20:13:43]