Module java.desktop
Package java.awt.image
package java.awt.image
Provides classes for creating and modifying images. Images are processed
using a streaming framework that involves an image producer, optional image
filters, and an image consumer. This framework makes it possible to
progressively render an image while it is being fetched and generated.
Moreover, the framework allows an application to discard the storage used by
an image and to regenerate it at any time. This package provides a number of
image producers, consumers, and filters that you can configure for your image
processing needs.
- Since:
- 1.0
-
ClassDescriptionThis class provides default implementations of several
Image
methods for classes that want to implement theMultiResolutionImage
interface.This class uses an affine transform to perform a linear mapping from 2D coordinates in the source image orRaster
to 2D coordinates in the destination image orRaster
.An ImageFilter class for scaling images using a simple area averaging algorithm that produces smoother results than the nearest neighbor algorithm.This class performs an arbitrary linear combination of the bands in aRaster
, using a specified matrix.This class represents image data which is stored in a band interleaved fashion and for which each sample of a pixel occupies one data element of the DataBuffer.This class is an array-based implementation of theAbstractMultiResolutionImage
class.TheBufferedImage
subclass describes anImage
with an accessible buffer of image data.TheBufferedImageFilter
class subclasses anImageFilter
to provide a simple means of using a single-source/single-destination image operator (BufferedImageOp
) to filter aBufferedImage
in the Image Producer/Consumer/Observer paradigm.This interface describes single-input/single-output operations performed onBufferedImage
objects.TheBufferStrategy
class represents the mechanism with which to organize complex memory on a particularCanvas
orWindow
.This class defines a lookup table object.This class performs a pixel-by-pixel color conversion of the data in the source image.TheColorModel
abstract class encapsulates the methods for translating a pixel value to color components (for example, red, green, and blue) and an alpha component.AColorModel
class that works with pixel values that represent color and alpha information as separate samples and that store each sample in a separate data element.This class represents image data which is stored such that each sample of a pixel occupies one data element of the DataBuffer.This class implements a convolution from the source to the destination.An ImageFilter class for cropping images.This class exists to wrap one or more data arrays.This class extendsDataBuffer
and stores data internally as bytes.This class extendsDataBuffer
and stores data internally indouble
form.This class extendsDataBuffer
and stores data internally infloat
form.This class extendsDataBuffer
and stores data internally as integers.This class extendsDataBuffer
and stores data internally as shorts.This class extendsDataBuffer
and stores data internally as shorts.TheDirectColorModel
class is aColorModel
class that works with pixel values that represent RGB color and alpha information as separate samples and that pack all samples for a single pixel into a single int, short, or byte quantity.This class is an implementation of the ImageProducer interface which takes an existing image and a filter object and uses them to produce image data for a new filtered version of the original image.The interface for objects expressing interest in image data through the ImageProducer interfaces.This class implements a filter for the set of interface methods that are used to deliver data from an ImageProducer to an ImageConsumer.An asynchronous update interface for receiving notifications about Image information as the Image is constructed.The interface for objects which can produce the image data for Images.TheImagingOpException
is thrown if one of theBufferedImageOp
orRasterOp
filter methods cannot process the image.TheIndexColorModel
class is aColorModel
class that works with pixel values consisting of a single sample that is an index into a fixed colormap in the default sRGB color space.TheKernel
class defines a matrix that describes how a specified pixel and its surrounding pixels affect the value computed for the pixel's position in the output image of a filtering operation.This class implements a lookup operation from the source to the destination.This abstract class defines a lookup table object.This class is an implementation of the ImageProducer interface which uses an array to produce pixel values for an Image.TheMultiPixelPackedSampleModel
class represents one-banded images and can pack multiple one-sample pixels into one data element.This interface is designed to be an optional additional API supported by some implementations ofImage
to allow them to provide alternate images for various rendering resolutions.ThePackedColorModel
class is an abstractColorModel
class that works with pixel values which represent color and alpha information as separate samples and which pack all samples for a single pixel into a single int, short, or byte quantity.The PixelGrabber class implements an ImageConsumer which can be attached to an Image or ImageProducer object to retrieve a subset of the pixels in that image.This class represents image data which is stored in a pixel interleaved fashion and for which each sample of a pixel occupies one data element of the DataBuffer.A class representing a rectangular array of pixels.TheRasterFormatException
is thrown if there is invalid layout information in theRaster
.This interface describes single-input/single-output operations performed on Raster objects.RenderedImage is a common interface for objects which contain or can produce image data in the form of Rasters.An ImageFilter class for scaling images using the simplest algorithm.This class performs a pixel-by-pixel rescaling of the data in the source image by multiplying the sample values for each pixel by a scale factor and then adding an offset.This class provides an easy way to create an ImageFilter which modifies the pixels of an image in the default RGB ColorModel.This abstract class defines an interface for extracting samples of pixels in an image.This class defines a lookup table object.This class represents pixel data packed such that the N samples which make up a single pixel are stored in a single data array element, and each data data array element holds samples for only one pixel.An interface for objects that wish to be informed when tiles of a WritableRenderedImage become modifiable by some writer via a call to getWritableTile, and when they become unmodifiable via the last call to releaseWritableTile.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).This class extends Raster to provide pixel writing capabilities.WritableRenderedImage is a common interface for objects which contain or can produce image data in the form of Rasters and which can be modified and/or written over.