ImageMonoType
Sets the method to use when converting color images to black and white tiffs.
Member of namespace
ConvertSyntax
bool ImageMonoType (int Mono)Parameters
- Mono
- Type: int
Parameters
Mono : A positive numeric value of 1 to 4 for the type of conversion to use.- Convert image using Diffusion method.
- Convert image using Halftone method.
- Convert image using Bayer method.
- Convert image using Threshold method with a threshold value. Value defaults to 10.
Returns
Always True.Level
Page level.Details
Sets the black and white conversion algorithm to use when converting color or grayscale images to TIFF. If you are using the threshold method, you must also call the ImageMonoThreshold action prior to converting the image with ImageToTIFF.Error diffusion is a type of halftoning in which the quantization residual is distributed to neighboring pixels that have not yet been processed. Its main use is to convert a color image into a black and white image. Halftone is the reprographic technique that simulates continuous tone imagery through the use of dots, varying either in size or in spacing. Bayer method is an image dithering algorithm that is commonly used to maintain a the characteristics of a photo image of higher colors in an image of less color depth. The threshold method makes individual pixels in an image black if their value is greater than the threshold value and the remaining pixels white.
For best results, you may need to experiment with the different types of images that you are expecting to process and select the conversion method that gives you the best results. If the resulting TIFF images are going to be used in a subsequent recognition process, pick the technique that works best to output dark, solid characters with as little background noise, or dithering around the characters, as possible.
- Example:
ImageFileTypesToConvert(".jpg,.jpeg,gif,bmp") ImageMonoType(1) ImageToTIFF()