以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  svg的放缩变换对线宽是怎么影响的  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=126098)


--  作者:ts_chen
--  发布时间:3/11/2013 12:07:00 PM

--  svg的放缩变换对线宽是怎么影响的
我画了一个svg,并设定x缩放0.2, y缩放0.1,原始线宽为14, 我在inkscape中打开显示线宽为1.98,请问这是如何计算出来的?

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.0"
   width="18"
   height="18"
   id="symbol-playground">
  <defs
     id="defs4" />
  <g
     transform="matrix(0.2,0,0,0.1,0,0)"
     id="g2168">
 <path
       d="M 247,532 L 280,532"
       id="path2383"
       style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:14;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:1.10000002;stroke-dasharray:none;stroke-opacity:1" />
  </g>
</svg>


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
3,343.750ms