VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / AcquiredImage Class / DetectBorder Method
Size of border around the image. Possible values: 0 - 100. Default value is 5.




In This Topic
    DetectBorder Method (AcquiredImage)
    In This Topic
    Detects the border around the image.
    Syntax
    'Declaration
     
    Public Sub DetectBorder( _
       ByVal borderSize As Integer _
    ) 
    'Usage
     
    Dim instance As AcquiredImage
    Dim borderSize As Integer
     
    instance.DetectBorder(borderSize)
    public void DetectBorder( 
       int borderSize
    )
    public: void DetectBorder( 
       int borderSize
    ) 
    public:
    void DetectBorder( 
       int borderSize
    ) 

    Parameters

    borderSize
    Size of border around the image. Possible values: 0 - 100. Default value is 5.
    Remarks
    Here is a "good" sequence of operations for image processing:
    1. Despeckle an image (Despeckle method)
    2. Deskew an image (Deskew method)
    3. Detect image border (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.
    Example
    Please see example here.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also