com.groupdocs.conversion.converter.option

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

      • getUseWidthForCustomName

        public boolean getUseWidthForCustomName()

        If true the width of the page will be added to the CustomName when generating the caching file name.

        Returns:
      • setUseWidthForCustomName

        public void setUseWidthForCustomName(boolean value)

        If true the width of the page will be added to the CustomName when generating the caching file name.

        Parameters:
        value -
      • getWidth

        public int getWidth()

        Desired image width after conversion

        Returns:
      • setWidth

        public void setWidth(int value)

        Desired image width after conversion

        Parameters:
        value -
      • getHeight

        public int getHeight()

        Desired image height after conversion

        Returns:
      • setHeight

        public void setHeight(int value)

        Desired image height after conversion

        Parameters:
        value -
      • getUsePdf_ImageSaveOptions_New

        public boolean getUsePdf_ImageSaveOptions_New()

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

        Returns:
      • setUsePdf_ImageSaveOptions_New

        public void setUsePdf_ImageSaveOptions_New(boolean value)

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

        Parameters:
        value -
      • getConvertFileType_ImageSaveOptions_New

        public com.groupdocs.foundation.domain.FileType getConvertFileType_ImageSaveOptions_New()

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

        Returns:
      • setConvertFileType_ImageSaveOptions_New

        public void setConvertFileType_ImageSaveOptions_New(com.groupdocs.foundation.domain.FileType value)

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

        Parameters:
        value -
      • setDpi

        @Deprecated
        public void setDpi(int value)
        Deprecated. 

        Desired image DPI after conversion. It sets both HorizontalResolution and VerticalResolution. The default resolution is: 96dpi

        Parameters:
        value -
      • getHorizontalResolution

        public int getHorizontalResolution()

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

      • setHorizontalResolution

        public void setHorizontalResolution(int value)

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

      • getVerticalResolution

        public int getVerticalResolution()

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

      • setVerticalResolution

        public void setVerticalResolution(int value)

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

      • getJpegQuality

        public int getJpegQuality()

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

        Returns:
      • setJpegQuality

        public void setJpegQuality(int value)

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

        Parameters:
        value -
      • getTiffOptions

        public TiffOptions getTiffOptions()

        Tiff specific convert options

        Returns:
      • setTiffOptions

        public void setTiffOptions(TiffOptions value)

        Tiff specific convert options

        Parameters:
        value -
      • getPsdOptions

        public PsdOptions getPsdOptions()

        Psd specific convert options

        Returns:
      • setPsdOptions

        public void setPsdOptions(PsdOptions value)

        Psd specific convert options

        Parameters:
        value -
      • getWebpOptions

        public WebpOptions getWebpOptions()

        Webp specific convert options

        Returns:
      • setWebpOptions

        public void setWebpOptions(WebpOptions value)

        Webp specific convert options

        Parameters:
        value -
      • getGrayscale

        public boolean getGrayscale()

        Convert to grayscale image

        Returns:
      • setGrayscale

        public void setGrayscale(boolean value)

        Convert to grayscale image

        Parameters:
        value -