Constructs a LookUpTable object from an AWT Image.
(Image img)
| 19 | |
| 20 | /** Constructs a LookUpTable object from an AWT Image. */ |
| 21 | public LookUpTable(Image img) { |
| 22 | PixelGrabber pg = new PixelGrabber(img, 0, 0, 1, 1, false); |
| 23 | try { |
| 24 | pg.grabPixels(); |
| 25 | cm = pg.getColorModel(); |
| 26 | } |
| 27 | catch (InterruptedException e){}; |
| 28 | getColors(cm); |
| 29 | } |
| 30 | |
| 31 | /** Constructs a LookUpTable object from a ColorModel. */ |
| 32 | public LookUpTable(ColorModel cm) { |
nothing calls this directly
no test coverage detected