Class SvgTools

java.lang.Object
qupath.lib.extension.svg.SvgTools

public class SvgTools extends Object
Helper class for writing SVG images, in particular rendered PathObjects to create high-quality figures.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Builder class to enable the export of rendered QuPath objects as SVG images.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    writeViewerSnapshot(qupath.lib.gui.viewer.QuPathViewer viewer, File fileSVG)
    Write an SVG image representing the contents of the specified viewer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SvgTools

      public SvgTools()
  • Method Details

    • writeViewerSnapshot

      public static void writeViewerSnapshot(qupath.lib.gui.viewer.QuPathViewer viewer, File fileSVG) throws IOException
      Write an SVG image representing the contents of the specified viewer.
      Parameters:
      viewer - the viewer to render
      fileSVG - SVG file for the export; should have the extension ".svg"
      Throws:
      IOException