Article View: borland.public.jbuilder.java.language
Article #19389Re: Image.picture.loadfromfile()
From: Matthew Allen
Date: Tue, 10 Feb 1998 00:00
Date: Tue, 10 Feb 1998 00:00
22 lines
985 bytes
985 bytes
Lennys wrote: > does java has a similar method? try this to load and display image. // declare the image variable Image imageVariableName; // assign image file to variable name. imageVariableName = getImage( getDocumentBase(), "whatever.gif"); then to draw the image, i used the following code in the paint method g.drawImage(imageVariableName, xcoordinate, ycoordinate, this) im no expert, but it worked for me. Hope this helps. Matt
Technical Details
Message-ID:
<34DFC5C8.2C7D8BED@bud.cc.swin.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6bltcl$c9t13@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4fcee1ee5e5336 X-Google-Attributes: gidf74b3,public From: Matthew Allen <langas@bud.cc.swin.edu.au> Subject: Re: Image.picture.loadfromfile() Date: 1998/02/10 Message-ID: <34DFC5C8.2C7D8BED@bud.cc.swin.edu.au> X-Deja-AN: 323620584 Content-Transfer-Encoding: 7bit References: <6bltcl$c9t13@forums.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: None Newsgroups: borland.public.jbuilder.java.language