I have a large map in vectorgraphics, that I show in my custom view.
I move the map with the canvas.translate() function, so I don’t need to recalculate all pathes of my lines again.
Is there any similar mechanism to achieve a zooming function? I would like to keep my paths with the values and zoom out and in, Or do I have to recalculate all points of my pathes from scratch.
Regards
Canvas.scale() will scale the canvas (zoom in/out). Try performing the scale after you draw your paths. If it does not work you’ll need to recalculate the points.