0

我正在编写一些在 SVG 中生成图形的代码,我想知道生成的 SVG 文件的大小。例如,对于以下两行:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<line x1="0" y1="0" x2="0" y2="400.0" stroke="black" stroke-width="1"/>
<line x1="0" y1="400.0" x2="600.0" y2="400.0" stroke="black" stroke-width="1"/>
</svg>

生成的图像将自动为 600 x 400 像素,对吗?还是我必须做出单独的定义?

4

0 回答 0