RGB to Gray Image

Hi, can anyone tell me how to convert RGB image into Gray Scale Image using C++? Thanks...
Topic archived. No new replies allowed.