public class JpegDecoder
extends com.idrsolutions.image.JDeliImage
JpegDecoder decoder = new JpegDecoder();
BufferedImage decodedImage = decoder.read(jpegByteData);
Modifier and Type | Field | Description |
---|---|---|
static byte[] |
ZIGZAGORDER |
Constructor | Description |
---|---|
JpegDecoder() |
Modifier and Type | Method | Description |
---|---|---|
com.idrsolutions.image.jpeg.Info |
getInfo() |
Returns the JPEG information object
|
boolean |
isInverted() |
Returns whether the data byte is inverted.
|
java.awt.image.BufferedImage |
read(byte[] jpegRawData) |
Make NO assumptions about BufferedImage type returned as it may
change
|
byte[] |
readAsUnconvertedBytes(byte[] jpegRawData,
int adobeColorTransform) |
Not recommended for external use.
|
byte[] |
readComponentsAsConvertedBytes(byte[] jpegRawData) |
Not recommended for external use.
|
byte[] |
readComponentsAsRawBytes(byte[] jpegRawData) |
Not recommended for external use.
|
void |
setInverted(boolean inverted) |
Not recommended for external use.
|
public java.awt.image.BufferedImage read(byte[] jpegRawData) throws java.lang.Exception
Decodes and returns the JPEG image as a BufferedImage from bytes
jpegRawData
- byte[] containing the JPEG data to be decodedjava.lang.Exception
public byte[] readComponentsAsRawBytes(byte[] jpegRawData) throws java.lang.Exception
Decodes JPEG image data as non converted bytes. Please note this method does not perform YCBCR/CMYK/YCCK to RGB/gray conversion.
jpegRawData
- byte[] containing the raw JPEG datajava.lang.Exception
- Provides for different exceptions thrown under Java
Lang packagepublic byte[] readComponentsAsConvertedBytes(byte[] jpegRawData) throws java.lang.Exception
Decodes JPEG image data as converted(RGB/gray) bytes
jpegRawData
- byte[] array containing the JPEG dataoPngChunkjava.lang.Exception
- Provides for different exceptions thrown under java
Lang packagepublic byte[] readAsUnconvertedBytes(byte[] jpegRawData, int adobeColorTransform) throws java.lang.Exception
Decodes JPEG image data as un-converted(RGB/gray) bytes
jpegRawData
- byte[] array containing the un-converted JPEG bytesjava.lang.Exception
- Provides for different exceptions thrown under java
Lang packagepublic boolean isInverted()
public void setInverted(boolean inverted)
inverted
- set true for CMYK inversionpublic com.idrsolutions.image.jpeg.Info getInfo()
Copyright 2018 IDRsolutions ltd. All rights reserved.