Lưu DXF
Contents
[
Hide
]Cách lưu tệp DXF
Vấn đề: Cách lưu tệp DXF.
Mẹo: Để làm điều này, bạn có thể sử dụng DxfOption, cả nhị phân và bình thường, trong các tùy chọn lưu tệp.
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
using (var image = Image.Load(inputFile)) | |
{ | |
DxfOptions options = new DxfOptions(); | |
image.Save(outFile, options); | |
} | |
using (var image = Image.Load(inputFile)) | |
{ | |
DxfOptions options = new DxfOptions(); | |
options.DxfFileFormat = DxfFileFormat.Binary; | |
image.Save(outFile2, options); | |
} |