Click or drag to resize

ImageDefinition Constructor (String, String)

Initializes a new instance of the ImageDefinition class.

Namespace:  DXFReaderNET.Objects
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public ImageDefinition(
	string fileName,
	string name
)

Parameters

fileName
Type: SystemString
Image file name with full or relative path.
name
Type: SystemString
Image definition name.
Remarks

The name assigned to the image definition must be unique.

Supported image formats: BMP, JPG, PNG, TIFF.
Even thought AutoCAD supports more image formats, this constructor is restricted to the ones the .net library supports in common with AutoCAD. Use the generic constructor instead.

Note (this is from the ACAD docs): AutoCAD 2000, AutoCAD LT 2000, and later releases do not support LZW-compressed TIFF files, with the exception of English language versions sold in the US and Canada.
If you have TIFF files that were created using LZW compression and want to insert them into a drawing you must save the TIFF files with LZW compression disabled.

See Also