[2647] in java-interest
Beta API and synchronous image loading
daemon@ATHENA.MIT.EDU (Stephen Harris)
Mon Oct 9 16:03:35 1995
From: sweh@mpn.com (Stephen Harris)
To: java-interest@java.sun.com
Date: Mon, 9 Oct 1995 18:55:14 +0100 (BST)
Dear Sirs,
finally started playing with the beta API and noticed that graphics loading
is now asynchronous, and at any time you don't necessarily know what
the width/height of an image is, nor if it really existed.
I'm trying(!) to write a game in hot-java and I don't really want action
paused when a new image needs to be downloaded. Before, I just loaded
the images into arrays with getImage(), but now that can't work; the image
isn't physically loaded until it needs to be displayed.
Does anyone have an idea on how to force preload of the images so that I
can ensure the data is present (and so that .width() and .height() values
are guaranteed to work!)
Thanks in advance,
rgds
Stephen
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com