Share via


Component.imageUpdate

Class Overview | Class Members | This Package | All Packages

Syntax

public boolean imageUpdate( Image img**, int** flags**, int** x**, int** y**, int** w**, int** h )

Parameters
  • img
    the image being observed.
  • infoflags
    see imageUpdate for more information.
  • x
    the x coordinate.
  • y
    the y coordinate.
  • width
    the width.
  • height
    the height.
Returns

true if the flags indicate that the image is completely loaded; false otherwise.

Description

Repaints the component when the image has changed. This imageUpdate method of an ImageObserver is called when more information about an image which had been previously requested using an asynchronous routine such as the drawImage method of Graphics becomes available. See the definition of imageUpdate for more information on this method and its arguments.

The imageUpdate method of Component incrementally draws an image on the component as more of the bits of the image are available.

If the system property awt.image.incrementalDraw is missing or has the value true, the image is incrementally drawn, If the system property has any other value, then the image is not drawn until it has been completely loaded.

Also, if incremental drawing is in effect, the value of the system property awt.image.redrawrate is interpreted as an integer to give the maximum redraw rate, in milliseconds. If the system property is missing or cannot be interpreted as an integer, the redraw rate is once every 100ms.

The interpretation of the x, y, width, and height arguments depends on the value of the infoflags argument.

See Also

ImageObserver, drawImage, drawImage, drawImage, drawImage, imageUpdate