private void indexedColourLookUp(Chunk transparencyChunk) { byte[] chunkData = transparencyChunk.getData().getArray(); int[] alphaValues = new int[chunkData.length]; for (int i = 0; i < chunkData.length; i++) { alphaValues[i] = MASK & chunkData[i]; } }
private void truecolorLookUp(Chunk transparencyChunk) { byte[] chunkData = transparencyChunk.getData().getArray(); int[] transparentValue = new int[3]; for (int i = 0; i < transparentValue.length; i++) { transparentValue[i] = ((MASK & chunkData[2 * i]) << 8) | chunkData[2 * i + 1]; } }