请教下,取颜色的方案,哪个比较好!
请教下,取颜色的问题!
就是我想要获取2点的值。。
想问下先取1点,再去取第2点好,还是同时记录2点比较好一些??
方案一:windowDC = GetDC(g_WindowHwnd)getcolor = GetPixel(windowDC, 12, 12)ReleaseDC g_WindowHwnd, windowDCwindowDC = GetDC(g_WindowHwnd)getcolor1 = GetPixel(windowDC, 20, 20)ReleaseDC g_WindowHwnd, windowDC
方案二:windowDC = GetDC(g_WindowHwnd)getcolor = GetPixel(windowDC, 12, 12)getcolor1 = GetPixel(windowDC, 20, 20)ReleaseDC g_WindowHwnd, windowDC