Find color in pixel.
-
Hi, I got a code where I move the mouse around the screen... Everytime the mouse moves a pixel, i have an action. In that action, i want to find the color of the pixel there are in the screen position: 395,247... Just need the color in HEX (#xxxxxx) or RGB (xxx,xxx,xxx). Can anyone make an example for me to do that? Thanks.
-
Hi, I got a code where I move the mouse around the screen... Everytime the mouse moves a pixel, i have an action. In that action, i want to find the color of the pixel there are in the screen position: 395,247... Just need the color in HEX (#xxxxxx) or RGB (xxx,xxx,xxx). Can anyone make an example for me to do that? Thanks.
The
GetPixel
function should be able to do that. http://www.pinvoke.net/default.aspx/gdi32/GetPixel.html[^]Kristian Sixhoej
"Failure is not an option" - Gene Kranz
-
The
GetPixel
function should be able to do that. http://www.pinvoke.net/default.aspx/gdi32/GetPixel.html[^]Kristian Sixhoej
"Failure is not an option" - Gene Kranz
-
You're welcome :)
Kristian Sixhoej
"Failure is not an option" - Gene Kranz