VintaSoftTwain Control v6.0
VintaSoftTwain Object / AcquiredImages_DetectBorder Method
Zero-based index of image in acquired image collection. Valid values are from 0 to (AcquiredImages_Count-1).
Size of border around the image. Possible values: 0 - 100. Default value is 5.
In This Topic
    AcquiredImages_DetectBorder Method
    In This Topic
    Description
    Detects and removes border around the image.
    Syntax
    Visual Basic
    Public Function AcquiredImages_DetectBorder( _
       ByVal index As Long, _
       ByVal borderSize As Integer _
    ) As Boolean
    Parameters
    index
    Zero-based index of image in acquired image collection. Valid values are from 0 to (AcquiredImages_Count-1).
    borderSize
    Size of border around the image. Possible values: 0 - 100. Default value is 5.
    Return Type
    TRUE (1) if image is processed successfully, FALSE (0) otherwise.
    Remarks
    Here is a "good" sequence of operations for image processing:
    1. Despeckle an image (AcquiredImages_Despeckle method)
    2. Deskew an image (AcquiredImages_Deskew method)
    3. Detect image border (AcquiredImages_DetectBorder method)

    Possible values for scanIntervalX and scanIntervalY parameters: 1 - every column (row) will be scanned, 2 - every second column (row) will be scanned, 3 - every third column (row) will be scanned, and so on. Big values of these parameters may speed up deskewing process, but may worsen results.

    Information about error that occurs during method execution can be get using the Error and ErrorString properties.
    Example
    Please see example here.
    See Also