JpegCompressionMode

Inheritance: java.lang.Object

public final class JpegCompressionMode

Specifies JPEG compression modes.

Fields

Field Description
Baseline The baseline compression.
Progressive The progressive compression.
Lossless The lossless compression.
JpegLs The JPEG-LS compression.

Baseline

public static final int Baseline

The baseline compression.

Progressive

public static final int Progressive

The progressive compression.

Lossless

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.

JpegLs

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.