public class PNGDecoder extends Object
| Constructor and Description |
|---|
PNGDecoder(InputStream in)
Constructs a PNGDecoder object.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
decode()
Decodes image from an input stream passed into constructor.
|
static BufferedImage |
decode(String fileName)
Decodes image from file.
|
public PNGDecoder(InputStream in)
in - input stream to read PNG image from.public BufferedImage decode() throws IOException
IOExceptionpublic static BufferedImage decode(String fileName)
fileName - a file to read image from