Description: When vc++ to get the color of the specified pixel, as shown in the demo screenshot, users can use the left mouse button click on the picture of a place, the picture will be on the right side to the point of a solid color fill rectangle. Implementation through the function COLORREF CDC :: GetPixel (int x, int y) can be color specified point, the parameters x, y coordinates of the specified point.
To Search:
File list (Check if you may need any files):
vc++ 获得指定点颜色\PtClr\PtClr.aps
...................\.....\PtClr.clw
...................\.....\PtClr.cpp
...................\.....\PtClr.dsp
...................\.....\PtClr.dsw
...................\.....\PtClr.h
...................\.....\PtClr.rc
...................\.....\PtClrDlg.cpp
...................\.....\PtClrDlg.h
...................\.....\ReadMe.txt
...................\.....\res\fem12L.bmp
...................\.....\...\PtClr.ico
...................\.....\...\PtClr.rc2
...................\.....\resource.h
...................\.....\StdAfx.cpp
...................\.....\StdAfx.h
...................\.....\res
...................\PtClr
vc++ 获得指定点颜色