SetConvertToGray method
Sets a value that indicates whether the filter output color is converted to grayscale.
Syntax
HRESULT retVal = object.SetConvertToGray(bConvertToGray);
Parameters
bConvertToGray [in]
Type: BOOLBOOL that indicates whether an image is converted to grayscale after a convolution. If TRUE, the colors of the image are converted to gray after filtering.