Class HeicEncoder

java.lang.Object
com.idrsolutions.image.JDeliImage
com.idrsolutions.image.heic.HeicEncoder
All Implemented Interfaces:
com.idrsolutions.image.Encoder

public class HeicEncoder extends com.idrsolutions.image.JDeliImage implements com.idrsolutions.image.Encoder
Class writes BufferedImages as HEIC

Example:


 HeicEncoder encoder = new HeicEncoder();
 encoder.write(image, outputStream);
 
  • Constructor Details

    • HeicEncoder

      public HeicEncoder(com.idrsolutions.image.encoder.options.EncoderOptions format)
    • HeicEncoder

      public HeicEncoder()
  • Method Details

    • getEncoderOptions

      public HeicEncoderOptions getEncoderOptions()
      Specified by:
      getEncoderOptions in interface com.idrsolutions.image.Encoder
    • setEncoderOptions

      public void setEncoderOptions(HeicEncoderOptions encoderOptions)
    • write

      public void write(BufferedImage image, OutputStream bos) throws IOException
      Writes BufferedImage as a HEIC into an OutputStream

      This method does not close the provided OutputStream after the write operation has completed; it is the responsibility of the caller to close the stream.

      Specified by:
      write in interface com.idrsolutions.image.Encoder
      Parameters:
      image - BufferedImage to write
      bos - The stream to write the image to
      Throws:
      IOException - if an error occurs whilst trying to write out the imageO