Class PNGImageSaver

  • All Implemented Interfaces:
    ImageSaver

    public class PNGImageSaver
    extends java.lang.Object
    implements ImageSaver
    Allowes to process PNF image format.
    Author:
    Alexandre Iline (alexandre.iline@sun.com)
    • Constructor Summary

      Constructors 
      Constructor Description
      PNGImageSaver()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void save​(java.awt.image.BufferedImage image, java.lang.String fileName)
      Saves an image into a PNG image file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PNGImageSaver

        public PNGImageSaver()
    • Method Detail

      • save

        public void save​(java.awt.image.BufferedImage image,
                         java.lang.String fileName)
                  throws java.io.IOException
        Saves an image into a PNG image file.
        Specified by:
        save in interface ImageSaver
        Parameters:
        image - an image to be saved.
        fileName - a file to load image from.
        Throws:
        java.io.IOException