Link to home
Start Free TrialLog in
Avatar of ItsMe
ItsMe

asked on

Get Screen color @ curr mouse pos

Hi ! How do I get the color at the current mouse position (global) ?
How to convert it to RGB value ?

regards
ItsMe
Avatar of rene100
rene100

Hi

don't know if there is an easier soltution, but this one should work: Get the mouse coordinates with GetCursorPos, then copy the screen to a tbitmap and get the color with the canvas.pixels property..this sould be a rgb-value

regards
rene
ASKER CERTIFIED SOLUTION
Avatar of CalvinDay
CalvinDay

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry: should read Result:=GetPixel(dc,x,y);
listenning
Avatar of simonet
Following...®
Avatar of ItsMe

ASKER

it works pretty cool. this was a good idea...

regards
ItsMe
Thanks.