Image (Java SE 19 & JDK 19) (original) (raw)

Direct Known Subclasses:

[AbstractMultiResolutionImage](image/AbstractMultiResolutionImage.html "class in java.awt.image"), [BufferedImage](image/BufferedImage.html "class in java.awt.image"), [VolatileImage](image/VolatileImage.html "class in java.awt.image")


public abstract class Image extends Object

The abstract class Image is the superclass of all classes that represent graphical images. The image must be obtained in a platform-specific manner.

Since:

1.0

Fields
protected float
Priority for accelerating this image.
static final int
Use the Area Averaging image scaling algorithm.
static final int
Use the default image-scaling algorithm.
static final int
Choose an image-scaling algorithm that gives higher priority to scaling speed than smoothness of the scaled image.
static final int
Use the image scaling algorithm embodied in theReplicateScaleFilter class.
static final int
Choose an image-scaling algorithm that gives higher priority to image smoothness than scaling speed.
The UndefinedProperty object should be returned whenever a property which was not defined for a particular image is fetched.

Constructors
protected
[Image](#%3Cinit%3E%28%29)()
Constructor for subclasses to call.

void
[flush](#flush%28%29)()
Flushes all reconstructable resources being used by this Image object.
float
Returns the current value of the acceleration priority hint.
Returns an ImageCapabilities object which can be inquired as to the capabilities of this Image on the specified GraphicsConfiguration.
Creates a graphics context for drawing to an off-screen image.
abstract int
Determines the height of the image.
Gets a property of this image by name.
[getScaledInstance](#getScaledInstance%28int,int,int%29)(int width, int height, int hints)
Creates a scaled version of this image.
[getSource](#getSource%28%29)()
Gets the object that produces the pixels for the image.
abstract int
Determines the width of the image.
void
[setAccelerationPriority](#setAccelerationPriority%28float%29)(float priority)
Sets a hint for this image about how important acceleration is.

Methods declared in class java.lang.Object

[clone](../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../java.base/java/lang/Object.html#wait%28long,int%29)