ImageGear Professional DLL v17.1 for Windows Accusoft
IG_REC_reduction_threshold_set
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Image Processing Functions > IG_REC_reduction_threshold_set

Glossary Item Box

Specifies the threshold parameter of an image conversion to a bi-tonal image.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_reduction_threshold_set(
   AT_INT Threshold
);

Arguments:

Threshold The image conversion threshold value to be set. Its range is between zero (0) and 255, default: 128.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

This parameter has an effect only when the IG_REC_IMG_CONVERSION_SET image conversion mode has been set.

Example:

  Copy Code
AT_ERRCOUNT ErrCount = 0;
AT_INT nThreshold = 100; 
ErrCount = IG_REC_reduction_threshold_set(nThreshold);

©2012. Accusoft Corporation. All Rights Reserved.