The Image Class and the Image Package

The AWT provides a java.awt.Image class. References to java.awt.Image are passed to methods of other AWT objects for displaying and manipulating images. For instance, images can be displayed in a component by invocation of invoking Graphics.drawImage(java.awt.Image, int, int, ImageObserver).

java.awt.Image is an abstract class that defines methods which provide access to information about an image. The infrastructure for creating and manipulating images resides in the java.awt.image package, not to be confused with the java.awt.Image class.

Nearly all of the classes in the java.awt.image package are concerned with either producing images or consuming them. Image producers are responsible for producing the ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.