Class JpegEncoderOptions
java.lang.Object
com.idrsolutions.image.jpeg.options.JpegEncoderOptions
- All Implemented Interfaces:
com.idrsolutions.image.encoder.options.EncoderOptions
public class JpegEncoderOptions
extends Object
implements com.idrsolutions.image.encoder.options.EncoderOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.idrsolutions.image.encoder.OutputFormat
int
Retrieve the image quality level for JPEG output.void
setQuality
(int quality) Set the image quality level for JPEG output.
-
Constructor Details
-
JpegEncoderOptions
public JpegEncoderOptions()
-
-
Method Details
-
getOutputFormat
public com.idrsolutions.image.encoder.OutputFormat getOutputFormat()- Specified by:
getOutputFormat
in interfacecom.idrsolutions.image.encoder.options.EncoderOptions
-
setQuality
public void setQuality(int quality) Set the image quality level for JPEG output. The quality level can be between 1 - 100 and if not set defaults to 75. Higher quality produces better quality JPEG files but increases output data size.- Parameters:
quality
- Quality level to set for JPEG output
-
getQuality
public int getQuality()Retrieve the image quality level for JPEG output. The quality level can be between 1 - 100 and if not set defaults to 50. Higher quality produces better quality JPEG files but increases output data size.- Returns:
- Quality level used for JPEG output
-