VintaSoft Twain .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Sane Namespace / SaneAcquiredImage Class / DetectBorder(Int32) Method
Syntax Remarks Example Requirements SeeAlso
In This Topic
    DetectBorder(Int32) Method (SaneAcquiredImage)
    In This Topic
    Detects the border around the image.
    Syntax
    'Declaration
    
    Public Sub DetectBorder( _
    ByVal borderSize
    Size of border around the image. Possible values: 0 - 100. Default value is 5.
    As Integer _
    )
    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(Int32,Int32,Int32,Int32) method)
    2. Deskew an image (Deskew(SaneBorderColor,Int32,Int32) method)
    3. Detect image border (DetectBorder(Int32) 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: SaneAcquiredImage.

    Requirements

    Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6

    See Also