public abstract class Thumbnail
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
compressedThumbnail |
static int |
DATA_TYPE_KJpegRGB |
static int |
DATA_TYPE_KRawRGB |
static int |
DATA_TYPE_TIFF |
protected int |
dataType |
protected int |
height |
protected java.awt.image.BufferedImage |
thumbnail |
protected int |
width |
protected int |
writeQuality |
Constructor and Description |
---|
Thumbnail() |
Thumbnail(java.awt.image.BufferedImage thumbnail) |
Thumbnail(int width,
int height,
int dataType,
byte[] compressedThumbnail) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsImage() |
java.awt.image.BufferedImage |
getAsBufferedImage() |
byte[] |
getCompressedImage() |
int |
getDataType() |
java.lang.String |
getDataTypeAsString() |
int |
getHeight() |
java.awt.image.BufferedImage |
getRawImage() |
int |
getWidth() |
void |
setImage(java.awt.image.BufferedImage thumbnail) |
void |
setImage(int width,
int height,
int dataType,
byte[] compressedThumbnail) |
void |
setWriteQuality(int quality) |
abstract void |
write(java.io.OutputStream os) |
public static final int DATA_TYPE_KRawRGB
public static final int DATA_TYPE_KJpegRGB
public static final int DATA_TYPE_TIFF
protected java.awt.image.BufferedImage thumbnail
protected byte[] compressedThumbnail
protected int writeQuality
protected int width
protected int height
protected int dataType
public Thumbnail()
public Thumbnail(java.awt.image.BufferedImage thumbnail)
public Thumbnail(int width, int height, int dataType, byte[] compressedThumbnail)
public boolean containsImage()
public java.awt.image.BufferedImage getAsBufferedImage()
public byte[] getCompressedImage()
public int getDataType()
public java.lang.String getDataTypeAsString()
public int getHeight()
public java.awt.image.BufferedImage getRawImage()
public int getWidth()
public void setImage(java.awt.image.BufferedImage thumbnail)
public void setImage(int width, int height, int dataType, byte[] compressedThumbnail)
public void setWriteQuality(int quality)
public abstract void write(java.io.OutputStream os) throws java.io.IOException
java.io.IOException