Package VASSAL.tools.image.svg
Class SVGRenderer
java.lang.Object
VASSAL.tools.image.svg.SVGRenderer
Render an SVG image to a
BufferedImage
.- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.apache.batik.transcoder.TranscodingHints.Key
static org.apache.batik.transcoder.TranscodingHints.Key
-
Constructor Summary
ConstructorDescriptionSVGRenderer(String file, InputStream in)
Closes theInputStream
.SVGRenderer(URL file, InputStream in)
Closes theInputStream
. -
Method Summary
Modifier and TypeMethodDescriptionrender()
render(double angle, double scale)
render(double angle, double scale, Rectangle2D aoi)
-
Field Details
-
KEY_BACKGROUND_COLOR
public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_BACKGROUND_COLOR -
KEY_FORCE_TRANSPARENT_WHITE
public static final org.apache.batik.transcoder.TranscodingHints.Key KEY_FORCE_TRANSPARENT_WHITE
-
-
Constructor Details
-
SVGRenderer
Closes theInputStream
.- Throws:
IOException
-
SVGRenderer
Closes theInputStream
.- Throws:
IOException
-
-
Method Details
-
render
-
render
-
render
-