Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

c87709c7 0a8f 19e5 1e3c af5adba929ba

haplokuon edited this page May 6, 2023 · 1 revision

ImageDefinition(String, String, Int32, Double, Int32, Double, ImageResolutionUnits) Constructor

netDxf 3.0.0 Library

Initializes a new instance of the ImageDefinition class.

Definition

Namespace: netDxf.Objects
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public ImageDefinition(
	string name,
	string file,
	int width,
	double horizontalResolution,
	int height,
	double verticalResolution,
	ImageResolutionUnits units
)

VB

Public Sub New ( 
	name As String,
	file As String,
	width As Integer,
	horizontalResolution As Double,
	height As Integer,
	verticalResolution As Double,
	units As ImageResolutionUnits
)

C++

public:
ImageDefinition(
	String^ name, 
	String^ file, 
	int width, 
	double horizontalResolution, 
	int height, 
	double verticalResolution, 
	ImageResolutionUnits units
)

F#

new : 
        name : string * 
        file : string * 
        width : int * 
        horizontalResolution : float * 
        height : int * 
        verticalResolution : float * 
        units : ImageResolutionUnits -> ImageDefinition

Parameters

  String
Image definition name.
  String
Image file name with full or relative path.
  Int32
Image width in pixels.
  Double
Image horizontal resolution in pixels.
  Int32
Image height in pixels.
  Double
Image vertical resolution in pixels.
  ImageResolutionUnits
Image resolution units.

Remarks

The name assigned to the image definition must be unique.

This is a generic constructor for all image formats supported by AutoCAD, note that not all AutoCAD versions support the same image formats.

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

Reference

ImageDefinition Class
ImageDefinition Overload
netDxf.Objects Namespace

Clone this wiki locally