Class OutputSettings


  • public class OutputSettings
    extends Object
    OutputSettings represents the different settings to specify how a particular transform or composite will return an Image.
    • Method Detail

      • setOutputEncoding

        public void setOutputEncoding​(ImagesService.OutputEncoding outputEncoding)
        Sets the output encoding.
        Parameters:
        outputEncoding - The encoding to set.
      • getQuality

        public int getQuality()
        Gets the quality.
        Returns:
        If the quality has been set, a value between 1 and 100. Otherwise, it returns -1.
      • setQuality

        public void setQuality​(int quality)
        Sets the quality of the returned image. Value must be between 1 and 100.
        Parameters:
        quality - The quality to set.
        Throws:
        IllegalArgumentException - if quality is not between 1 and 100.
      • hasQuality

        public boolean hasQuality()
        Checks if the quality value has been set.
        Returns:
        If the quality has been set, true. Otherwise, false.