com.groupdocs.viewer.converter.options

Class ImageOptions



  • public class ImageOptions
    extends RenderOptions

    Provides options for rendering documents as image.

    Version:
    17.5.0
    Author:
    GroupDocs.Viewer Team
    • Constructor Detail

      • ImageOptions

        public ImageOptions()

        Initialize new instance of image options

    • Method Detail

      • getConvertImageFileType

        public int getConvertImageFileType()

        The type of image file, default is PNG.

        Returns:
        a int.
      • setConvertImageFileType

        public void setConvertImageFileType(int value)

        The type of image file, default is PNG.

        The following example demonstrates how to get image representations of document in the specified file format.
        Parameters:
        value - a int.
      • getWidth

        public int getWidth()

        The image width.

        Returns:
        a int.
      • setWidth

        public void setWidth(int value)

        The image width.

        The following example demonstrates how to set the width of an image representations of the document in pixels.
        Parameters:
        value - a int.
      • getHeight

        public int getHeight()

        The image height.

        Returns:
        a int.
      • setHeight

        public void setHeight(int value)

        The image height.

        The following example demonstrates how to set the height of an image representations of the document in pixels.
        Parameters:
        value - a int.
      • getFileExtension

        public String getFileExtension()

        Gets extension for ConvertFileType.

        The following example demonstrates how to get file extension from an ImageOptions object.
        Returns:
        a String object.