ImageEn, unit imageenproc

TImageEnProc.ConvertToGray

TImageEnProc.ConvertToGray


Declaration

procedure ConvertToGray();


Description

Converts the selected region to gray levels. The image always will be in true color (16M of colors).

Note: ConvertToGray sets the R,G,B channels to the same value using: RedToGrayCoef, GreenToGrayCoef, BlueToGrayCoef


Example

ImageEnView1.Proc.ConvertToGray();