Accusoft.ScanFixXpressSdk Namespace > ScanFix Class > RemoveBorder Method : RemoveBorder() Method |
'Declaration <DebuggerNonUserCodeAttribute()> <DebuggerStepThroughAttribute()> Public Overloads Function RemoveBorder() As BorderRemovalResults
'Usage Dim instance As ScanFix Dim value As BorderRemovalResults value = instance.RemoveBorder()
[DebuggerNonUserCode()] [DebuggerStepThrough()] public BorderRemovalResults RemoveBorder()
[DebuggerNonUserCode()] [DebuggerStepThrough()] public: BorderRemovalResults* RemoveBorder();
[DebuggerNonUserCode()] [DebuggerStepThrough()] public: BorderRemovalResults^ RemoveBorder();
Exception | Description |
---|---|
ScanFixUnsupportedImageException | Thrown when image type is unsupported. |
ScanFixException | Thrown when operation failed. |
Optionally, it can also deskew the image based on the angle of the detected border.
Note: Use this function if the default control parameters are adequate.
When to use border removal and what results to expect:
Border removal attempts to find "border-like" characteristics of an image. On images that it finds no suitable borders, or multiple suitable borders, a low confidence will likely to be returned. Border removal in most cases tolerates white specks in the border and black specks in the page unless the specks account for a susbstantial portion, say more than 25%, of all the pixels in a large area. Thick black or white streaks on images may cause reduced accuracy for border removal, as they resemble nice, straight edges. Irregular borders, such as the ones with white areas in the border, may cause some portions of the border to be left on the image.