将SVGimage
元素映射到 html。
inkscape 中的图像逆时针旋转 50 度:
<image
y="178.3712"
x="-212.40982"
id="image3002"
xlink:href="..path"
height="369"
width="360"
transform="matrix(0.64278761,-0.76604444,0.76604444,0.64278761,0,0)" />
根据这个数学逻辑计算 x & y :
X = -212.40982, Y = 178.3712
x = X * 0.64278761 - Y * 0.76604444;
y = X * 0.76604444 + Y * 0.64278761;
当我在 html 中映射图像时计算 x 和 y 后,它看起来:
现在可以请任何人帮助我,请解释一下这里出了什么问题?