Class HeicDecoder

  • All Implemented Interfaces:
    com.idrsolutions.image.Decoder

    public class HeicDecoder
    extends com.idrsolutions.image.JDeliImage
    implements com.idrsolutions.image.Decoder
    • Constructor Detail

      • HeicDecoder

        public HeicDecoder()
    • Method Detail

      • read

        public BufferedImage read​(byte[] data)
                           throws Exception
        Specified by:
        read in interface com.idrsolutions.image.Decoder
        Parameters:
        data - source image to read
        Returns:
        image contained in raw data
        Throws:
        Exception - if problem reading image
      • read

        public BufferedImage read​(File file)
                           throws Exception
        Specified by:
        read in interface com.idrsolutions.image.Decoder
        Parameters:
        file - source image to read
        Returns:
        image contained in raw data
        Throws:
        Exception - if problem reading image
      • readThumbnail

        public BufferedImage readThumbnail​(File file)
                                    throws Exception
        Decodes and returns the thumbnail heic image as BufferedImage if there is an thumbnail otherwise returns null
        Parameters:
        file - heic file
        Returns:
        BufferedImage thumbnail image
        Throws:
        Exception - if problem reading image
      • readThumbnail

        public BufferedImage readThumbnail​(byte[] data)
                                    throws Exception
        Decodes and returns the thumbnail heic image as BufferedImage if there is an thumbnail otherwise returns null
        Parameters:
        data - image image contained in raw data if present
        Returns:
        BufferedImage thumbnail image
        Throws:
        Exception - if problem reading image