Package com.idrsolutions.image.jpegxl
Class JpegXLDecoder
java.lang.Object
com.idrsolutions.image.JDeliImage
com.idrsolutions.image.jpegxl.JpegXLDecoder
- All Implemented Interfaces:
com.idrsolutions.image.Decoder
public class JpegXLDecoder
extends com.idrsolutions.image.JDeliImage
implements com.idrsolutions.image.Decoder
-
Field Summary
Fields inherited from class com.idrsolutions.image.JDeliImage
bb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(byte[] jpegxlRawData) Make NO assumptions about BufferedImage type returned as it may changeMake NO assumptions about BufferedImage type returned as it may changereadDimension
(byte[] data) readDimension
(File imageFile) Methods inherited from class com.idrsolutions.image.JDeliImage
optimiseImage
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.idrsolutions.image.Decoder
getImageCount, getImageCount, readEmbeddedThumbnail, readEmbeddedThumbnail, readImageAt, readImageAt, readImageSpecificMetaData, readImageSpecificMetaData, setMetadata
-
Constructor Details
-
JpegXLDecoder
public JpegXLDecoder()
-
-
Method Details
-
read
Make NO assumptions about BufferedImage type returned as it may changeDecodes and returns the JPEG XL image as a BufferedImage from bytes
- Specified by:
read
in interfacecom.idrsolutions.image.Decoder
- Parameters:
jpegxlRawData
- byte[] containing the JPEG XL data to be decoded- Returns:
- BufferedImage The decoded image
- Throws:
Exception
- if an error occurs in reading image
-
read
Make NO assumptions about BufferedImage type returned as it may changeDecodes and returns the JPEG XL image as a BufferedImage
- Specified by:
read
in interfacecom.idrsolutions.image.Decoder
- Parameters:
file
- file containing the JPEG XL data to be decoded- Returns:
- BufferedImage The decoded image
- Throws:
Exception
- if an error occurs in reading image
-
readDimension
- Specified by:
readDimension
in interfacecom.idrsolutions.image.Decoder
- Throws:
Exception
-
readDimension
- Specified by:
readDimension
in interfacecom.idrsolutions.image.Decoder
- Throws:
Exception
-