What it does
Represents a picture that can be edited in ABBYY FlexiCapture. The object is an extension of the IPictureObject interface.This object is not available on the Web Verification Station for checking rules locally.
Methods
The
rect parameter passed to the CutOut and Crop methods is a string in the form "[left, top, right, bottom]". To get this string, call the ToString method of any IRect object, or use the Rect method of IFlexiCaptureTools (FCTools).Remove color stamps from an image
TheRemoveStamps method deletes color stamps and other marks of a specified color from an image. This method works only for color images.
The following sample script for an On User Command event removes red stamps from all pages. The entire page area is searched for stamps.
Remove additional stamp colors
TheRemoveStampsExt method deletes color stamps and other marks of a specified color from an image. It is similar to RemoveStamps, but it uses an improved algorithm that removes more colors. This is the recommended method for removing stamps.
The colorsToFilter parameter (string) sets the color of stamps to remove:
- Accepts the following string values:
Red,Green,Blue,Yellow,Orange,LightBlue, andPurple(not case-sensitive). - You can specify multiple values separated by commas, for example
"Red, Green". - You can specify an empty string (
"") to let the program select the appropriate stamp color automatically. The program deletes any stamps it detects on an image that have one of the allowed color values.
Custom processing stage examples
These scripts show how to useIEditablePictureObject methods in custom processing stages.
Apply a local contrast filter
This script creates an object with parameters for the local contrast filter, sets the parameters manually, and applies the filter to an image.Binarize an image with custom parameters
This script creates an object with parameters for theBinarize method and converts the image to black-and-white with the set parameters.
