Class StandardImageIO

  • All Implemented Interfaces:
    org.jpedal.external.ImageHelper

    public class StandardImageIO
    extends Object
    implements org.jpedal.external.ImageHelper
    • Constructor Detail

      • StandardImageIO

        public StandardImageIO()
    • Method Detail

      • read

        public BufferedImage read​(String file_name)
        Specified by:
        read in interface org.jpedal.external.ImageHelper
        Parameters:
        file_name - (including path)
        Returns:
      • read

        public BufferedImage read​(byte[] data)
                           throws IOException
        Specified by:
        read in interface org.jpedal.external.ImageHelper
        Parameters:
        data - (final byte[] data for image file - PNG, TIF, JPEG)
        Returns:
        Throws:
        IOException
      • readRasterFromJPeg

        public Raster readRasterFromJPeg​(byte[] data)
                                  throws IOException
        Specified by:
        readRasterFromJPeg in interface org.jpedal.external.ImageHelper
        Parameters:
        data - (binary data for image file - PNG, TIF, JPEG)
        Returns:
        Throws:
        IOException