🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1179

Re: Image pixel inspection

#1179
From: John McGrath TeamB
Date: Thu, 18 Apr 2002 21:57
19 lines
1450 bytes
On Thu, 18 Apr 2002 14:21:50 +0100, James Hughes wrote:

> boolean imageReady = buff.getGraphics().drawImage(gif,0, 0, null);
> 
> Now, the imageReady has a value of 'false', which means that
> for some reason the image is not loaded - why?  

Because Java Images do not especially load when they are created.  They 
are loaded in a separate thread.  You can use a MediaTracker to ensure 
that they have been loaded.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.17290b506219e13098b54c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3cbd2d36$1_1@dnews> <MPG.172792c58476aca498b544@newsgroups.borland.com> <3cbec8d4_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,937c9cd9161d2c82
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-04-18 14:59:34 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Image pixel inspection
Date: Thu, 18 Apr 2002 17:57:24 -0400
Message-ID: <MPG.17290b506219e13098b54c@newsgroups.borland.com>
References: <3cbd2d36$1_1@dnews> <MPG.172792c58476aca498b544@newsgroups.borland.com> <3cbec8d4_1@dnews>
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 1019167043 209.92.40.60 (18 Apr 2002 14:57:23 -0700)
Lines: 19
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews