public class PngImage extends Object
It is based in part in the JAI codec.
| Modifier and Type | Field and Description |
|---|---|
static int[] |
PNGID
Some PNG specific values.
|
| Modifier and Type | Method and Description |
|---|---|
static Image |
getImage(byte[] data)
Reads a PNG from a byte array.
|
static Image |
getImage(URL url)
Reads a PNG from an url.
|
public static Image getImage(URL url) throws IOException
url - the urlIOException - on errorpublic static Image getImage(byte[] data) throws IOException
data - the byte arrayIOException - on errorCopyright © 2021. All rights reserved.