Skip to main content
This method converts an image to black and white.

Syntax

Parameters

Image [in] This variable refers to the Image object which is to be binarized. Mode [in] Specifies the mode of binarization. See the description of the BinarizationModeEnum constants. IsPhoto [in] Specifies whether the image is a photo. The value of this parameter can be TRUE, only if the value of the mode parameter is BM_Default or BM_Version9. SmoothTexture [in] Specifies whether a texture should be smoothed during binarization. The value of this parameter can be TRUE, only if the value of the mode parameter is BM_Default. Threshold [in] Specifies the threshold for binarization. The parameter is only used if the mode of binarization is BM_ByThreshold. By default, the value of this parameter is 0. Result [out, retval] A pointer to the IImage* pointer variable that provides access to the black-and-white image.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

ImageProcessingTools