com.groupdocs.conversion.options.save

Class ImageSaveOptions

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable, Cloneable


    public final class ImageSaveOptions
    extends SaveOptions

    Options for to Image conversion

    • Constructor Detail

      • ImageSaveOptions

        public ImageSaveOptions()

        Create ImageSaveOptions instance

    • Method Detail

      • getWidth

        public final int getWidth()

        Desired image width after conversion

        Returns:
        width
      • setWidth

        public final void setWidth(int value)

        Desired image width after conversion

        Parameters:
        value - width
      • getHeight

        public final int getHeight()

        Desired image height after conversion

        Returns:
        height
      • setHeight

        public final void setHeight(int value)

        Desired image height after conversion

        Parameters:
        value - height
      • getUsePdf

        public final boolean getUsePdf()

        If true, the input firstly is converted to PDF and after that to desired format

        Overrides:
        getUsePdf in class SaveOptions
        Returns:
        use pdf flag
      • setUsePdf

        public final void setUsePdf(boolean value)

        If true, the input firstly is converted to PDF and after that to desired format

        Overrides:
        setUsePdf in class SaveOptions
        Parameters:
        value - use pdf flag
      • getConvertFileType

        public final long getConvertFileType()

        The desired file type to which the input document should be converted to

        Overrides:
        getConvertFileType in class SaveOptions
        Returns:
        file type
      • setConvertFileType

        public final void setConvertFileType(long value)

        The desired file type to which the input document should be converted to

        Overrides:
        setConvertFileType in class SaveOptions
        Parameters:
        value - file type
      • getHorizontalResolution

        public final int getHorizontalResolution()

        Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96dpi

        Returns:
        horizontal resolution
      • setHorizontalResolution

        public final void setHorizontalResolution(int value)

        Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96dpi

        Parameters:
        value - horizontal resolution
      • getVerticalResolution

        public final int getVerticalResolution()

        Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96dpi

        Returns:
        vertical resolution
      • setVerticalResolution

        public final void setVerticalResolution(int value)

        Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96dpi

        Parameters:
        value - vertical resolution
      • getJpegQuality

        @Deprecated
        public final int getJpegQuality()
        Deprecated. The property is obsolete and will be removed in v19.9. Please use JpegOptions.getQuality() instead.

        Desired image quality when converting to Jpeg. The value must be between 0 and 100. The default value is 100.

        Returns:
        jpeg quality
      • setJpegQuality

        @Deprecated
        public final void setJpegQuality(int value)
        Deprecated. The property is obsolete and will be removed in v19.9. Please use JpegOptions.setQuality() instead.

        Desired image quality when converting to Jpeg. The value must be between 0 and 100. The default value is 100.

        Parameters:
        value - jpeg quality
      • getTiffOptions

        public final TiffOptions getTiffOptions()

        Tiff specific convert options

        Returns:
        tiff options
      • setTiffOptions

        public final void setTiffOptions(TiffOptions value)

        Tiff specific convert options

        Parameters:
        value - tiff options
      • getPsdOptions

        public final com.groupdocs.conversion.options.save.PsdOptions getPsdOptions()

        Psd specific convert options

        Returns:
        Psd specific convert options
      • getWebpOptions

        public final WebpOptions getWebpOptions()

        Webp specific convert options

        Returns:
        Webp specific convert options
      • getGrayscale

        public final boolean getGrayscale()

        Convert to grayscale image

        Returns:
        Convert to grayscale image flag
      • setGrayscale

        public final void setGrayscale(boolean value)

        Convert to grayscale image

        Parameters:
        value - Convert to grayscale image flag
      • getRotateAngle

        public final int getRotateAngle()

        Image rotation angle

        Returns:
        rotation angle
      • setRotateAngle

        public final void setRotateAngle(int value)

        Image rotation angle

        Parameters:
        value - rotation angle
      • setJpegOptions

        public void setJpegOptions(JpegOptions jpegOptions)
      • getBrightness

        public int getBrightness()
        Image brightness
        Returns:
        brightness
      • setBrightness

        public void setBrightness(int brightness)
        Set brightness
        Parameters:
        brightness - brightness
      • getContrast

        public int getContrast()
        Get image contrast
        Returns:
        contrast
      • setContrast

        public void setContrast(int contrast)
        Set image contrast
        Parameters:
        contrast - contrast
      • getGamma

        public float getGamma()
        Get image gamma
        Returns:
        gamma
      • setGamma

        public void setGamma(float gamma)
        Set image gamma
        Parameters:
        gamma - gamma