This function operates on 1-bit, 8-bit and 24-bit input DIB’s creating an enhanced 1-bit output DIB of the same dimensions, using the settings provided by the caller.
Visual Basic |
---|
Public Sub Binarize( _ ByVal options As BinarizeOptions _ ) |
- options
- An object containing parameters controlling the process.
If you want to replicate ScanFix Xpress v5 AutoBinarize for bitonal images, use the following settings:
lowThreshold = 0
highThreshold = 0
lpreceFactor = 0
preBlurType = SmartBlur
If you want to replicate ScanFix Xpress v5 AutoBinarize for gray or color images, use the following settings:
lowThreshold = 170
highThreshold = 190
lceFactor = 0
preBlurType = NoBlur