MCPcopy Index your code
hub / github.com/ImageOptim/libimagequant / getRemapped

Method getRemapped

imagequant-sys/org/pngquant/PngQuant.java:28–37  ·  view source on GitHub ↗

1-shot quantization and remapping with current settings. @see quantize() @return 8-bit indexed image or null on failure

(BufferedImage bufimg)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

closeMethod · 0.95
quantizeMethod · 0.95
getRemappedMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected