com.groupdocs.conversion.options.save

Class JpegOptions



  • public final class JpegOptions
    extends Object
    Options for converting to Jpeg
    • Constructor Detail

      • JpegOptions

        public JpegOptions()
        Default constructor
    • Method Detail

      • getQuality

        public int getQuality()
        Get desired image quality.
        Returns:
        image quality from 0 to 100
      • setQuality

        public void setQuality(int quality)
        Set desired image quality. The value must be between 0 and 100. The default value is 100.
        Parameters:
        quality - image quality
      • getColorMode

        public int getColorMode()
        Get color mode
        Returns:
        color mode
      • setColorMode

        public void setColorMode(int colorMode)
        Set color mode
        Parameters:
        colorMode - color mode
      • setCompressionMode

        public void setCompressionMode(JpegOptions.CompressionModes compressionMode)
        Set compression mode
        Parameters:
        compressionMode - compression mode