posted 18 years ago
You can load it as a BufferedImage with ImageIO (j2se 1.4+) and get the dimensions with the BufferedImage getWidth/Height methods and use this to scale the images to final size. If using an older loading method (eg, ImageIcon, Toolkit getImage) you may need an ImageObserver (any Component) to get the dimensions.