Batik provides several ways to use an SVG DOM tree. Two modules can be immediately used to render your SVG document.
JSVGCanvas
The JSVGCanvas is a Swing component that can display SVG document. A SVG document can be specified using a URI or an SVG DOM tree (using the setSVGDocument method).
ImageTranscoder
The ImageTranscoder is a transcoder that can take a URI, an InputStream or an SVG DOM tree and produces a raster image (such JPEG, PNG or TIFF). By creating a TranscoderInput object with the SVG DOM tree, you will be able to transform your SVG content to a raster image.
0 件のコメント:
コメントを投稿