if (matchName.matches()) {
shortName = matchName.group(1);
}
shortName += "." + format;
SVGIcon icon = new SVGIcon();
icon.setSvgURI(source.toURI());
icon.setAntiAlias(antiAlias);
maybeResizeIcon(icon);
int width = icon.getIconWidth();
int height = icon.getIconHeight();
icon.setClipToViewbox(clipToViewBox);
BufferedImage image = new BufferedImage(width, height,
BufferedImage.TYPE_INT_ARGB);
Graphics2D g = image.createGraphics();
g = new ImageResizingGraphics(g);
if (bgColor != null) {
g.setColor(bgColor);
g.fillRect(0, 0, width, height);
}
g.setClip(0, 0, width, height);
icon.paintIcon(null, g, 0, 0);
g.dispose();
File outFile = destDir == null ? new File(baseDir, shortName)
: new File(destDir, shortName);
if (verbose)