Class DxfOptions

Class DxfOptions

Namespace: Aspose.Imaging.ImageOptions
Assembly: Aspose.Imaging.dll (25.2.0)

API for Drawing Interchange Format (DXF) vector image creation offers tailored solutions for generating AutoCAD drawing files with precision and flexibility. Designed specifically for working with text lines and Bezier curves, developers can efficiently manipulate these elements, count Bezier points, and convert curves into polylines for seamless exporting, ensuring compatibility and fidelity in DXF vector images.

public class DxfOptions : ImageOptionsBase, IDisposable, IHasXmpData, IHasMetadata, ICloneable

Inheritance

objectDisposableObjectImageOptionsBaseDxfOptions

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```csharp [C#]

                                                     //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

### <a id="Aspose_Imaging_ImageOptions_DxfOptions__ctor"></a> DxfOptions\(\)

```csharp
public DxfOptions()

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

byte

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

bool

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; }

Property Value

bool

See Also

ImageOptionsBase