Toolkit.prepareImage

Toolkit.prepareImage

Class Overview | Class Members | This Package | All Packages

Syntax
public abstract boolean prepareImage( Image image, int width, int height, ImageObserver observer )
Parameters
image
the image for which to prepare a screen representation.
width
the width of the desired screen representation, or -1.
height
the height of the desired screen representation, or -1.
observer
the ImageObserver object to be notified as the image is being prepared.
Returns
true if the image has already been fully prepared; false otherwise.
Description
Prepares an image for rendering.

If the values of the width and height arguments are both -1, this method prepares the image for rendering on the default screen; otherwise, this method prepares an image for rendering on the default screen at the specified width and height.

The image data is downloaded asynchronously in another thread, and an appropriately scaled screen representation of the image is generated.

This method is called by components prepareImage methods.

Information on the flags returned by this method can be found with the definition of the ImageObserver interface.

See Also
prepareImage, prepareImage, ImageObserver