sub
The sub function subtracts a value from a CImage object or 1-dimensional array.
result = sub( object, value )
where object is a 1-dimensional array, CImage object, or simple number.
value is a number.
result is returned as an array, CImage object, or number, depending on the type of value.
The following script subtracts 3200.5 from all members of a table.
|
-- subtract the number from all members of the table |
The next script subtracts 3200.5 from all pixels of a CImage.
|
-- attach the topmost image window |
|
-- make sure an image window is on top |
|
-- subtract the number from the CImage |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.