CMeasureRegions:Add CMeasureRegions:delete

CMeasureRegions:Attach


The Attach method attaches a CImageView object to the CMeasureRegions object. Usually, the CImageView object is specified when the CMeasureRegions object is created. Use this method to switch the target image window without creating a new CMeasureRegions object. Alternatively, you may need to create the CMeasureRegions object by passing a RegionParams table, then attach it to the CImageView at a later itme.

Syntax

bSuccess = CMeasureRegions:Attach( CImageView_obj )

bullet.gif    Where CImageView_obj is a CImageView object connected to an image window.

bullet.gif    On success, true is returned.

Example

Suppose two image windows exist and are connected to the script through two CImageView objects, V1 and V2. The following script directs the CMeasureRegions object to work with a new CImageView object.

P = new_measureregions( V1 )

-- create a new CMeasureRegions object attached to V1

  ...

-- do something with the CMeasureRegions object.

P:Attach( V2 )

-- attach the CMeasureRegions to a different CImageView object

Related Topics

CMeasureRegions class, new_measureregions


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.