如何重新采样SVG?

时间:2014-10-14 04:23:34

标签: svg

我不确定'resample'是正确的词,所以我想要做的是改变SVG的自然高度和宽度。这将重新计算所有点,但保持完全相同的结果图像。

例如:

<svg width="30px" height="30px" viewBox="0 0 30 30">
  <polygon points="0,0 10,10 30,30" />
</svg>

为:

<svg width="60px" height="60px" viewBox="0 0 60 60">
  <polygon points="0,0 20,20 60,60" />
</svg>

0 个答案:

没有答案