GetPixel from another application
I am attempting to get the color of a pixel, to use in my vb app, from another application running in a window. (example get the color at x,y in winamp)
I understand that I need to get the handle of the window. Then use GetPixel to retrieve the color of the pixel (to a type long variable). Finally convert that variable into either a color variable or RGB values.
I have searched this forum and 2 others up and down. I have found many examples that are close but havent been able to piece this functionality together.
Thank you,
Toucan
Re: GetPixel from another application
hey im having the same problem. right now i dont think that .NET includes the traditional getpixel. to do this ud have to icon all other programs and take a screenshot, then save your screenshot as a bitmap and then finally use getpixel. in .NET you have to getpixel from a pacific bitmap. the code would b screenshot.getpixel(x,y)
IF NE1 KNOWS OF AN API TO DO THIS PLEASE HELP US