Hi,
I am trying to use GDI GetPixel function. I first get the DC using
hdc = GetDC(hWnd);
then call GetPixel(hdc,x,y); function. However GetPixel returns -1 which obviously shows that GetPixel cannot read from the dc. I found that I should use GetDeviceCaps to check whether the dc is capable of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.