Class DxfOptions
Contents
[
Hide
]DxfOptions class
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
Constructors
Name | Description |
---|---|
DxfOptions() | The default constructor. |
Properties
Name | Description |
---|---|
BezierPointCount { get; set; } | How many points to generate when converting Bezier curves to polylines, minimum 4. Used when and are both /// set to true |
BufferSizeHint { get; set; } | Gets or sets the buffer size hint which is defined max allowed size for all internal buffers. |
ConvertTextBeziers { get; set; } | Works when is set to true . Wether to convert Bezier curves in text contours to multipoint polylines. |
Disposed { get; } | Gets a value indicating whether this instance is disposed. |
FullFrame { get; set; } | Gets or sets a value indicating whether [full frame]. |
KeepMetadata { get; set; } | Gets a value whether to keep original image metadata on export. |
MultiPageOptions { get; set; } | The multipage options |
virtual Palette { get; set; } | Gets or sets the color palette. |
ProgressEventHandler { get; set; } | Gets or sets the progress event handler. |
virtual ResolutionSettings { get; set; } | Gets or sets the resolution settings. |
Source { get; set; } | Gets or sets the source to create image in. |
TextAsLines { get; set; } | Whether text should be exported as contours consisting of polylines (default) or as editable Autocad TEXT entities. If this option set |
VectorRasterizationOptions { get; set; } | Gets or sets the vector rasterization options. |
virtual XmpData { get; set; } | Gets or sets the XMP metadata container. |
Methods
Name | Description |
---|---|
virtual Clone() | Creates a memberwise clone of this instance. |
Dispose() | Disposes the current instance. |
Examples
This example demonstrates export to Dxf format
[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);
}
See Also
- class ImageOptionsBase
- namespace Aspose.Imaging.ImageOptions
- assembly Aspose.Imaging