Click or drag to resize

McMMSubFeatureValue Property (MeasEntry)

Returns measurement value of sub-feature.

Namespace:  MediaCy.Addins.Measurements
Assembly:  MediaCy.Addins.Measurements (in MediaCy.Addins.Measurements.dll) Version: 3.1.0.0
Syntax
VB
Public ReadOnly Property Value ( 
	MeasName As MeasEntry
) As Object
	Get

Parameters

MeasName
Type: MediaCy.Addins.MeasurementsMeasEntry

Return Value

Type: Object
Measurement value as string.
Remarks
It is also possible to get value using McFeatures and McMeasures (see example).
Examples
VB
 'add circle
ThisApplication.ActiveImage.MeasurementsData.Add mmtsCircle, New Single(){110, 110, 100, 100}
 'print the circle area
Debug.Print "Area of the circle (1)= " + ThisApplication.ActiveImage.MeasurementsData.SubFeature(Measurements.Data.Rows - 1).Value(eMeasures.mRgnArea)
 'another way of extracting area value using McMeasures
Dim pMeasures As McMeasures
 'get McMeasures pointer of the circle
pMeasures = ThisApplication.ActiveImage.MeasurementsData.SubFeature(Measurements.Data.Rows - 1).GetFeatures.Measures
Debug.Print "Area of the circle (2)= " + pMeasures.Item("mRgnArea").Value(0)
See Also