Click or drag to resize

IMcSpatialCalibsAdd Method

Creates a new IMcSpatialCalib instance and adds it to the IMcSpatialCalibs collection.

Namespace:  MediaCy.IQL.Calibrations
Assembly:  MediaCy.IQL.Calibrations (in MediaCy.IQL.Calibrations.dll) Version: 10.0.6912.0
Syntax
VB
Function Add ( 
	Name As String
) As McSpatialCalib

Parameters

Name
Type: SystemString
The name given to the new calibration's IMcSpatialCalib::Name property. Note that an empty name can be supplied, if the name will be set later.

Return Value

Type: McSpatialCalib
IMcSpatialCalib* the new calibration.
Remarks
An IMcSpatialCalib instance is created with the specified name. Other properties are initialized to default values. The new calibration is also added to the SpatialCalibs collection. "For each" enumerations will only find IMcSpatialCalib instances which are part of the collection, and there is no need to keep an AddRef on the interface instance. IMcSpatialCalibs::Item will return only collection members for numeric (index value) arguments, but it will find any calibration with a matching Name for string arguments, whether the calibration is part of the calibrations collection or not.
Note Note
The new calibration is also added to the SpatialCalibs collection.
See Also