How do I embed an SVG image inside another SVG image using svggen?

Craig Dickson <[email protected]> Sun, 29 Sep 2013 06:59:53 +1000
Newsgroups gmane.text.xml.batik.user
Message-ID <CADMULZ033U5NYPGnsRzb2+CrCvpT1S5esW3p=6av7q1hKv45Sw@mail.gmail.com>
I am programatically generating a large image using the Java Graphics2D
related libraries. I am using the SVGGraphics2D class to allow rendering to
SVG.

My challenge is that I have a set of icons that are already in SVG format
that I want to embed into the larger image.

Based on the documentation I understand how to bring the icon SVG files
into the Graphics2D environment using an ImageTranscoder. However this
process is rasterizing the SVG files and turning them into a BufferedImage.

The result is that when I render the main image at larger dimensions, the
icons look horrible while the rest of the image is crisp.

Is there a way to embed an SVG image using SVGGraphics2D without
rasterizing it first?

Thanks