JpegOptions

Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject

All Implemented Interfaces: java.io.Serializable

public final class JpegOptions extends ValueObject implements Serializable

Options for conversion to Jpeg file type.

Constructors

Constructor Description
JpegOptions() Initializes new instance of JpegOptions class.

Methods

Method Description
getQuality() Desired image quality.
setQuality(int value) Desired image quality.
getColorMode() Jpg color mode.
setColorMode(JpgColorModes value) Jpg color mode.
getCompression() Jpg compression method.
setCompression(JpgCompressionMethods value) Jpg compression method.

JpegOptions()

public JpegOptions()

Initializes new instance of JpegOptions class.

getQuality()

public final int getQuality()

Desired image quality. The value must be between 0 and 100. The default value is 100.

Returns: int

setQuality(int value)

public final void setQuality(int value)

Desired image quality. The value must be between 0 and 100. The default value is 100.

Parameters:

Parameter Type Description
value int

getColorMode()

public final JpgColorModes getColorMode()

Jpg color mode.

Returns: JpgColorModes

setColorMode(JpgColorModes value)

public final void setColorMode(JpgColorModes value)

Jpg color mode.

Parameters:

Parameter Type Description
value JpgColorModes

getCompression()

public final JpgCompressionMethods getCompression()

Jpg compression method.

Returns: JpgCompressionMethods

setCompression(JpgCompressionMethods value)

public final void setCompression(JpgCompressionMethods value)

Jpg compression method.

Parameters:

Parameter Type Description
value JpgCompressionMethods