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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setEncoderOptions
(HeicEncoderOptions encoderOptions) void
write
(BufferedImage image, OutputStream bos) Writes BufferedImage as a HEIC into an OutputStreamMethods inherited from class com.idrsolutions.image.JDeliImage
optimiseImage
-
Constructor Details
-
HeicEncoder
-
HeicEncoder
public HeicEncoder()
-
-
Method Details
-
getEncoderOptions
- Specified by:
getEncoderOptions
in 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:
write
in 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
-