ByteLookupTable, ShortLookupTable
public abstract class LookupTable extends Object
| Modifier | Constructor | Description | 
|---|---|---|
| protected  | Constructs a new LookupTable from the number of components and an offset into the lookup table. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| int | getNumComponents() | Returns the number of components in the lookup table. | 
| int | getOffset() | Returns the offset. | 
| abstract int[] | lookupPixel | Returns an  intarray of components for one pixel. | 
protected LookupTable(int offset, int numComponents)
offset - the offset to subtract from input values before indexing into the data arrays for this LookupTable
numComponents - the number of data arrays in this LookupTable
IllegalArgumentException - if offset is less than 0 or if numComponents is less than 1public int getNumComponents()
LookupTable.public int getOffset()
LookupTable.public abstract int[] lookupPixel(int[] src, int[] dest)
int array of components for one pixel. The dest array contains the result of the lookup and is returned. If dest is null, a new array is allocated. The source and destination can be equal.src - the source array of components of one pixeldest - the destination array of components for one pixel, translated with this LookupTable
int array of components for one pixel.
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/image/LookupTable.html