ConvertToColoredGray C++ Builder Example
/*This example assumes there is a bitmap loaded*/
int RedFact, GreenFact, BlueFact, RedGrayFact, GreenGrayFact, BlueGrayFact;
RedFact = 300;
GreenFact = 590;
BlueFact = 110;
RedGrayFact = 500;
GreenGrayFact= 300;
BlueGrayFact= 200;
// These arguments will transform the image into a grayscale image
LEADImage1->ConvertToColoredGray (RedFact, GreenFact, BlueFact, RedGrayFact, GreenGrayFact, BlueGrayFact);