61 |
* |
* |
62 |
* @param offset Offset to be subtracted. |
* @param offset Offset to be subtracted. |
63 |
* @param data Array of lookup tables. |
* @param data Array of lookup tables. |
64 |
* @exception IllegalArgumentException if offset < 0 or data.length < 1. |
* @exception IllegalArgumentException if offset < 0 or data.length < 1. |
65 |
*/ |
*/ |
66 |
public ByteLookupTable(int offset, byte[][] data) |
public ByteLookupTable(int offset, byte[][] data) |
67 |
throws IllegalArgumentException |
throws IllegalArgumentException |
78 |
* |
* |
79 |
* @param offset Offset to be subtracted. |
* @param offset Offset to be subtracted. |
80 |
* @param data Lookup table for all components. |
* @param data Lookup table for all components. |
81 |
* @exception IllegalArgumentException if offset < 0. |
* @exception IllegalArgumentException if offset < 0. |
82 |
*/ |
*/ |
83 |
public ByteLookupTable(int offset, byte[] data) |
public ByteLookupTable(int offset, byte[] data) |
84 |
throws IllegalArgumentException |
throws IllegalArgumentException |
114 |
throws ArrayIndexOutOfBoundsException |
throws ArrayIndexOutOfBoundsException |
115 |
{ |
{ |
116 |
if (dst == null) |
if (dst == null) |
117 |
dst = new int[numComponents]; |
dst = new int[src.length]; |
118 |
|
|
119 |
if (data.length == 1) |
if (data.length == 1) |
120 |
for (int i=0; i < src.length; i++) |
for (int i=0; i < src.length; i++) |
147 |
throws ArrayIndexOutOfBoundsException |
throws ArrayIndexOutOfBoundsException |
148 |
{ |
{ |
149 |
if (dst == null) |
if (dst == null) |
150 |
dst = new byte[numComponents]; |
dst = new byte[src.length]; |
151 |
|
|
152 |
if (data.length == 1) |
if (data.length == 1) |
153 |
for (int i=0; i < src.length; i++) |
for (int i=0; i < src.length; i++) |