1-shot quantization and remapping with current settings. @see quantize() @return 8-bit indexed image or null on failure
(BufferedImage bufimg)
| 26 | * @return 8-bit indexed image or null on failure |
| 27 | */ |
| 28 | public BufferedImage getRemapped(BufferedImage bufimg) { |
| 29 | try { |
| 30 | Image liqimg = new Image(this, bufimg); |
| 31 | BufferedImage remapped = getRemapped(liqimg); |
| 32 | liqimg.close(); |
| 33 | return remapped; |
| 34 | } catch(PngQuantException e) { |
| 35 | return null; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /** @return remapped image or null on failure */ |
| 40 | public BufferedImage getRemapped(Image liqimg) { |
nothing calls this directly
no test coverage detected