Back to Adaptive Vision Library website

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

LoadImage_FromDxf


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,
	const atl::Optional<atl::Array<atl::String> >& inLayersToDraw,
	avl::Point2D& outOrigin,
	avl::Image& outImage,
	atl::Array<atl::String>& diagFileLayersNames
)

Parameters

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