The Enhancements object in ScanFix® Xpress can be used to setup, execute, save, and load a series of ScanFix Xpress cleanup operations. This mechanism can be used to develop applications that perform a fixed series of operations on one or more images. The Enhancements sample application demonstrates using the Enhancements object API.
The Enhancements object holds an ordered list of “option” objects. Each option contains the operation and properties for a single ScanFix Xpress cleanup operation. Options will be performed in the order they are stored in the options list.
With most operations, the option object is the same object that holds properties for a single operation. For example, a DeskewOptions object is used for Deskew cleanup operation properties.
For methods that do not have an options object there are special objects for use with the Enhancements options list. For example, to add a Flip operation you would create a FlipOptions object (which has no properties) and add it to the Enhancements list.
In Summary:
The operations in an Enhancements options list can be applied to the image held by a ScanFix Xpress object calling the ExecuteEnhancements method. This will execute, in sequence, each option in the list.
The results from each cleanup operation will be a single results object. After successful execution, the Enhancements object will contain a list of results objects, where each results object contains results for the corresponding options list object.
If there is an error or exception during execution of any operation, then the results list will be incomplete or empty. In this case, the results list will contain results objects for each operation before the failing operation. The ScanFixException object will contain Number and Message properties for the operation that failed.
In Summary: