Draws as much of the specified image as is currently available. The image is drawn with its top-left corner at (
x,
y) in this graphics context's coordinate space. Transparent pixels in the image do not affect whatever pixels are already there.
This method returns immediately in all cases, even if the complete image has not yet been loaded, and it has not been dithered and converted for the current output device.
If the image has not yet been completely loaded, then drawImage
returns false
. As more of the image becomes available, the process that draws the image notifies the specified image observer.
@param img the specified image to be drawn.
@param x the x coordinate.
@param y the y coordinate.
@param observer object to be notified as more ofthe image is converted.
@see java.awt.Image
@see java.awt.image.ImageObserver
@see java.awt.image.ImageObserver#imageUpdate(java.awt.Image,int,int,int,int,int)