Converts a color to a grayscale image (bitmap format Format8bppIndexed)
using color component coefficients { 0.5, 0.419, 0.081 }.
- input (Bitmap)
- A color image.
A grayscale image.
| Exception | Condition |
|---|---|
| ArgumentNullException | If input is null. |
| ArgumentException | If the input image cannot
be converted to Format24bppRgb pixel format (i.e. if
it is no color image in a 32 bit format). |
