CLabels Class Description


The CLabels class draws labels consisting of a marker and text on a displayed image. This class works with the CImageView class and opens an Image Labeling toolbar in the image window. See the Mira User's Guide for more information under the main topic Displaying Images > Adding Labels to Images.

Usage

Construction

Object = new_labels()

Object = CLabels:new()

Destruction

Object:delete()

Creation - Non-class Functions

This function is normally used to create a new CLabels object as an alternative to the class-based new method.

new_labels

Creates a new instance of the CLabels class.

Construction and Destruction - Class Methods

new

Creates a new instance of the CLabels class.

delete

Deletes the instance of the CLabels object.

Operations

Add

Adds a label marker to the collection and draws it on the image.

Attach

Attaches a CImageView object to the CLabels object. Use this if the CLabels was created without passing a CImageView object to the constructor.

SetParams

Sets label properties using values in a LabelParams table.

Related Topics

Contents, Script Classes, CImageView, CImage class


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