public static BufferedImage svg2image( URL svgUrl, float scaleFactor ) {
		SVGDocument document = FlatSVGIcon.loadSVG( svgUrl );
		Dimension2D size = document.size();
		int width = (int) (size.getWidth() * scaleFactor);
		int height = (int) (size.getHeight() * scaleFactor);
		return svg2image( document, width, height );
	}
Creates a buffered image and renders the given SVG into it.
<p>
This method is useful if using Java modules and the package containing the SVG
is not opened in {@code module-info.java}.
E.g. {@code svg2image( getClass().getResource( "/com/myapp/myicon.svg" ), 1.5f )}.

@param svgUrl the URL of the SVG resource
@param scaleFactor the amount by which the SVG size is scaled
@return the image
@throws RuntimeException if failed to load or render SVG file
@since 2
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatSVGUtils.java