Click or drag to resize

IMcLinesSignature Property

A signature of one or all features.

Namespace:  MediaCy.IQL.Features
Assembly:  MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
Syntax
VB
ReadOnly Property Signature ( 
	Optional FeatureIndex As Integer = -1
) As Integer
	Get

Parameters

FeatureIndex (Optional)
Type: SystemInt32
The index of the feature for which the signature is desired, or -1 for a signature of all features combined.

Property Value

Type: Int32

Implements

IMcFeaturesSignatureInt32
Remarks
Property changed notifications are sent when any feature changes, but there are some cases where it must be determined if a particular feature is still the same as it was before the property change. The Signature can be used to detect quickly if a feature has changed from some earlier state. The computed Signature value depends only on the coordinates of the feature(s); it does not depend on the OptionFlags or on the FeatureStatusFlags.
Examples
VB
'Example 1. Check to see if the AOI is the same as it was at some previous time
Dim lAoiSignature As Long
lAoiSignature = ThisApplication.ActiveImage.Aoi.Signature
Debug.Print "The AOI signature is: " & lAoiSignature
'...
'some time later
if lAoiSignature = ThisApplication.ActiveImage.Aoi.Signature Then
Debug.Print "The AOI is the same as it was."
Else
Debug.Print "The AOI region(s) and/or coordinates have changed."
End If
'Example 2. Check for movement of a single feature
With ThisApplication.ActiveImage.PointFeatures
'Create two points
.SetFeaturePoints -1, Array(10, 10, 20, 20)
Debug.Print "The signatures are: " & .Signature(0), .Signature(1)
'Move the first point only
.SetFeaturePoints 0, Array(15, 15)
Debug.Print "After 1st point moved: " & .Signature(0), .Signature(1)
End With
See Also