public class PngEncoderImpl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BEST_COMPRESSION |
static int |
BEST_SPEED |
static int |
COLOR_INDEXED |
static int |
COLOR_TRUECOLOR |
static int |
COLOR_TRUECOLOR_ALPHA |
static int |
DEFAULT_COMPRESSION |
Constructor and Description |
---|
PngEncoderImpl() |
PngEncoderImpl(int colorType) |
PngEncoderImpl(int colorType,
int compression) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.awt.Image image,
java.io.OutputStream outputstream) |
int |
getColorType() |
static java.lang.String |
getVersion() |
void |
setColorType(int colorType) |
void |
setCompression(int i) |
public static final int COLOR_TRUECOLOR
public static final int COLOR_INDEXED
public static final int COLOR_TRUECOLOR_ALPHA
public static final int DEFAULT_COMPRESSION
public static final int BEST_SPEED
public static final int BEST_COMPRESSION
public PngEncoderImpl()
public PngEncoderImpl(int colorType)
public PngEncoderImpl(int colorType, int compression)
public void setColorType(int colorType)
public int getColorType()
public void setCompression(int i)
public static java.lang.String getVersion()
public void encode(java.awt.Image image, java.io.OutputStream outputstream) throws java.io.IOException
java.io.IOException