Component.prepareImage

Component.prepareImage

Class Overview | Class Members | This Package | All Packages

Syntax 1
public boolean prepareImage( Image image, ImageObserver observer )
Parameters
image
the Image for which to prepare a screen representation.
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 on this component. The image data is downloaded asynchronously in another thread and the appropriate screen representation of the image is generated.



Syntax 2
public boolean prepareImage( Image image, int width, int height, ImageObserver observer )
Parameters
image
the instance of Image for which to prepare a screen representation.
width
the width of the desired screen representation.
height
the height of the desired screen representation.
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 on this component 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.

See Also
ImageObserver