CImage:Xsub
The Xsub method subtracts the image pixels from a constant value.
bResult = CImage:Xsub( x ) |
The value x may be passed as a number or a string.
On success, this method returns true
On failure, this method returns false.
The value x can be passed as a numeric value or a string. Using a string is the only way to pass an rgb color value but it may also be used for numeric type images.
The following script loads an image from the file sPath, subtracts from 10000, and saves the result back to the file:
|
-- create a new CImage |
|
-- load the image from a file named sPath |
|
-- perform the operation |
|
|
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.