Compatibility

_SetDrive, Get_Calibration, GetFocusCriterium, Measure, SetDrive, SetProfileProp, SetRelativePath

GetFocusCriterium

Description 

double GetFocusCriterium();

This function calculates the focus criteria of the active document. The higher the criteria is, the more focused (sharper) the images is. It also takes the probe into consideration and calculates the focus criteria on the probe when turned on.

Return Values

double

The calculated focus criteria.

Get_Calibration

Description 

double Get_Calibration(
   char *LpObjectiveName,
   double *lpcal,
   double *LpAspect,
   int *lpunit
);

This function retrieves name, calibration, aspect and unit of the currently selected document.

Parameters

char *LpObjectiveName

Objective name to be filled.

double *lpcal

Size of one pixel in the specified units.

double *LpAspect

Aspect ratio of the image.

int *lpunit

Points to calibration unit. Filled on output.

0

Pixels

1

Nanometers

2

Micrometers

3

Millimeters

4

Centimeters

5

Decimeters

6

Meters

7

Kilometers

8

Mils

9

Inches

Return Values

double

This function returns calibration of the currently opened document (same value as filled in LpCal).

See Also 
Get_Info, Get_ImageCalibration

Measure

Description 

 Measure();

The function starts the last active interactive measurement mode (e.g. length, angle, ...).

SetDrive

Description 

 SetDrive(
   char *Drive
);

This function defines a drive letter that NIS-Elements will substitute for number sign symbol #.

Parameters

char *Drive

Drive letter.

Note

This is useful for a workgroup using the NIS-Elements system. Suppose, a macro loads a file from a local disk (e.g. OpenImage("c:\images\bin01.lim",1) ). If another user in a workgroup wants to run this macro on his workstation, NIS-Elements cannot load the bin01.lim file, because this file is located e.g. on drive f:. To solve this problem, call SetDrive("f") and OpenImage("#:\images\bin01.lim",1).

See Also 
MacroPreferences, SetRelativePath

SetProfileProp

Description 

 SetProfileProp(
   int  prop
);

This function turns on/off profiling of LIM Registered functions. Interpreted functions are always profiled (if, profiling is enabled). LIM Registered functions are profiles only if Prop is non-zero.

Parameters

int prop

Turns profiling of LIM functions on/off. (if profiling is enabled)

0

Turns profiling off

1

Turns profiling on

SetRelativePath

Description 

 SetRelativePath(
   char *RelativePath
);

This function defines a path that the application will substitute for two number sign symbols - ##.

Parameters

char *RelativePath

Relative path.

Note

This is useful for a workgroup using the application system. Suppose, a macro loads a file from a local disk (e.g. ImageOpen("c:\images\bin01.lim",1) ). If another user in a workgroup wants to run this macro on his workstation, the application can not load the bin01.lim file, because this file is located e.g. on drive f:. To solve this problem, call SetRelativePath("f:\images") and ImageOpen("##\bin01.lim",1);).

See Also 
MacroPreferences, SetDrive

_SetDrive

Description 

 _SetDrive();

The function displays the Select Drive dialog box.

See Also 
SetDrive