Back to Aurora Vision Library website

You are here: Start » Function Reference » System » Interoperability » LoadImage_FromDxf

LoadImage_FromDxf


Header: AVL.h
Namespace: avl
Module: FoundationPro

Loads data from a DXF file as an image.

Syntax

C++
C#
 
void avl::LoadImage_FromDxf
(
	const atl::File& inDxfFile,
	const float inScale,
	const atl::Optional<avl::Size> inSize,
	const avl::Pixel& inBackgroundColor,
	atl::Optional<const atl::Array<atl::String> &> inLayersToDraw,
	avl::Point2D& outOrigin,
	avl::Image& outImage,
	atl::Array<atl::String>& diagFileLayersNames
)

Parameters

Name Type Range Default Description
Input value inDxfFile const File&
Input value inScale const float 0.0 - 10.0f Scale (pixels per millimeter)
Input value inSize const Optional<Size> NIL Size of the output image. Scaled entities from file will be centered on image
Input value inBackgroundColor const Pixel&
Input value inLayersToDraw Optional<const Array<String> &> NIL Names of layers to draw. Names of all layers are available at the 'diagFileLayersNames' output
Output value outOrigin Point2D& Location of the origin from DXF on 'outImage'
Output value outImage Image& Output image
Diagnostic input diagFileLayersNames Array<String>& Names of all layers in DXF file

Remarks

Partial Support

This filter offers only a partial support of DXF files. Notably, Polyline and MText objects will have to be converted to 2D Polyline, Line or Text objects for them to be displayed. Also, SHX files are not supported.