ConvertToColoredGray example for C++ 5.0 and later
short RedFact = 300;
short GreenFact = 590;
short BlueFact = 110;
short RedGrayFact = 500;
short GreenGrayFact = 300;
short BlueGrayFact = 200;
m_Lead1.ConvertToColoredGray(RedFact, GreenFact, BlueFact, RedGrayFact, GreenGrayFact, BlueGrayFact);