ImageGear .NET v25.1 - Updated
ReduceToBitonal Method




ImageGear.OCR Assembly > ImageGear.OCR Namespace > ImGearOCRImage Class : ReduceToBitonal Method
Image conversion mode to be applied during the conversion of the image. Possible values are: AUTO, SET, GLOBAL.
Brightness of the image (range is 0 to 100, where 0 means the darkest and 100 means the lightest resulting image). This parameter has an effect only if the conversion parameter is set to AUTO.
Threshold value to be set. Its range should be between 0 and 255. This parameter has an effect only if the Conversion parameter is set to SET.
Reduces an image to bitonal (black and white).
Syntax
'Declaration
 
Public MustOverride Sub ReduceToBitonal( _
   ByVal reductionMode As ImGearOCRReductionMode, _
   ByVal brightness As Integer, _
   ByVal threshold As Integer _
) 
'Usage
 
Dim instance As ImGearOCRImage
Dim reductionMode As ImGearOCRReductionMode
Dim brightness As Integer
Dim threshold As Integer
 
instance.ReduceToBitonal(reductionMode, brightness, threshold)
public abstract void ReduceToBitonal( 
   ImGearOCRReductionMode reductionMode,
   int brightness,
   int threshold
)
public: abstract void ReduceToBitonal( 
   ImGearOCRReductionMode reductionMode,
   int brightness,
   int threshold
) 
public:
abstract void ReduceToBitonal( 
   ImGearOCRReductionMode reductionMode,
   int brightness,
   int threshold
) 

Parameters

reductionMode
Image conversion mode to be applied during the conversion of the image. Possible values are: AUTO, SET, GLOBAL.
brightness
Brightness of the image (range is 0 to 100, where 0 means the darkest and 100 means the lightest resulting image). This parameter has an effect only if the conversion parameter is set to AUTO.
threshold
Threshold value to be set. Its range should be between 0 and 255. This parameter has an effect only if the Conversion parameter is set to SET.
Remarks
This method performs a direct image conversion step, converting a color or grayscale image to a black-and-white (bitonal) one.
See Also

Reference

ImGearOCRImage Class
ImGearOCRImage Members
ImGearOCRReductionMode Enumeration
ImGearOCRResEnhancementMode Enumeration