CMeasurePoints:SetParams
The SetParams method changes the properties for points drawn on an image. Point properties are initialized to reasonable values by the class. The purpose of this method is to change the properties by setting values in the PointParams table. See the Mira User's Guide for more information under the main topic Measuring Images.
bSuccess = CMeasurePoints:SetParams( PointParams_table) |
where PointParams_table is a table of type PointParams containing properties to change.
On success, true is returned.
Suppose an image window exists on the Mira screen and you wish to draw a point marker on the image. The script below changes the drawing color and line thickness from default values. Note that your table does not need to be named Params.
|
-- attach an image window |
|
-- leave script if no image window |
|
|
|
-- get the top-most or only image |
|
-- leave script if no image |
|
|
|
-- create a CMeasurePoints object |
|
-- setup a PointParams table |
|
-- use a comma after each "name=value" pair |
|
-- enable new marker color |
|
|
|
-- enable new line thickness |
|
|
|
|
|
-- set the new properties |
|
|
|
-- Add the measurement to the image |
CMeasurePoints class, Add, PointParams table
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.