com.aspose.pdf.devices

Class ImageDevice

    • Constructor Detail

      • ImageDevice

        public ImageDevice()

        Abstract initializer for ImageDevice descendants, set resolution to 150x150.

      • ImageDevice

        public ImageDevice(Resolution resolution)

        Abstract initializer for ImageDevice descendants.

        Parameters:
        resolution - Resolution for the result image file, see Resolution class.
      • ImageDevice

        public ImageDevice(int width,
                   int height)

        Initializes a new instance of the JpegDevice class with provided image dimensions and default resolution (=150).

        Parameters:
        width - Image output width.
        height - Image output height.
      • ImageDevice

        public ImageDevice(PageSize pageSize)

        Initializes a new instance of the JpegDevice class with provided image dimensions and default resolution (=150).

        Parameters:
        pageSize - Page size of the output image.
      • ImageDevice

        public ImageDevice(int width,
                   int height,
                   Resolution resolution)

        Initializes a new instance of the JpegDevice class with provided image dimensions and resolution.

        Parameters:
        width - Image output width.
        height - Image output height.
        resolution - Resolution for the result image file, see Resolution class.
      • ImageDevice

        public ImageDevice(PageSize pageSize,
                   Resolution resolution)

        Initializes a new instance of the JpegDevice class with provided image dimensions and resolution.

        Parameters:
        pageSize - Page size of the output image.
        resolution - Resolution for the result image file, see Resolution class.
    • Method Detail

      • isShadingPerformanceHigh

        public static boolean isShadingPerformanceHigh()

        Is the performance of shading processes High.
        By default it true.

        Returns:
        boolean value
      • setShadingPerformanceHigh

        public static void setShadingPerformanceHigh(boolean value)

        Sets the the performance of shading processes High or not.

        Parameters:
        value - boolean value
      • getCoordinateType

        public int getCoordinateType()

        Gets the page coordinate type (Media/Crop boxes). CropBox value is used by default.

        Returns:
        PageCoordinateType element
        See Also:
        PageCoordinateType
      • setCoordinateType

        public void setCoordinateType(int value)

        Sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.

        Parameters:
        value - PageCoordinateType element
        See Also:
        PageCoordinateType
      • getRenderingOptions

        public RenderingOptions getRenderingOptions()

        Gets rendering options.

        Returns:
        RenderingOptions element
      • setRenderingOptions

        public void setRenderingOptions(RenderingOptions value)

        Sets rendering options.

        Parameters:
        value - RenderingOptions element
      • getFormPresentationMode

        public int getFormPresentationMode()

        Gets form presentation mode.

        Returns:
        FormPresentationMode element
        See Also:
        FormPresentationMode
      • setFormPresentationMode

        public void setFormPresentationMode(int value)

        Sets form presentation mode.

        Parameters:
        value - FormPresentationMode element
        See Also:
        FormPresentationMode
      • getResolution

        public Resolution getResolution()

        Gets image resolution.

        Returns:
        Resolution element
      • getWidth

        public int getWidth()

        Gets image output width.

        Returns:
        int value
      • getHeight

        public int getHeight()

        Gets image output height.

        Returns:
        int value
      • getCropRectangle

        public Rectangle getCropRectangle()
        Get rectangle that defines the area that will be converted into a picture. The default is null, in which case the whole page is converted to an image.
        Returns:
        Rectangle object
      • setCropRectangle

        public void setCropRectangle(Rectangle cropRectangle)
        Set rectangle that defines the area that will be converted into a picture. The default is null, in which case the whole page is converted to an image.
        Parameters:
        cropRectangle - Rectangle object