Click or drag to resize

IMcSpatialCalibConvertValueToUnit Method

Convert a distance in this calibration's units to another unit.

Namespace:  MediaCy.IQL.Calibrations
Assembly:  MediaCy.IQL.Calibrations (in MediaCy.IQL.Calibrations.dll) Version: 10.0.6912.0
Syntax
VB
Function ConvertValueToUnit ( 
	dfValue As Double,
	newUnit As mcSpatialUnit
) As Double

Parameters

dfValue
Type: SystemDouble
The distance to convert to the specified units.
newUnit
Type: MediaCy.IQL.CalibrationsmcSpatialUnit

Return Value

Type: Double
Remarks
This method can be used to convert a distance measured in this calibration's units to its equivalent in any of the other physical units supported. This conversion cannot take place if the calibration is not currently based on an absolute physical unit from the list given in the Unit property documentation, or is based on the mcsuPixel or mcsuCustom units.
See Also