Lưu DXF

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ụ:

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);
}
view raw save-dxf.cs hosted with ❤ by GitHub