Introduction - If you have any usage issues, please Google them yourself
2, converted to grayscale images. This algorithm are in accordance with the color map into a gray image of the way: gray value = 0.3* R+0.59* G+0.11* B with double cycle traversal intercepted picture, for each pixel, using MFC function obtained their forms of COLORREF color value, from decomposition of the R, G, B three color values, calculate the corresponding gray-scale value, assigned to R, G, B can be. After the completion of traversal can be seen on the picture to refresh the converted gray image.