com.groupdocs.conversion.options.convert

Class ImageConvertOptions

    • Constructor Detail

      • ImageConvertOptions

        public ImageConvertOptions()

        Initializes new instance of ImageConvertOptions class.

    • Method Detail

      • getWidth

        public final int getWidth()

        Desired image width after conversion.

      • setWidth

        public final void setWidth(int value)

        Desired image width after conversion.

      • getHeight

        public final int getHeight()

        Desired image height after conversion.

      • setHeight

        public final void setHeight(int value)

        Desired image height after conversion.

      • getUsePdf

        public final boolean getUsePdf()

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

      • setUsePdf

        public final void setUsePdf(boolean value)

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

      • getHorizontalResolution

        public final int getHorizontalResolution()

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

      • setHorizontalResolution

        public final void setHorizontalResolution(int value)

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

      • getVerticalResolution

        public final int getVerticalResolution()

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

      • setVerticalResolution

        public final void setVerticalResolution(int value)

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

      • getTiffOptions

        public final TiffOptions getTiffOptions()

        Tiff specific convert options.

      • setTiffOptions

        public final void setTiffOptions(TiffOptions value)

        Tiff specific convert options.

      • getPsdOptions

        public final PsdOptions getPsdOptions()

        Psd specific convert options.

      • setPsdOptions

        public final void setPsdOptions(PsdOptions value)

        Psd specific convert options.

      • getWebpOptions

        public final WebpOptions getWebpOptions()

        Webp specific convert options.

      • setWebpOptions

        public final void setWebpOptions(WebpOptions value)

        Webp specific convert options.

      • getGrayscale

        public final boolean getGrayscale()

        Indicates whether to convert into grayscale image.

      • setGrayscale

        public final void setGrayscale(boolean value)

        Indicates whether to convert into grayscale image.

      • getRotateAngle

        public final int getRotateAngle()

        Image rotation angle.

      • setRotateAngle

        public final void setRotateAngle(int value)

        Image rotation angle.

      • getJpegOptions

        public final JpegOptions getJpegOptions()

        Jpeg specific convert options.

      • setJpegOptions

        public final void setJpegOptions(JpegOptions value)

        Jpeg specific convert options.

      • getFlipMode

        public final ImageFlipModes getFlipMode()

        Image flip mode.

      • setFlipMode

        public final void setFlipMode(ImageFlipModes value)

        Image flip mode.

      • getBrightness

        public final int getBrightness()

        Adjusts image brightness.

      • setBrightness

        public final void setBrightness(int value)

        Adjusts image brightness.

      • getContrast

        public final int getContrast()

        Adjusts image contrast.

      • setContrast

        public final void setContrast(int value)

        Adjusts image contrast.

      • getGamma

        public final float getGamma()

        Adjusts image gamma.

      • setGamma

        public final void setGamma(float value)

        Adjusts image gamma.

      • getPageNumber

        public Integer getPageNumber()
        Gets the page number to start conversion from.
        Specified by:
        getPageNumber in interface IPagedConvertOptions
        Returns:
        The page number to start conversion from.
      • setPageNumber

        public void setPageNumber(int pageNumber)
        Sets the page number to start conversion from.
        Specified by:
        setPageNumber in interface IPagedConvertOptions
        Parameters:
        pageNumber - The page number to start conversion from.
      • getPagesCount

        public Integer getPagesCount()
        Gets number of pages to convert starting from PageNumber.
        Specified by:
        getPagesCount in interface IPagedConvertOptions
        Returns:
        Number of pages to convert starting from PageNumber.
      • setPagesCount

        public void setPagesCount(int pagesCount)
        Description copied from interface: IPagedConvertOptions
        Sets number of pages to convert starting from PageNumber.
        Specified by:
        setPagesCount in interface IPagedConvertOptions
        Parameters:
        pagesCount - Number of pages to convert starting from PageNumber.
      • getPages

        public List<Integer> getPages()
        Gets The list of page indexes to be converted. Should be specified to convert specific pages.
        Specified by:
        getPages in interface IPageRangedConvertOptions
        Returns:
        The list of page indexes to be converted. Should be specified to convert specific pages.
      • setPages

        public void setPages(List<Integer> pages)
        Sets the list of page indexes to be converted. Should be specified to convert specific pages.
        Specified by:
        setPages in interface IPageRangedConvertOptions
        Parameters:
        pages - The list of page indexes to be converted. Should be specified to convert specific pages.