Interface ImageIO

All Known Implementing Classes:
JDK13IO, JimiIO, MerlinIO

public interface ImageIO
This interface defines a ImageIO modules functionality
Since:
2.0
Author:
Davanum Srinivas
  • Method Details

    • saveImage

      void saveImage(String id, Image image, OutputStream os) throws Exception
      Save an image.
      Parameters:
      id - the mime-type of the format to save the image
      image - the image to save
      os - the output stream to write to
      Throws:
      Exception - if an error prevents image encoding
    • loadImage

      Image loadImage(InputStream in) throws Exception
      Load an Image.
      Parameters:
      in - the stream to load the image
      Returns:
      the Image
      Throws:
      Exception