AccusoftImagXpress13 ActiveX DLL > ImagXpress Object : AutoBinarize Method |
Visual Basic |
---|
Public Sub AutoBinarize() |
Binarization is often done to clean up and 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.