Results 1 to 2 of 2

Thread: GetPixel from another application

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2004
    Posts
    36

    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

  2. #2
    Lively Member
    Join Date
    Mar 2005
    Posts
    66

    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
  •  



Click Here to Expand Forum to Full Width