()
| 45 | } |
| 46 | |
| 47 | public IndexColorModel getColorModel() { |
| 48 | if (cm==null) { |
| 49 | byte[] reds=new byte[256]; getReds(reds); |
| 50 | byte[] greens=new byte[256]; getGreens(greens); |
| 51 | byte[] blues=new byte[256]; getBlues(blues); |
| 52 | cm = new IndexColorModel(8, getMapSize(), reds, greens, blues); |
| 53 | } |
| 54 | return cm; |
| 55 | } |
| 56 | |
| 57 | public byte[] getBytes() { |
| 58 | int size = getMapSize(); |
no test coverage detected