Monday, 9 July 2007

Java Advanced Imaging API

The JAI API builds on the foundation of the Java 2D API. The JAI API adds the following concepts:
* Multi-tiled images
* Deferred execution
* Networked images
* Image property management
* Image operators with multiple sources
* Three-dimensional image data

The JAI API is heavily dependent on the abstractions defined in the Java 2D API.

JAI introduces two new data classes,

Class: DataBufferFloat
Extends: DataBuffer

Class: DataBufferDouble
Extends: DataBuffer

DataBufferFloat Class
DataBufferFloat(int size)
DataBufferFloat(int size, int numBanks)
ataBufferFloat(float[] dataArray, int size) //The array must be large enough to hold size elements.
DataBufferFloat(float[] dataArray, int size, int offset) //Only the elements between offset and (offset + size - 1) are available for use by this DataBuffer. The array must be large enough to hold (offset + size) elements.
DataBufferFloat(float[][] dataArray, int size)
DataBufferFloat(float[][] dataArray, int size, int[] offsets)

DataBufferDouble Class
DataBufferDouble(int size)
DataBufferDouble(int size, int numBanks)
DataBufferDouble(double[] dataArray, int size)
DataBufferDouble(double[] dataArray, int size, int offset)
DataBufferDouble(double[][] dataArray, int size)
DataBufferDouble(double[][] dataArray, int size, int[] offsets)

No comments: