ImageDefinition Constructor (String, String, Int32, Double, Int32, Double, ImageResolutionUnits)
|
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,
int width,
double horizontalResolution,
int height,
double verticalResolution,
ImageResolutionUnits units
)
Public Sub New (
fileName As String,
name As String,
width As Integer,
horizontalResolution As Double,
height As Integer,
verticalResolution As Double,
units As ImageResolutionUnits
)
public:
ImageDefinition(
String^ fileName,
String^ name,
int width,
double horizontalResolution,
int height,
double verticalResolution,
ImageResolutionUnits units
)
new :
fileName : string *
name : string *
width : int *
horizontalResolution : float *
height : int *
verticalResolution : float *
units : ImageResolutionUnits -> ImageDefinition
CONSTRUCTOR(
fileName AS STRING,
name AS STRING,
width AS LONG,
horizontalResolution AS REAL8,
height AS LONG,
verticalResolution AS REAL8,
units AS ImageResolutionUnits
)
Parameters
- fileName
- Type: SystemString
Image file name with full or relative path. - name
- Type: SystemString
Image definition name. - width
- Type: SystemInt32
Image width in pixels. - horizontalResolution
- Type: SystemDouble
Image horizontal resolution in pixels. - height
- Type: SystemInt32
Image height in pixels. - verticalResolution
- Type: SystemDouble
Image vertical resolution in pixels. - units
- Type: DXFReaderNETImageResolutionUnits
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