Package org.netbeans.jemmy.util
Class PNGDecoder
java.lang.Object
org.netbeans.jemmy.util.PNGDecoder
Allows to load PNG graphical file.
- Author:
- Alexandre Iline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode()
Decodes image from an input stream passed into constructor.static BufferedImage
Decodes image from file.
-
Constructor Details
-
PNGDecoder
Constructs a PNGDecoder object.- Parameters:
in
- input stream to read PNG image from.
-
-
Method Details
-
decode
Decodes image from an input stream passed into constructor.- Returns:
- a BufferedImage object
- Throws:
IOException
-
decode
Decodes image from file.- Parameters:
fileName
- a file to read image from- Returns:
- a BufferedImage instance.
-