Brian Pedersen wrote:
> 
> On Sun, 11 Oct 1998, Thomas Okken wrote:
> 
> > Hi all,
> >
> > For Reasons too Complicated to Explain, I would like to implement
> > a set of methods similar to Graphics.drawImage(), only without the
> > ImageObserver argument. These methods should block until the image
> > is completely drawn, i.e. I would like to implement a synchronous
> > variant of drawImage().
> 
> I believe that ImageObserver == null will make the operation synchronous.

I'm not so sure. I use a java.awt.MediaTracker. A snippet:

- - - - - - - - - - - - - - - - - - - - - >8- - - - - - - 
                // forceload image
                if (forceload) {
                        MediaTracker trackie = new MediaTracker(this);
                        trackie.addImage(image, 0);
                        try {
                                trackie.waitForID(0);
                                }
                        catch(InterruptedException oopsie) {}
                        }
- - - - - - - - - - - - - - - - - - - - - >8- - - - - - - 

-- 

Paul Reavis                                      [EMAIL PROTECTED]
Design Lead
Partner Software, Inc.                        http://www.partnersoft.com

Reply via email to