颜色是 #B38300 但它返回给我 #074092 我正在尝试获取 3D 应用程序的像素颜色。
::SetForegroundWindow(tempHWND);
Sleep(2000);
HDC hDC = ::GetDC(tempHWND);
COLORREF rgb = ::GetPixel(hDC,50,60);
int redValue = GetRValue(rgb);
int greenValue = GetGValue(rgb);
int blueValue = GetBValue(rgb);
我怎样才能得到准确的颜色?