Accusoft.ScanFixXpressSdk Namespace > ScanFix Class : Binarize Method |
'Declaration <DebuggerNonUserCodeAttribute()> <DebuggerStepThroughAttribute()> Public Sub Binarize( _ ByVal options As BinarizeOptions _ )
'Usage Dim instance As ScanFix Dim options As BinarizeOptions instance.Binarize(options)
[DebuggerNonUserCode()] [DebuggerStepThrough()] public void Binarize( BinarizeOptions options )
[DebuggerNonUserCode()] [DebuggerStepThrough()] public: void Binarize( BinarizeOptions* options )
[DebuggerNonUserCode()] [DebuggerStepThrough()] public: void Binarize( BinarizeOptions^ options )
Exception | Description |
---|---|
System.ArgumentNullException | Thrown when required argument value is null. |
System.ArgumentOutOfRangeException | Thrown when argument is out of range. |
System.ComponentModel.InvalidEnumArgumentException | Thrown when argument enum value is invalid. |
ScanFixUnsupportedImageException | Thrown when image type is unsupported. |
ScanFixException | Thrown when operation failed. |
To replicate ScanFix Xpress v5 AutoBinarize for bitonal images use the following settings:
LowThreshold = 0
HighThreshold = 0
LceFactor = 0
PreBlurType = SmartBlur
To replicate ScanFix Xpress v5 AutoBinarize for gray or color images use the following settings:
LowThreshold = 170
HighThreshold = 190
LceFactor = 0
PreBlurType = NoBlur