Crops the borders of 1-bit per pixel documents.
Visual Basic |
---|
Public Sub DocumentBorderCrop() |
This border crop method is the process of detecting and removing vertical and horizontal lines from the outside rim of an document. The method examines the current document to find dark exterior lines along the outside edge, modifying it to remove them. If the area defined by the crop parameters does not fall within the boundaries of the document, the document is not cropped and an error generates.
Outputs
- The component's current image should have border lines removed if no errors occurred. If borders were not removed for any reason, the image is not modified.
- IPImageWasModified is set to True if image was modified, and to False if image was not modified.
Using the DocumentBorderCrop
1. Load a 1 bit image from a file or stream input.
2. Call the method.
3. IPConfidence and IPImageWasModfied properties verify borders removed from document.
Note: Available in Professional Edition.