public abstract boolean drawImage (Image img, int x, int y, int width, int height, ImageObserver observer)

Draws as much of the specified image as has already been scaled to fit inside the specified rectangle.

The image is drawn inside the specified rectangle of this graphics context's coordinate space, and is scaled if necessary. Transparent pixels do not affect whatever pixels are already there.

This method returns immediately in all cases, even if the entire image has not yet been scaled, dithered, and converted for the current output device. If the current output representation is not yet complete, then drawImage returns false. As more of the image becomes available, the process that loads the image notifies the image observer by calling its imageUpdate method.

A scaled version of an image will not necessarily be available immediately just because an unscaled version of the image has been constructed for this output device. Each size of the image may be cached separately and generated from the original data in a separate image production sequence.

Parameters:
img    the specified image to be drawn. This method does nothing if img is null.
x    the x coordinate.
y    the y coordinate.
width    the width of the rectangle.
height    the height of the rectangle.
observer    object to be notified as more of the image is converted.

Returns:  false if the image pixels are still changing; true otherwise.

See also:
java.awt.Image, java.awt.image.ImageObserver, java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)