Click or drag to resize

EngineOperatorsAoiList Method

A collection of named AOI McRegions objects

Namespace:  MediaCy.IQL.Operators
Assembly:  MediaCy.IQL.Operators (in MediaCy.IQL.Operators.dll) Version: 3.1.0.0
Syntax
VB
<ExtensionAttribute>
Public Shared Function AoiList ( 
	engine As McEngine
) As McFeaturesList

Parameters

engine
Type: MediaCy.IQL.EngineMcEngine

Return Value

Type: McFeaturesList

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type McEngine. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The McImage.Aoi is a read-only property, so to change it you cannot just assign a new McRegions object. Instead you need to use the CopyFrom method to import an AOI from the list. This is illustrated in the example.
Examples
VB
' Set the ThisApplication.ActiveImage AOI to one named "BigRect" from the list
ThisApplication.ActiveImage.Aoi.CopyFrom AoiList("BigRect")
See Also