If I load a jpeg into an ImageIcon, is there a way to resize the image at
runtime? I've done work in several other languages and with different
tools, but I'm new to Swing. Perhaps there's a better control, but I'm not
seeing it.
Any help appreciated.
---Michael
Andrew Thompson - 10 Sep 2004 05:37 GMT
> If I load a jpeg into an ImageIcon, is there a way to resize the image at
> runtime?
Try..
<http://www.geocities.com/marcoschmidt.geo/java-image-file-code-examples.html>
"Load an image, scale it to thumbnail size and save it as JPEG"
HTH

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
ak - 10 Sep 2004 14:36 GMT
> If I load a jpeg into an ImageIcon, is there a way to resize the image at
> runtime? I've done work in several other languages and with different
> tools, but I'm new to Swing. Perhaps there's a better control, but I'm not
> seeing it.
ImageroReader supports loading subsampled (1/8, 1/4, 1/2) JPEGs.
http://reader.imagero.com/download/

Signature
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader