Monday, November 25, 2002 12:39 PM
Sizing an image and reading/writing JPEG files are two different things. Use of JPEG codecs is covered in the FAQs.
In order to resize an image, simple do this:
Image source = ...;
BufferedImage target = new BufferedImage(200, 300, BufferedImage.TYPE_INT_ARGB); // What type?
Graphics g = target.getGraphics();
g.drawImage(source, 0, 0, 200, 300, (ImageObserver)null);