Package org.netbeans.jemmy.util
Class PNGDecoder
- java.lang.Object
-
- org.netbeans.jemmy.util.PNGDecoder
-
public class PNGDecoder extends java.lang.ObjectAllows to load PNG graphical file.- Author:
- Alexandre Iline
-
-
Constructor Summary
Constructors Constructor Description PNGDecoder(java.io.InputStream in)Constructs a PNGDecoder object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagedecode()Decodes image from an input stream passed into constructor.static java.awt.image.BufferedImagedecode(java.lang.String fileName)Decodes image from file.
-
-
-
Method Detail
-
decode
public java.awt.image.BufferedImage decode() throws java.io.IOExceptionDecodes image from an input stream passed into constructor.- Returns:
- a BufferedImage object
- Throws:
java.io.IOException
-
decode
public static java.awt.image.BufferedImage decode(java.lang.String fileName)
Decodes image from file.- Parameters:
fileName- a file to read image from- Returns:
- a BufferedImage instance.
-
-