DxfOptions Class
Summary: 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.
Module: aspose.imaging.imageoptions
Full Name: aspose.imaging.imageoptions.DxfOptions
Inheritance: IHasXmpData, IHasMetadata, ImageOptionsBase
Constructors
Name | Description |
---|---|
DxfOptions() | Initializes a new instance of the DxfOptions class |
Properties
Name | Type | Access | Description |
---|---|---|---|
bezier_point_count | byte | r/w | How many points to generate when converting Bezier curves to polylines, minimum 4. Used when DxfOptions.text_as_lines and DxfOptions.convert_text_beziers are both /// set to |
buffer_size_hint | int | r/w | Gets or sets the buffer size hint which is defined max allowed size for all internal buffers. |
convert_text_beziers | bool | r/w | Works when DxfOptions.text_as_lines is set to |
disposed | bool | r | Gets a value indicating whether this instance is disposed. |
full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. |
keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. |
multi_page_options | MultiPageOptions | r/w | The multipage options |
palette | IColorPalette | r/w | Gets or sets the color palette. |
resolution_settings | ResolutionSetting | r/w | Gets or sets the resolution settings. |
source | Source | r/w | Gets or sets the source to create image in. |
text_as_lines | bool | r/w | Whether text should be exported as contours consisting of polylines (default) or as editable Autocad TEXT entities. If this option set |
vector_rasterization_options | VectorRasterizationOptions | r/w | Gets or sets the vector rasterization options. |
xmp_data | XmpPacketWrapper | r/w | Gets or sets the XMP metadata container. |
Methods
Name | Description |
---|---|
clone() | Creates a memberwise clone of this instance. |
Constructor: DxfOptions()
DxfOptions()
Initializes a new instance of the DxfOptions class
Method: clone()
clone()
Creates a memberwise clone of this instance.
Returns
Type | Description |
---|---|
ImageOptionsBase | A memberwise clone of this instance. |
Examples
This example demonstrates export to Dxf format
from aspose.imaging import Image
from aspose.imaging.imageoptions import DxfOptions
#Create Image instance and initialize it with an existing image file from disk location
with Image.load("input.svg") as image:
options = DxfOptions()
options.text_as_lines = True
options.convert_text_beziers = True
options.bezier_point_count = 20
image.save("output.dxf", options)