C
crouching_buffy
Hi
I've got some code to load an image using MediaTracker, but it seems a
bit over-the-top to use this class since there's only ever one image
being loaded at any time. Can the same thing be achieved using the
ImageObserver class?
private void loadImage(Image img)
{
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(img, 0);
tracker.waitForID(0);
}
Ta
-Dave-
I've got some code to load an image using MediaTracker, but it seems a
bit over-the-top to use this class since there's only ever one image
being loaded at any time. Can the same thing be achieved using the
ImageObserver class?
private void loadImage(Image img)
{
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(img, 0);
tracker.waitForID(0);
}
Ta
-Dave-