Allows you to change the value of individual pixels based on the threshold value.
Example
Running this code will set 2 variables named “inPut” and “outPath” with the images named “Color Print Test Image 28.jpg” and “Image Color Filter.jpg”, respectively.
Then, “inPut” will be set as input image path while the “outPath” will be set as output image path.
Changing of the threshold value will be applied to the input image "TEST.png", saving it as "image threshold.jpg".
set(#inPut,"{$special folder("Application")}\\TEST.png","Global")
set(#outPut,"{$special folder("Application")}\\image threshold.jpg","Global")
plugin command("Image Automation.dll", "image threshold", #inPut, #outPut, "Auto")