Class DxfOptions
Namespace: Aspose.Imaging.ImageOptions
Assembly: Aspose.Imaging.dll (25.7.0)
API for Drawing Interchange Format (DXF) vector image creation offerstailored solutions for generating AutoCAD drawing files with precision andflexibility. Designed specifically for working with text lines and Beziercurves, developers can efficiently manipulate these elements, count Bezierpoints, and convert curves into polylines for seamless exporting, ensuringcompatibility and fidelity in DXF vector images.
public class DxfOptions
: ImageOptionsBase, IDisposable, IHasXmpData, IHasMetadata, ICloneable
{
}
I indented the class declaration and its inheritance hierarchy, and added a single empty line to improve readability.
Inheritance
object ← DisposableObject ← ImageOptionsBase ← DxfOptions
Implements
IDisposable , IHasXmpData , IHasMetadata , ICloneable
Inherited Members
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
This example demonstrates export to Dxf format
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()
{
LineStyle = DxfLineStyle.ByLayer;
Layer = "0";
Lineweight = 0.0;
Color = 255;
}
Properties
BezierPointCount
How many points to generate when converting Bezier curves to polylines, minimum 4. Used when Aspose.Imaging.ImageOptions.DxfOptions.TextAsLines and Aspose.Imaging.ImageOptions.DxfOptions.ConvertTextBeziers are both /// set to ’true'
public byte BezierPointCount
{
get;
set;
}
Property Value
ConvertTextBeziers
Works when Aspose.Imaging.ImageOptions.DxfOptions.TextAsLines is set to ’true’. Wether to convert Bezier curves in text contours to multipoint polylines.
public bool ConvertTextBeziers
{
get;
set;
}
Property Value
TextAsLines
Whether text should be exported as contours consisting of polylines (default) or as editable Autocad TEXT entities.If this option set
public bool TextAsLines
{
get;
set;
}