Converts the input image to a black/white image (i.e. an image that contains only
two different colors) using the specified threshold value.
A grayscale image that contains only black and white pixels.
If the image is not a grayscale image, it will be converted using
the ConvertRgbToGrayscaleImage(Bitmap) method.
| Exception | Condition |
|---|---|
| ArgumentNullException | If input is null. |
| ArgumentException | If the input image is not
a grayscale image and cannot
be converted to Format24bppRgb pixel format (i.e. if
it is no color image in a 32 bit format). |
