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.
Author:
Pete Bankhead
  • Constructor Details

    • SvgTools

      public SvgTools()
  • Method Details

    • writeViewerSnapshot

      public static void writeViewerSnapshot(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