From Java Tutorial - Spring 1997 Part 3:Graphics and the Abstract Windowing Toolkit Peking Tutorial, Web Certificate -- Spring-Summer 1997. byNancy J. McCracken,Geoffrey C. Fox
This example shows how to get the actual height and width of the image to use in scaling the image under java program control.