Examples

Practical snippets for imageio-svg. The plugin is used through the standard ImageIO API and renders with Apache Batik.

Read an SVG file

BufferedImage image = ImageIO.read(new File("image.svg"));

Read from a stream

BufferedImage image = ImageIO.read(inputStream);

Next steps

  • Getting Started — add the dependency and read your first SVG.
  • Features — ImageIO integration and high-quality vector rendering.
Edit this page