Class PNGDecoder


  • public class PNGDecoder
    extends Object
    Allows to load PNG graphical file.
    Author:
    Alexandre Iline
    • Constructor Detail

      • PNGDecoder

        public PNGDecoder​(InputStream in)
        Constructs a PNGDecoder object.
        Parameters:
        in - input stream to read PNG image from.
    • Method Detail

      • decode

        public static BufferedImage decode​(String fileName)
        Decodes image from file.
        Parameters:
        fileName - a file to read image from
        Returns:
        a BufferedImage instance.