java.awt.image
public class ByteLookupTable extends LookupTable
Constructor Summary | |
---|---|
ByteLookupTable(int offset, byte[][] data)
Creates a new ByteLookupTable instance.
| |
ByteLookupTable(int offset, byte[] data)
Creates a new ByteLookupTable instance.
|
Method Summary | |
---|---|
byte[][] | getTable()
Return the lookup tables.
|
int[] | lookupPixel(int[] src, int[] dst)
Return translated values for a pixel.
|
byte[] | lookupPixel(byte[] src, byte[] dst)
Return translated values for a pixel.
|
ByteLookupTable
instance.
Offset is subtracted from pixel values when looking up in the translation
tables. If data.length is one, the same table is applied to all pixel
components.
Parameters: offset Offset to be subtracted. data Array of lookup tables (null
not permitted).
Throws: IllegalArgumentException if offset < 0 or data.length < 1.
ByteLookupTable
instance.
Offset is subtracted from pixel values when looking up in the translation
table. The same table is applied to all pixel components.
Parameters: offset Offset to be subtracted. data Lookup table for all components (null
not
permitted).
Throws: IllegalArgumentException if offset < 0.
Returns: the tables
Parameters: src Component values of a pixel. dst Destination array for values, or null.
Returns: Translated values for the pixel.
Parameters: src Component values of a pixel. dst Destination array for values, or null.
Returns: Translated values for the pixel.