com.aspose.html.rendering

Class SvgRenderer

  • All Implemented Interfaces:
    com.aspose.html.internal.ms.System.IDisposable


    public class SvgRenderer
    extends Renderer<SVGDocument>

    Represents SVG document renderer.

    See Also:
    SVGDocument
    • Constructor Detail

      • SvgRenderer

        public SvgRenderer()
    • Method Detail

      • render

        public void render(IDevice device,
                           com.aspose.html.internal.ms.System.TimeSpan timeout,
                           SVGDocument[] documents)

        Defines method for rendering multiple SVGDocuments into specific IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

        Specified by:
        render in class Renderer<SVGDocument>
        Parameters:
        device - The output device.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.
        documents - The documents to render.
      • render

        public void render(IDevice device,
                           com.aspose.html.internal.ms.System.TimeSpan timeout,
                           SVGDocument document)

        Defines method for rendering SVGDocument into specific IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

        Specified by:
        render in class Renderer<SVGDocument>
        Parameters:
        device - The output device.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.
        document - The documents to render.
      • render

        public void render(IDevice device,
                           boolean needFlush,
                           SVGSVGElement... elements)

        Renders multiple SVGSVGElements into specified IDevice.

        Parameters:
        device - The device.
        needFlush - The flag which controls flushing.
        elements - The elements to render.