Click or drag to resize

IMcSpatialCalibsAddEx 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 AddEx ( 
	Name As String,
	Flags As mccfCalibFlags
) As McSpatialCalib

Parameters

Name
Type: SystemString
The name given to the IMcSpatialCalib::Name property. If an empty name is supplied, the Name is "calibration#". See IMcSpatialCalib::Name for more details.
Flags
Type: MediaCy.IQL.CalibrationsmccfCalibFlags
The calibration flags applied to the new calibration.

Return Value

Type: McSpatialCalib
IMcSpatialCalib* the new calibration.
Remarks
An IMcSpatialCalib instance is created with the specified name and flags. 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