MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / Image

Method Image

imagequant-sys/org/pngquant/Image.java:16–18  ·  view source on GitHub ↗

Converts BufferedImage to internal representation (pixel data is copied). It's best to use BufferedImage in RGB/RGBA format backed by DataBufferByte. Throws if conversion fails.

(BufferedImage image)

Source from the content-addressed store, hash-verified

14 * Throws if conversion fails.
15 */
16 public Image(BufferedImage image) throws PngQuantException {
17 this(new PngQuant(), image);
18 }
19
20 public Image(PngQuant attr, BufferedImage image) throws PngQuantException {
21 handle = handleFromImage(attr, image);

Callers

nothing calls this directly

Calls 3

handleFromImageMethod · 0.95
getWidthMethod · 0.80
getHeightMethod · 0.80

Tested by

no test coverage detected