public final class JpegCompressionMode extends Object
Specifies JPEG compression modes.
Modifier and Type | Field and Description |
---|---|
static int |
Baseline
The baseline compression.
|
static int |
JpegLs
The JPEG-LS compression.
|
static int |
Lossless
The lossless compression.
|
static int |
Progressive
The progressive compression.
|
public static final int Baseline
The baseline compression.
public static final int JpegLs
The JPEG-LS compression. Use this compression type carefully because
many image viewers do not support it. If you use it try to assign the
JpegSaveOptions.ColorType
(JpegSaveOptions.getColorType()
/JpegSaveOptions.setColorType(int)
) property to JpegCompressionColorMode.Grayscale
value.
public static final int Lossless
The lossless compression. Use this compression type carefully because
many image viewers do not support it. If you use it try assign the
JpegSaveOptions.ColorType
(JpegSaveOptions.getColorType()
/JpegSaveOptions.setColorType(int)
) property to JpegCompressionColorMode.Grayscale
or JpegCompressionColorMode.Rgb
values.
public static final int Progressive
The progressive compression.