Click or drag to resize

ImageConvert2BW Method

This method converts the page to black-and-white (bitonal, one-bit color depth) from grayscale or color.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void Convert2BW(
	IMG_CONVERSION Conversion,
	[OptionalAttribute] int Brightness,
	[OptionalAttribute] int Threshold,
	[OptionalAttribute] IMG_RESENH ResolEnh
)

Parameters

Conversion
Type: Kofax.OmniPageCSDK.IproPlusIMG_CONVERSION
Brightness (Optional)
Type: SystemInt32
Threshold (Optional)
Type: SystemInt32
ResolEnh (Optional)
Type: Kofax.OmniPageCSDK.IproPlusIMG_RESENH
Remarks

If this method is called for a B/W page, no conversion is performed. For more details see the description of the Convert2BW method of the ImageFile object."

Note that calling this method destroys any existing recognition results. The OCRZones and Characters collections are cleared. The CharNum, WordNum, RejectedCharNum, RecognitionTime and FullRecognitionTime properties of the Statistics object are set to zero, the Recognized property of the Page object is set to False. This method processes all the stored image variants.

Calling this method sets the Modified property of the related Document to True.

See Also