(ColorModel cm)
| 35 | } |
| 36 | |
| 37 | void getColors(ColorModel cm) { |
| 38 | if (cm instanceof IndexColorModel) { |
| 39 | IndexColorModel m = (IndexColorModel)cm; |
| 40 | mapSize = m.getMapSize(); |
| 41 | rLUT = new byte[mapSize]; |
| 42 | gLUT = new byte[mapSize]; |
| 43 | bLUT = new byte[mapSize]; |
| 44 | m.getReds(rLUT); |
| 45 | m.getGreens(gLUT); |
| 46 | m.getBlues(bLUT); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | public int getMapSize() { |
| 51 | return mapSize; |
no test coverage detected