All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Image
Image
is the superclass of all
classes that represent graphical images. The image must be
obtained in a platform-specific manner.
ReplicateScaleFilter
class.
UndefinedProperty
object should be returned whenever a
property which was not defined for a particular image is fetched.
public static final Object UndefinedProperty
UndefinedProperty
object should be returned whenever a
property which was not defined for a particular image is fetched.
public static final int SCALE_DEFAULT
public static final int SCALE_FAST
public static final int SCALE_SMOOTH
public static final int SCALE_REPLICATE
ReplicateScaleFilter
class.
The Image
object is free to substitute a different filter
that performs the same algorithm yet integrates more efficiently
into the imaging infrastructure supplied by the toolkit.
public static final int SCALE_AREA_AVERAGING
public Image()
public abstract int getWidth(ImageObserver observer)
-1
and the specified
ImageObserver
object is notified later.
-1
if the width is not yet known.
public abstract int getHeight(ImageObserver observer)
-1
and the specified
ImageObserver
object is notified later.
-1
if the height is not yet known.
public abstract ImageProducer getSource()
public abstract Graphics getGraphics()
public abstract Object getProperty(String name,
ImageObserver observer)
Individual property names are defined by the various image
formats. If a property is not defined for a particular image, this
method returns the UndefinedProperty
object.
If the properties for this image are not yet known, this method
returns null
, and the ImageObserver
object is notified later.
The property name "comment"
should be used to store
an optional comment which can be presented to the application as a
description of the image, its source, or its author.
public Image getScaledInstance(int width,
int height,
int hints)
Image
object is returned which will render
the image at the specified width
and
height
by default. The new Image
object
may be loaded asynchronously even if the original source image
has already been loaded completely. If either the width
or height
is a negative number then a value is
substituted to maintain the aspect ratio of the original image
dimensions.
public abstract void flush()
All Packages Class Hierarchy This Package Previous Next Index