|
|
Q4002 How can I preload an image before I paint it?
irt.org | Knowledge Base | Java | Q4002 [ previous next ] Q4002 How can I preload an image before I paint it?Use ImageObserver interface, ImageObserver is an interface used to receive notification as an image is being generated. ImageObserver defines only one method: imageUpdate(). The following code waits until the image is completely loaded before snapping it onto the screen in a single repaint.
|
-- div -->
|