Class EncodeImageOptions


  • public class EncodeImageOptions
    extends java.lang.Object
    Options for encoding image.
    • Constructor Detail

      • EncodeImageOptions

        public EncodeImageOptions​(int quality,
                                  EncodingFormat format)
        Constructs EncodeImageOptions with the given params.
        Parameters:
        quality - Quality parameter is for jpeg only and is in range 0 to 100. If -1, then settings from hibernation are used. In case when the Image Ref was created with a lazy load mode and originally has the same format as the requested to save, then setting quality to -1 leads to simply copying from source to destination, which is time efficient and prevents quality loss caused by jpeg encoding/decoding. Default is -1
        format - Image format. Default is JPEG
      • EncodeImageOptions

        public EncodeImageOptions()
        Constructs EncodeImageOptions with default parameters.
    • Method Detail

      • getQuality

        public int getQuality()
        Getter for quality field. See constructor documentation for more information about the field.
        Returns:
        quality
      • setQuality

        public void setQuality​(int quality)
        Setter for quality field. See constructor documentation for more information about the field.
        Parameters:
        quality - Value to set.
      • getFormat

        public EncodingFormat getFormat()
        Getter for format field. See constructor documentation for more information about the field.
        Returns:
        format
      • setFormat

        public void setFormat​(EncodingFormat format)
        Setter for format field. See constructor documentation for more information about the field.
        Parameters:
        format - Value to set.