 | ImagingProcessingConvertRgbToGrayscaleImageY Method |
Converts a color to a grayscale image (bitmap format Format8bppIndexed)
using color component coefficients specified by the ITU-R Recommendation BT.601:
{ 0.299, 0.587, 0.114 }.
Namespace:
Ranorex
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static Bitmap ConvertRgbToGrayscaleImageY(
Bitmap input
)
Public Shared Function ConvertRgbToGrayscaleImageY (
input As Bitmap
) As Bitmap
Parameters
- input
- Type: System.DrawingBitmap
A color image.
Return Value
Type:
BitmapA grayscale image.
Exceptions| 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). |
See Also