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 completely loaded and its pixels are
no longer being changed, then
drawImage
returns true
.
Otherwise, drawImage
returns false
and as more of
the image becomes available
or it is time to draw another frame of animation,
the process that loads the image notifies
the specified image observer.
img | the specified image to be drawn. This method does
nothing if img is null. | |
x | the x coordinate. | |
y | the y coordinate. | |
observer | object to be notified as more of the image is converted. |
false
if the image pixels are still changing;
true
otherwise.
java.awt.Image, java.awt.image.ImageObserver, java.awt.image.ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int)
Diagram: Graphics