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