Posted By:
Leo_Ge
Posted On:
Monday, August 10, 2009 10:40 AM
I need to display several images in my applet. I use Applet.getImage() Grtaphics.drawImage (...) and implement ImageObserver interface. In ImageObserve.imageUpdate method I added debug prints and I see that next image starts loading only when previous is finished. So if I have 10 images, they are loaded sequentially and it is very slow. Class MediaTracker is not good, as it waits until all images are loaded (though in parallel) and I want to draw each image when it is loaded. So I need something like Applet.getImage + Graphics.drawImage + ImageObserver.imageUpdate but several images in parallel. Is there any solution for thi
More>>
I need to display several images in my applet.
I use Applet.getImage() Grtaphics.drawImage (...) and implement ImageObserver interface.
In ImageObserve.imageUpdate method I added debug prints and I see that next image starts loading only when previous is finished.
So if I have 10 images, they are loaded sequentially and it is very slow.
Class MediaTracker is not good, as it waits until all images are loaded (though in parallel) and I want to draw each image when it is loaded.
So I need something like Applet.getImage + Graphics.drawImage + ImageObserver.imageUpdate but several images in parallel.
Is there any solution for this?
<<Less