()
| 55 | } |
| 56 | |
| 57 | public byte[] getBytes() { |
| 58 | int size = getMapSize(); |
| 59 | if (size!=256) return null; |
| 60 | byte[] bytes = new byte[256*3]; |
| 61 | for (int i=0; i<256; i++) bytes[i] = (byte)getRed(i); |
| 62 | for (int i=0; i<256; i++) bytes[256+i] = (byte)getGreen(i); |
| 63 | for (int i=0; i<256; i++) bytes[512+i] = (byte)getBlue(i); |
| 64 | return bytes; |
| 65 | } |
| 66 | |
| 67 | public LUT createInvertedLut() { |
| 68 | int mapSize = getMapSize(); |
no test coverage detected