Applet.getImage

Applet.getImage

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Image getImage( URL url )
Parameters
url
an absolute URL giving the location of the image.
Returns
the image at the specified URL.
Description
Returns an Image object that can then be painted on the screen. The url that is passed as an argument must specify an absolute URL.

This method always returns immediately, whether or not the image exists. When this applet attempts to draw the image on the screen, the data will be loaded. The graphics primitives that draw the image will incrementally paint on the screen.

See Also
Image



Syntax 2
public Image getImage( URL url, String name )
Parameters
url
an absolute URL giving the base location of the image.
name
the location of the image, relative to the url argument.
Returns
the image at the specified URL.
Description
Returns an Image object that can then be painted on the screen. The url argument must specify an absolute URL. The name argument is a specifier that is relative to the url argument.

This method always returns immediately, whether or not the image exists. When this applet attempts to draw the image on the screen, the data will be loaded. The graphics primitives that draw the image will incrementally paint on the screen.

See Also
Image