com.aspose.html.rendering.image

Class ImageRenderingOptions

  • All Implemented Interfaces:
    Cloneable


    public class ImageRenderingOptions
    extends RenderingOptions

    Represents rendering options for ImageDevice. This options is used to specify output image format, compression, resolution etc.

    • Constructor Detail

      • ImageRenderingOptions

        public ImageRenderingOptions(int format)

        Initializes a new instance of the ImageRenderingOptions class with specified image format.

        Parameters:
        format - The output image format.
    • Method Detail

      • getHorizontalResolution

        public Resolution getHorizontalResolution()

        Sets or gets horizontal resolution for output and internal (which are used during filters processing) images, in pixels per inch. By default this property is 300 dpi.

        Overrides:
        getHorizontalResolution in class RenderingOptions
      • setHorizontalResolution

        public void setHorizontalResolution(Resolution value)

        Sets or gets horizontal resolution for output and internal (which are used during filters processing) images, in pixels per inch. By default this property is 300 dpi.

        Overrides:
        setHorizontalResolution in class RenderingOptions
      • getVerticalResolution

        public Resolution getVerticalResolution()

        Sets or gets vertical resolution for output and internal (which are used during filters processing) images, in pixels per inch. By default this property is 300 dpi.

        Overrides:
        getVerticalResolution in class RenderingOptions
      • setVerticalResolution

        public void setVerticalResolution(Resolution value)

        Sets or gets vertical resolution for output and internal (which are used during filters processing) images, in pixels per inch. By default this property is 300 dpi.

        Overrides:
        setVerticalResolution in class RenderingOptions
      • getCompression

        public int getCompression()

        Sets or gets Tagged Image File Format (TIFF) Compression. By default this property is Compression.LZW.

      • setCompression

        public void setCompression(int value)

        Sets or gets Tagged Image File Format (TIFF) Compression. By default this property is Compression.LZW.

      • getSmoothingMode

        public int getSmoothingMode()

        Gets or sets the rendering quality for this Graphics.

      • setSmoothingMode

        public void setSmoothingMode(int value)

        Gets or sets the rendering quality for this Graphics.