Click or drag to resize

IMcSpatialCalibConvertToUnit Method

Convert the calibration from one unit to another.

Namespace:  MediaCy.IQL.Calibrations
Assembly:  MediaCy.IQL.Calibrations (in MediaCy.IQL.Calibrations.dll) Version: 10.0.6912.0
Syntax
VB
Sub ConvertToUnit ( 
	newUnit As mcSpatialUnit
)

Parameters

newUnit
Type: MediaCy.IQL.CalibrationsmcSpatialUnit
Remarks
This is related to the Unit property. Changing the Unit property changes the interpretation of the PixelSizeX and PixelSizeY properties, for instance a value of .1 now being considered .1 miles instead of .1 microns. Using this ConvertToUnit method, the previous calibration of .1 microns would be converted to the equivalent calibration in the new unit, so a calibration of 10 um per pixel converted to millimeters would be .01 mm per pixel. 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