img.naturalHeight or just img.height if the image is fully loaded and a height attrib is not set. the other dimension is called, wait for it, : ".width"...
width * height = area;
The use for this is to create thumbnail versions of images loaded without
having to have separate thumbnail sized images. It can also use info
from client.screenWidth/Height info. As though setting a scaling factor based on this information.
I have been looking or this and haven't found it from the texts I have.
Is this a new feature or just one I've missed in the past.
I do know about preloading images, for rollovers for instance. The question
then becomes: can the onload event be used in conjunction with preloading
code? (perhaps this would be a job for a web worker script).
Actually, in looking back, the height and width arguments fed to new Image()
actually measuring the image to get these values. They either have to be hand coded in the image
for measuring images.
It would be nice if there was a method like Image.getHeight() and Image.getWidth()