OutputSettings (Google App Engine API for Java)

com.google.appengine.api.images

Class OutputSettings

  • java.lang.Object
    • com.google.appengine.api.images.OutputSettings


  • public class OutputSettings
    extends java.lang.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:
        java.lang.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.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

App Engine standard environment for Java