IN_GetFormatInputScaleToFit

image\bltlrgsq_shg.gif Editions  image\bltlrgsq_shg.gif Related Functions  image\bltlrgsq_shg.gif Example

The IN_GetFormatInputScaleToFit returns how files of the specified format are scaled when loaded into memory and whether Scale To Fit is on or off.

Syntax

int IN_GetFormatInputScaleToFit( formatID, width, length, unit, inActive )

Input Parameters

Values

Meaning

SHORT formatID

API_FF_DXF (529)

API_FF_DGN (508)

API_FF_MI (507)

API_FF_CADRA (526)

API_FF_AUTOTROL_DX (67)

API_FF_CGM (516)

API_FF_IGS (518)

Autodesk format

Intergraph MS Version format

MI ME10Format (read-only)

ADRA CADRA (read-only)

DX Auto-trol Raster

CGM Computer Graphics Metafile Clear Text

IGS IGES (read-only)

Output Parameters

Meaning

DOUBLEPTR width

0 | 1 | 2 | ...

pointer to the width of the image in the specified units. See Remarks.

DOUBLEPTR length

0 | 1 | 2 | ...

pointer to the length of the image in the specified units. See Remarks.

USHORTPTR unit

units used:

IN_UNITS_INCH (1)

IN_UNITS_CM (2)

IN_UNITS_FT (4)

IN_UNITS_MM (5)

pointer to the units specified

IN_BOOLPTR inActive

0 | 1

pointer to whether Scale Factor is disabled or enabled

Remarks

For the following formats, width, length, and unit will always get 44, 34, and 1 respectively:

API_FF_MI

(507)

MI ME10Format (read-only)

API_FF_CADRA

(526)

ADRA CADRA (read-only)

API_FF_AUTOTROL_DX

(67)

DX Auto-trol Raster

API_FF_CGM

(516)

CGM Computer Graphics Metafile Clear Text

API_FF_IGS

(518)

IGS IGES (read-only)

Release information

Added to Imagenation for Windows in Release 6.2.

Not supported in Imagenation for UNIX.

See also

Scaling CAD documents