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: ImageOptionsBase

Aspose.Imaging Version: 24.5.0

Constructors

NameDescription
DxfOptions()Initializes a new instance of the DxfOptions class

Properties

NameTypeAccessDescription
bezier_point_countbyter/wHow 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 true
buffer_size_hintintr/wGets or sets the buffer size hint which is defined max allowed size for all internal buffers.
convert_text_beziersboolr/wWorks when DxfOptions.text_as_lines is set to true. Wether to convert Bezier curves in text contours to multipoint polylines.
disposedboolrGets a value indicating whether this instance is disposed.
full_frameboolr/wGets or sets a value indicating whether [full frame].
multi_page_optionsMultiPageOptionsr/wThe multipage options
paletteIColorPaletter/wGets or sets the color palette.
resolution_settingsResolutionSettingr/wGets or sets the resolution settings.
sourceSourcer/wGets or sets the source to create image in.
text_as_linesboolr/wWhether text should be exported as contours consisting of polylines (default) or as editable Autocad TEXT entities.
If this option set
vector_rasterization_optionsVectorRasterizationOptionsr/wGets or sets the vector rasterization options.
xmp_dataXmpPacketWrapperr/wGets or sets the XMP metadata container.

Methods

NameDescription
clone()Clones this instance.

Constructor: DxfOptions()

 DxfOptions() 

Initializes a new instance of the DxfOptions class

Method: clone()

 clone() 

Clones this instance.

Returns

TypeDescription
ImageOptionsBaseReturns shallow copy 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)