I need to create a html area map for shapes in SVG image to allow users click on every shape and be redirected somewhere else. I have created code which works good for shapes which aren’t rotated. But if we have a shape with rotate transformation, I’m not able to get correct coordinates.
Here is a sample app:
TestApp.zip (6.8 KB)
Steps to reproduce:
- Open project in Visual Studio and run it
- Choose a destination folder and press the button
- In the destination folder you will find file svg_with_areas.html which contains area map
- Open in in the browser and check two shapes with caption: jk (1) and khgkh (2)
See the screenshot:
screen.png (35.3 KB)
Shape with number 2 works good, there is a correct map element which allows you to click on this specific shape
But shape with number 1 doesn’t work. There is of course map created for this element but the coordinates are wrong. After the analysis, it looks like rotate transformation is a problem. I’m not sure if this is a bug in Aspose.Svg or my code is not good, so could you help me solving this problem?
Thanks a lot!