Accusoft.ImagXpressSdk Namespace > Processor Class : AutoBinarize Method |
'Declaration Public Sub AutoBinarize()
'Usage Dim instance As Processor instance.AutoBinarize()
public void AutoBinarize()
public: void AutoBinarize();
public: void AutoBinarize();
Binarization is often done to clean up an image (e.g. in preparation for OCR), or to create an image effect.
This method analyzes the image and sets the best parameters to binarize the image automatically.
Important Tip: Because the image is analyzed extensively it is much slower than calling Binarize directly. Use the following properties to pass into the Binarize method for faster processing of similar images.
This method sets the following properties with the values it used to binarize the image:
Note: These properties are also set with the values that is passed into the Binarize method. If you call the Binarize method with some other value, those properties will reflect those new values.
For 1-bit output, this method modifies the color palette associated with the image, setting it to two colors, with black as color 0 and white as color 1.