Class DxfOptions
ชื่อพื้นที่: Aspose.Imaging.ImageOptions การประกอบ: Aspose.Imaging.dll (25.4.0)
API for Drawing Interchange Format (DXF) Vector Image Creation ข้อเสนอโซลูชั่นที่กําหนดเองสําหรับการสร้างไฟล์วาด AutoCAD ด้วยความแม่นยําและความยืดหยุ่น ออกแบบโดยเฉพาะอย่างยิ่งสําหรับการทํางานกับเส้นข้อความและ Beziercurves ผู้พัฒนาสามารถจัดการกับองค์ประกอบเหล่านี้ได้อย่างมีประสิทธิภาพคํานวณ Bezierจุดและแปลง curves into polylines for seamless exporting เพื่อให้แน่ใจว่าความเข้ากันได้และเชื่อถือได้ในภาพ vector DXF
public class DxfOptions : ImageOptionsBase, IDisposable, IHasXmpData, IHasMetadata, ICloneable
Inheritance
object ← DisposableObject ← ImageOptionsBase ← DxfOptions
Implements
IDisposable , IHasXmpData , IHasMetadata , ICloneable
อนุญาโตตุลาการ
ImageOptionsBase.Clone() , ImageOptionsBase.ReleaseManagedResources() , ImageOptionsBase.KeepMetadata , ImageOptionsBase.XmpData , ImageOptionsBase.Source , ImageOptionsBase.Palette , ImageOptionsBase.ResolutionSettings , ImageOptionsBase.VectorRasterizationOptions , ImageOptionsBase.BufferSizeHint , ImageOptionsBase.MultiPageOptions , ImageOptionsBase.FullFrame , ImageOptionsBase.ProgressEventHandler , DisposableObject.Dispose() , DisposableObject.ReleaseManagedResources() , DisposableObject.ReleaseUnmanagedResources() , DisposableObject.VerifyNotDisposed() , DisposableObject.Disposed , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
ตัวอย่างนี้แสดงให้เห็นการส่งออกไปยังรูปแบบ Dxf
//Create Image instance and initialize it with an existing image file from disk location
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(@"input.svg"))
{
Aspose.Imaging.ImageOptions.DxfOptions options = new Aspose.Imaging.ImageOptions.DxfOptions();
options.TextAsLines = true;
options.ConvertTextBeziers = true;
options.BezierPointCount = 20;
image.Save("output.dxf", options);
}
Constructors
DxfOptions()
public DxfOptions()
Properties
BezierPointCount
จํานวนจุดที่จะสร้างเมื่อแปลงโค้ง Bezier ไปยัง polylines อย่างน้อย 4. ใช้เมื่อ Aspose.Imaging.ImageOptions.DxfOptions.TextAsLines และ Aspose.Imaging.ImageOptions.DxfOptions.ConvertTextBeziers เป็นทั้ง /// set to ’true'
public byte BezierPointCount { get; set; }
คุณสมบัติมูลค่า
ConvertTextBeziers
การทํางานเมื่อ Aspose.Imaging.ImageOptions.DxfOptions.TextAsLines ได้รับการตั้งค่าเป็น ‘จริง’. Wether เพื่อแปลงโค้ง Bezier ในคอนกรีตข้อความเป็น polylines multipoint.
public bool ConvertTextBeziers { get; set; }
คุณสมบัติมูลค่า
TextAsLines
ไม่ว่าข้อความควรจะถูกส่งออกเป็นคอนกรีตที่ประกอบด้วยโพลีลิน (เริ่มต้น) หรือเป็น Autocad TEXT entities ที่สามารถแก้ไขได้หากตัวเลือกนี้ตั้งค่า
public bool TextAsLines { get; set; }