Click or drag to resize
Ranorex

ImagingProcessingConvertRgbToGrayscaleImageRMY Method

Converts a color to a grayscale image (bitmap format Format8bppIndexed) using color component coefficients { 0.5, 0.419, 0.081 }.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static Bitmap ConvertRgbToGrayscaleImageRMY(
	Bitmap input
)

Parameters

input
Type: System.DrawingBitmap
A color image.

Return Value

Type: Bitmap
A grayscale image.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf input is null.
ArgumentExceptionIf 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