Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 216 (Maintenance Release)

Uses of Class
java.awt.Image

Packages that use Image
java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. 
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
java.awt.image Provides classes for creating and modifying images. 
 

Uses of Image in java.applet
 

Methods in java.applet that return Image
 Image Applet.getImage(URL url)
          Returns an Image object that can then be painted on the screen.
 Image Applet.getImage(URL url, String name)
          Returns an Image object that can then be painted on the screen.
 Image AppletContext.getImage(URL url)
          Returns an Image object that can then be painted on the screen.
 

Uses of Image in java.awt
 

Methods in java.awt that return Image
abstract  Image Toolkit.getImage(String filename)
          Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.
abstract  Image Toolkit.getImage(URL url)
          Returns an image which gets pixel data from the specified URL.
abstract  Image Toolkit.createImage(String filename)
          Returns an image which gets pixel data from the specified file.
abstract  Image Toolkit.createImage(URL url)
          Returns an image which gets pixel data from the specified URL.
abstract  Image Toolkit.createImage(ImageProducer producer)
          Creates an image with the specified image producer.
 Image Toolkit.createImage(byte[] imagedata)
          Creates an image which decodes the image stored in the specified byte array.
abstract  Image Toolkit.createImage(byte[] imagedata, int imageoffset, int imagelength)
          Creates an image which decodes the image stored in the specified byte array, and at the specified offset and length.
 Image Frame.getIconImage()
          Gets the image to be displayed in the minimized icon for this frame.
 Image Image.getScaledInstance(int width, int height, int hints)
          Creates a scaled version of this image.
 Image Component.createImage(ImageProducer producer)
          Creates an image from the specified image producer.
 Image Component.createImage(int width, int height)
          Creates an off-screen drawable image to be used for double buffering.
 

Methods in java.awt with parameters of type Image
abstract  boolean Toolkit.prepareImage(Image image, int width, int height, ImageObserver observer)
          Prepares an image for rendering.
abstract  int Toolkit.checkImage(Image image, int width, int height, ImageObserver observer)
          Indicates the construction status of a specified image that is being prepared for display.
 void MediaTracker.addImage(Image image, int id)
          Adds an image to the list of images being tracked by this media tracker.
 void MediaTracker.addImage(Image image, int id, int w, int h)
          Adds a scaled image to the list of images being tracked by this media tracker.
 void MediaTracker.removeImage(Image image)
          Removes the specified image from this media tracker.
 void MediaTracker.removeImage(Image image, int id)
          Removes the specified image from the specified tracking ID of this media tracker.
 void MediaTracker.removeImage(Image image, int id, int width, int height)
          Removes the specified image with the specified width, height, and ID from this media tracker.
abstract  boolean Graphics.drawImage(Image img, int x, int y, ImageObserver observer)
          Draws as much of the specified image as is currently available.
abstract  boolean Graphics.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.
abstract  boolean Graphics.drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer)
          Draws as much of the specified image as is currently available.
abstract  boolean Graphics.drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer)
          Draws as much of the specified image as has already been scaled to fit inside the specified rectangle.
abstract  boolean Graphics.drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer)
          Draws as much of the specified area of the specified image as is currently available, scaling it on the fly to fit inside the specified area of the destination drawable surface.
abstract  boolean Graphics.drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer)
          Draws as much of the specified area of the specified image as is currently available, scaling it on the fly to fit inside the specified area of the destination drawable surface.
 void Frame.setIconImage(Image image)
          Sets the image to be displayed in the minimized icon for this frame.
 boolean Component.imageUpdate(Image img, int infoflags, int x, int y, int w, int h)
          Repaints the component when the image has changed.
 boolean Component.prepareImage(Image image, ImageObserver observer)
          Prepares an image for rendering on this component.
 boolean Component.prepareImage(Image image, int width, int height, ImageObserver observer)
          Prepares an image for rendering on this component at the specified width and height.
 int Component.checkImage(Image image, ImageObserver observer)
          Returns the status of the construction of a screen representation of the specified image.
 int Component.checkImage(Image image, int width, int height, ImageObserver observer)
          Returns the status of the construction of a screen representation of the specified image.
 

Uses of Image in java.awt.image
 

Subclasses of Image in java.awt.image
 class BufferedImage
          The BufferedImage subclass describes an Image with an accessible buffer of image data.
 class VolatileImage
          VolatileImage is an image which can lose its contents at any time due to circumstances beyond the control of the application (e.g., situations caused by the operating system or by other applications).
 

Methods in java.awt.image with parameters of type Image
 boolean ImageObserver.imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
          This method is called when information about an image which was previously requested using an asynchronous interface becomes available.
 

Constructors in java.awt.image with parameters of type Image
PixelGrabber(Image img, int x, int y, int w, int h, int[] pix, int off, int scansize)
          Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image into the given array.
PixelGrabber(Image img, int x, int y, int w, int h, boolean forceRGB)
          Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image.
 


JSR 216 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 216 specification.