java.awt.image
public abstract class LookupTable extends Object
See Also: ByteLookupTable
Constructor Summary | |
---|---|
protected | LookupTable(int offset, int numComponents)
Creates a new LookupTable instance.
|
Method Summary | |
---|---|
int | getNumComponents() Return the number of components. |
int | getOffset() Return the offset. |
abstract int[] | lookupPixel(int[] src, int[] dest)
Return translated values for a pixel.
|
LookupTable
instance.
If numComponents is 1, the same translation table is used for all pixel
components.
Parameters: offset Offset to be subtracted. numComponents Number of image components.
Throws: IllegalArgumentException if offset < 0 or numComponents < 1.
Parameters: src Component values of a pixel. dest Destination array for values, or null.
Returns: Translated values for the pixel.