Why is the following bit of code returns Height: -1 which means that the height is yet not known. How to get height of the image?
try { // Create a
createImage runs in background to load the Image.
use a MediaTracker to wait for the loading and then use getHeight (and use a valid ImageObserver to prevent errors)