Reduces an image to bitonal (black and white).
Syntax
'Declaration
Public MustOverride Sub ReduceToBitonal( _
ByVal As ImGearOCRReductionMode, _
ByVal As Integer, _
ByVal 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 ,
int ,
int
)
public: abstract void ReduceToBitonal(
ImGearOCRReductionMode ,
int ,
int
)
public:
abstract void ReduceToBitonal(
ImGearOCRReductionMode ,
int ,
int
)
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
.
See Also