@@ -0,0 +1,1792 @@
+package imj3.draft;%0A%0Aimport static java.lang.Double.parseDouble;%0Aimport static multij.swing.SwingTools.*;%0A%0Aimport java.awt.Color;%0Aimport java.awt.geom.AffineTransform;%0Aimport java.awt.geom.Area;%0Aimport java.io.File;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport javax.swing.SwingUtilities;%0A%0Aimport org.w3c.dom.Document;%0A%0Aimport multij.tools.Canvas;%0Aimport multij.tools.CommandLineArgumentsParser;%0Aimport multij.tools.IllegalInstantiationException;%0A%0A/**%0A * @author codistmonk (creation 2015-09-18)%0A */%0Apublic final class ShowSVG %7B%0A%09%0A%09private ShowSVG() %7B%0A%09%09throw new IllegalInstantiationException();%0A%09%7D%0A%09%0A%09/**%0A%09 * @param commandLineArguments%0A%09 * %3Cbr%3EMust not be null%0A%09 */%0A%09public static final void main(final String%5B%5D commandLineArguments) %7B%0A%09%09final CommandLineArgumentsParser arguments = new CommandLineArgumentsParser(commandLineArguments);%0A%09%09final File svgFile = new File(arguments.get(%22svg%22, %22%22));%0A%09%09final Document svg = SVGTools.readXML(svgFile);%0A%09%09final double width0 = parseDouble(svg.getDocumentElement().getAttribute(%22width%22));%0A%09%09final double height0 = parseDouble(svg.getDocumentElement().getAttribute(%22height%22));%0A%09%09final double aspectRatio = width0 / height0;%0A%09%09final int height = 1024;%0A%09%09final int width = (int) (height * aspectRatio);%0A%09%09final Canvas canvas = new Canvas().setFormat(width, height);%0A%09%09final Map%3CString, List%3CArea%3E%3E regions = SVGTools.getRegions(svg);%0A%09%09final AffineTransform transform = new AffineTransform();%0A%09%09%0A%09%09transform.scale(width / width0, height / height0);%0A%09%09canvas.getGraphics().setColor(Color.GREEN);%0A%09%09%0A%09%09regions.values().forEach(list -%3E list.forEach(region -%3E %7B%0A%09%09%09region.transform(transform);%0A%09%09%09canvas.getGraphics().draw(region);%0A%09%09%7D));%0A%09%09%0A%09%09SwingUtilities.invokeLater(() -%3E %7B%0A%09%09%09show(canvas.getImage(), svgFile.getName(), false);%0A%09%09%7D);%0A%09%7D%0A%09%0A%7D%0A

Add tool ShowSVG.