new_labels
The new_labels function is a non-class version of the CLabels:new method which creates and returns a new CLabels object.
C = new_labels() Creates a default CLabels object with properties initialized to default values. You must separately this to a CImageView object using Attach. C = new_labels( 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 for the CImageView V |
|
-- target coordinate |
|
-- label coordinate |
|
-- draw the label on the image |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.