CLabels:new
The new method creates an instance of the CLabels class. You must call new before using any class methods or properties. Note that this object can also be created using the new_labels function.
C = CLabels:new() Creates a default CLabels object with properties initialized to default values. You must separately this to a CImageView object. C = CLabels:new( CImageView_obj ) Creates a CLabels object attached to the CImageView object CImageView_obj. |
If you use any constructor that does not use a CImageView object as an argument, then you must specify one using Attach method before labels can be drawn on an image.
The following script attaches to an existing CImageView and adds a label to one of its images:
|
-- create a new CLabels object for CImageView V |
|
-- target coordinate |
|
-- label coordinate |
|
-- draw the label on the image |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.