Thay đổi tỷ lệ đường trong SVG
Contents
[
Hide
]Thay đổi tỷ lệ đường khi xuất ra SVG
Bạn có thể kiểm soát tỷ lệ của các đường trong tệp SVG, thư viện Aspose.CAD cung cấp tất cả các công cụ cần thiết cho việc này.
Sử dụng tham số line_scale trong vector_rasterization_options để kiểm soát tỷ lệ của các đường
Mã ví dụ:
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) |
Một tệp sử dụng tỷ lệ tuyến tính
- Tệp nếu tham số LineScale được đặt thành 0.25.
- Tệp nếu bạn không sử dụng tỷ lệ đường.