Class SvgUtil


  • public final class SvgUtil
    extends java.lang.Object
    SVG Utilities.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.image.BufferedImage convertFromSvg​(java.net.URI svgFile, int width, int height)
      Renders an SVG image into a BufferedImage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convertFromSvg

        public static java.awt.image.BufferedImage convertFromSvg​(java.net.URI svgFile,
                                                                  int width,
                                                                  int height)
                                                           throws org.apache.batik.transcoder.TranscoderException
        Renders an SVG image into a BufferedImage.
        Parameters:
        svgFile - the svg file
        width - the width
        height - the height
        Returns:
        a buffered image
        Throws:
        org.apache.batik.transcoder.TranscoderException