Syntax
Document.RemoveBackgroundColor ( Threshold, FeatherDist )
Parameters
Float Threshold - brightest pixel level to be converted to monochrome, in ADUs
Float FeatherDist - span of pixel levels over which color reduction occurs, in ADUs
Returns
Nothing
Remarks
Converts pixels below the specified threshold to monochrome, and reduces color saturation proportionally for pixels between Threshold and the sum of Threshold and FeatherDist.
An application will typically base the threshold and feather distance parameters on the statistics of the image background, obtained for example using the CalcInformation or CalcAreaInfo methods.
This method is equivalent to the Remove Background Color command.