Package com.idrsolutions.image.heic
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);
-
Field Summary
Fields inherited from class com.idrsolutions.image.JDeliImage
bb -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetEncoderOptions(HeicEncoderOptions encoderOptions) voidwrite(BufferedImage image, OutputStream bos) Writes BufferedImage as a HEIC into an OutputStreamMethods inherited from class com.idrsolutions.image.JDeliImage
optimiseImage
-
Constructor Details
-
HeicEncoder
public HeicEncoder(com.idrsolutions.image.encoder.options.EncoderOptions format) -
HeicEncoder
public HeicEncoder()
-
-
Method Details
-
getEncoderOptions
- Specified by:
getEncoderOptionsin interfacecom.idrsolutions.image.Encoder
-
setEncoderOptions
-
write
Writes BufferedImage as a HEIC into an OutputStreamThis 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:
writein interfacecom.idrsolutions.image.Encoder- Parameters:
image- BufferedImage to writebos- The stream to write the image to- Throws:
IOException- if an error occurs whilst trying to write out the imageO
-