在SVG中缩放线条
Contents
[
Hide
]导出到SVG时更改线条比例
您可以控制SVG文件中线条的比例,Aspose.CAD库提供了所有必要的工具来实现这一点。
在vector_rasterization_options中使用line_scale参数来控制线条比例
示例代码:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cad import * | |
from aspose.cad.imageoptions import * | |
image = Image.load("file.plt") | |
options = SvgOptions() | |
options.vector_rasterization_options.line_scale = 0.25 | |
image.save("export.svg", options) |
使用线性比例的文件
- 如果LineScale参数设置为0.25的文件。
- 如果您不使用线条缩放的文件。