I would like to zoom in/out on SVG file in java. I would like to do it from the program and can’t find a way.
I know you can zoom in/out via mouse or keyboard but that is not what I’m looking for. I’m new to java (2 weeks of learning) and there is probably an easy solution to my problem but I can’t find it.
Can anyone help me?
To properly zoom in/out on svg in java you need to use
Note that you also need viewbox in your XML of svg.