setParamSize
|
|
Param
|
|
A string specifying the name of the measurement parameter whose size is to be set. See selectParam for the list of parameters supported by ImageWarp.
|
|
Size
|
|
An integer specifying the new size of the measurement parameter.
|
|
ERR_OK
|
|
The flag set if successful.
|
|
ERR_FAILED
|
|
The flag set if failed.
|
|
This set of statements converts the "Area" parameter into a vector parameter and fills it with data:
|
|
setParamSize("Area",3)
|
setParamValue ("Area", 100, 0)
|
setParamValue ("Area", 200, 1)
|
setParamValue ("Area", 300, 2)
|
Print "Area(0)=", getParamValue("Area",0)
|
Print "Area(1)=", getParamValue("Area",1)
|
Print "Area(2)=", getParamValue("Area",2)
|
|
|