public class PNGDecoder
extends java.lang.Object
Constructor and Description |
---|
PNGDecoder(java.io.InputStream in)
Constructs a PNGDecoder object.
|
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