SetImageCalibration Method

NI Vision for Visual Basic

SetImageCalibration Method

Syntax

CWIMAQVision.SetImageCalibration DestImage, XAxisRatio, YAxisRatio, Unit

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Obsolete—Use SetSimpleCalibration instead. Sets the physical calibration attributes of an image.

Remarks

Use this method with all image types.

Parameters

DestImage As CWIMAQImage

The image whose calibration information the method sets.

XAxisRatio As Single

The distance in the x direction between two adjacent pixels in units specified by Unit.

YAxisRatio As Single

The distance in the y direction between to adjacent pixels in units specified by Unit.

Unit As CWIMAQCalibrationUnits

The unit of measure that the method uses to calibrate the image.

See Also

SetSimpleCalibration