public class DxfOptions extends ImageOptionsBase
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.
ImageOptionsBaseThis example demonstrates export to Dxf format
//Create Image instance and initialize it with an existing image file from disk location
try (com.aspose.imaging.Image image = com.aspose.imaging.Image.load("input.svg"))
{
com.aspose.imaging.imageoptions.DxfOptions options = new com.aspose.imaging.imageoptions.DxfOptions();
options.setTextAsLines(true);
options.setConvertTextBeziers(true);
options.setBezierPointCount((byte)20);
image.save("output.dxf", options);
}
| Constructor and Description |
|---|
DxfOptions() |
DxfOptions(DxfOptions imageOptions)
Coping constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getBezierPointCount()
How many points to generate when converting Bezier curves to polylines, minimum 4.
|
boolean |
getConvertTextBeziers()
Works when #textAsLines is set to
true. |
boolean |
getTextAsLines()
Whether text should be exported as contours consisting of polylines (default) or as editable Autocad TEXT entities.
|
void |
setBezierPointCount(byte value)
How many points to generate when converting Bezier curves to polylines, minimum 4.
|
void |
setConvertTextBeziers(boolean value)
Works when #textAsLines is set to
true. |
void |
setTextAsLines(boolean value)
Whether text should be exported as contours consisting of polylines (default) or as editable Autocad TEXT entities.
|
deepClone, getBufferSizeHint, getFullFrame, getMultiPageOptions, getPalette, getProgressEventHandler, getResolutionSettings, getSource, getVectorRasterizationOptions, getXmpData, isKeepMetadata, setBufferSizeHint, setFullFrame, setKeepMetadata, setMultiPageOptions, setPalette, setProgressEventHandler, setResolutionSettings, setSource, setVectorRasterizationOptions, setXmpDataclose, dispose, getDisposedpublic DxfOptions()
public DxfOptions(DxfOptions imageOptions)
Coping constructor
imageOptions - The source options for copingpublic final byte getBezierPointCount()
How many points to generate when converting Bezier curves to polylines, minimum 4. Used when (/) and (/) are both /// set to true
public final void setBezierPointCount(byte value)
How many points to generate when converting Bezier curves to polylines, minimum 4. Used when (/) and (/) are both /// set to true
public final boolean getConvertTextBeziers()
Works when #textAsLines is set to true. Whether to convert Bezier curves in text contours to multipoint polylines.
public final void setConvertTextBeziers(boolean value)
Works when #textAsLines is set to true. Whether to convert Bezier curves in text contours to multipoint polylines.
public final boolean getTextAsLines()
Whether text should be exported as contours consisting of polylines (default) or as editable Autocad TEXT entities. If this option set
public final void setTextAsLines(boolean value)
Whether text should be exported as contours consisting of polylines (default) or as editable Autocad TEXT entities. If this option set
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.