|
-
Jun 16th, 2004, 10:37 PM
#1
Thread Starter
Member
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
-
Mar 20th, 2005, 02:44 AM
#2
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|