Component.checkImage

Component.checkImage

Class Overview | Class Members | This Package | All Packages

Syntax 1
public int checkImage( Image image, ImageObserver observer )
Parameters
image
the Image object whose status is being checked.
observer
the ImageObserver object to be notified as the image is being prepared.
Returns
the bitwise inclusive OR of ImageObserver flags indicating what information about the image is currently available.
Description
Returns the status of the construction of a screen representation of the specified image.

This method does not cause the image to begin loading. An application must use the prepareImage method to force the loading of an image.

Information on the flags returned by this method can be found with the discussion of the ImageObserver interface.

See Also
prepareImage, checkImage, ImageObserver



Syntax 2
public int checkImage( Image image, int width, int height, ImageObserver observer )
Parameters
image
the Image object whose status is being checked.
width
the width of the scaled version whose status is to be checked.
height
the height of the scaled version whose status is to be checked.
observer
the ImageObserver object to be notified as the image is being prepared.
Returns
the bitwise inclusive OR of ImageObserver flags indicating what information about the image is currently available.
Description
Returns the status of the construction of a screen representation of the specified image.

This method does not cause the image to begin loading. An application must use the prepareImage method to force the loading of an image.

The checkImage method of Component calls its peer's checkImage method to calculate the flags. If this component does not yet have a peer, the component's toolkit's checkImage method is called instead.

Information on the flags returned by this method can be found with the discussion of the ImageObserver interface.

See Also
prepareImage, checkImage, _top_