CONTENTS | PREV | NEXT Java 2D API
5.1 Interfaces and Classes
The immediate mode imaging APIs in the Java 2D API can be grouped into six categories: interfaces, image data classes, image operation classes, sample model classes, color model classes, and exceptions.
5.1.1 Imaging Interfaces
5.1.2 Image Data Classes
Class
DescriptionBufferedImage
Extends: Image
Implements: WriteableRenderedImage
An image with an accessible data buffer. A BufferedImage has a ColorModel and a Raster of image data.
ByteLookupTable
A LookupTable that contains byte data.
DataBuffer
Wraps one or more data arrays holding pixel data. Each data array is called a bank.
DataBufferByte
A data buffer that stores bytes of data. (Used in Java Advanced Imaging API)
DataBufferInt
A data buffer that stores integer data.(Used in Java Advanced Imaging API)
DataBufferShort
A data buffer that stores short data.(Used in Java Advanced Imaging API)
DataBufferUShort
A data buffer that stores unsigned short data.
Kernel
A matrix that describes how an input pixel and its surrounding pixels affect the value of an output pixel in a ConvolveOp filtering operation.
LookupTable
A table that maps values from single-banded pixel data to color values.
Raster
A rectangular array of pixels from which you can retrieve image data. A Raster contains a DataBuffer and a SampleModel.
ShortLookupTable
A lookup table that contains short data.
WritableRaster
A Raster that you can modify.
5.1.3 Image Operation Classes
Class
DescriptionAffineTransformOp
Implements: BufferedImageOp, RasterOp
A class that defines an affine transform to perform a linear mapping from 2D coordinates in a source Image or Raster to 2D coordinates in the destination image or Raster. This class can perform either bilinear or nearest neighbor affine transform operations.
BandCombineOp
Using a specified matrix, this operation performs an arbitrary linear combination of bands in a Raster.
BufferedImageFilter
An ImageFilter that provides a simple means of using a BufferedImageOp (a single-source/single-destination image operator) to filter a BufferedImage or Raster.
ColorConvertOp
Implements: BufferedImageOp, RasterOp
Performs a pixel-by-pixel color conversion of the data in the source image.
ConvolveOp
Implements: BufferedImageOp, RasterOp
Uses a Kernel to perform a convolution on the source image. A convolution is a spatial operation where the pixels surrounding the input pixel are multiplied by a kernel value to generate the value of the output pixel. The Kernel mathematically defines the relationship between the pixels in the immediate neighborhood of the input pixel and the output pixel.
LookupOp
Implements: BufferedImageOp, RasterOp
Performs a lookup operation from the source to the destination. For Rasters, the lookup operates on sample values. For BufferedImages, the lookup operates on color and alpha components.
RescaleOp
Implements: BufferedImageOp, RasterOp
Performs a pixel-by-pixel rescaling of the data in the source image by multiplying each pixel value by a scale factor and then adding an offset.
5.1.4 Sample Model Classes
5.1.5 Color Model Classes
Class
DescriptionColorModel
JDK1.1 class. An abstract class that defines methods for translating from image pixel values to color components such as red, green, and blue.
ComponentColorModel
A ColorModel that can handle an arbitrary ColorSpace and an array of color components to match the ColorSpace. This class can be used to represent most color models on most types of GraphicsDevices.
DirectColorModel
JDK1.1 class. A ColorModel that represents pixel values that have RGB color components embedded directly in the bits of the pixel. This color model is similar to an X11 TrueColor visual. The default RGB ColorModel returned by ColorModel.getRGBdefault is a DirectColorModel.
IndexColorModel
JDK1.1 class. A ColorModel that represents pixel values that are indices into a fixed color map in the sRGB ColorSpace.
PackedColorModel
An abstract ColorModel that represents pixel values that have color components embedded directly in the bits of a pixel. DirectColorModel extends PackedColorModel to support pixels that contain RGB color components.
5.1.6 Exception Classes
CONTENTS | PREV | NEXT