[5320] in java-interest

home help back first fref pref prev next nref lref last post

Synchronous image drawing questions

daemon@ATHENA.MIT.EDU (Brian N. Miller)
Mon Feb 5 23:56:42 1996

Date: Mon, 5 Feb 1996 11:28:31 -0500
From: bnm@bbt.com (Brian N. Miller)
To: java-interest@java.sun.com

1) Since Graphics.drawImage() works asynchronously, code immediately following
its invocation can not assume the image is drawn.  I understand that various
combinations of Component's imageUpdate(), prepareImage(), and/or checkImage()
can be used to both start and signal the finish of an image's download.  I'll
use these if I have to, but I'm hoping someone can point out an easier way to
synchronously draw an image.

2) Is it safe to assume that drawImage() *does* draw synchoronously if the image
has already been prepared previously, either by complete downloading or rendering
off-screen?

3) Short of examining the file, is there any way in Java to tell if a .gif is
interlaced?  Would the sequence of imageUpdate() callbacks give any indication?
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post