How to display many SVGs in Java with high performance

What I want

My goal is to show a large number of SVG images in one drawing area in Java, each with its own translation / rotation / scaling values. I am looking for the simplest solution that allows this, possibly even using OpenGL to speed things up.

What i tried

My initial naive approach was to use SVGSalamander to draw directly on JPanel, but the performance was pathetic.

I poked around and found out that I had to do something like manually converting each SVG to a BufferedImage created using createCompatibleImage, then doing the transforms I want, and then drawing using double buffering. I ran into some problems here, and before continuing, I tried to find a framework to simplify things.

What I looked

I'm a bit overloaded with the available options, so I turn to SO for help. I watched:

But I could not decide what was best for me to start working, and I hope that someone here, as experience with any of them, does similar things.

+3
1

SVG , .

0

Source: https://habr.com/ru/post/1741904/


All Articles